I use this code to encode a .hevc video:
ffmpeg -i video.mp4 -vf "scale=650:-1" -c:v libx264 -pix_fmt yuv420p -b:v 1500k -strict experimental -shortest -x264-params lossless=0 -movflags faststart -tag:v hvc1 -g 50000 -q 22 out.hevc
But It got only video and no sound at all.I tried to re-encode it to add sound but if only when I change its extension to .mp4 then I can add sound. How can i add sound and keep .hevc extension?
How to add sound in video with
.hevc
extention without changing its extension
You can't: .hevc
is raw HEVC video only.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.