Converted MP4 video file to H.264, but there is no sound
5,705
.264
represents a raw H264 bitstream so no audio will be present. If you want the video in input
to be transcoded to a H264 stream, use
ffmpeg -i input.mp4 -vcodec libx264 -acodec aac output.mp4
But check if it is already H264. Run ffprobe input.mp4
.
![siklopentan](https://lh6.googleusercontent.com/-hKZpZ3IEUGU/AAAAAAAAAAI/AAAAAAAAAD8/JlbG3HIWlnk/photo.jpg?sz=256)
Author by
siklopentan
Updated on September 18, 2022Comments
-
siklopentan almost 2 years
I have an MP4 video file. I'm turning this into H.264. After converting, the video looks good, but there is no sound. Can you help me?
ffmpeg -i input.mp4 -vcodec libx264 -acodec aac output.h264
-
slhck about 6 yearsWhat do you actually want to do? This seems like an XY problem (xyproblem.info)
-
-
siklopentan about 6 yearsBut this time it appears to be mp4. I want to see it as h.264. Is not there a way to do this?
-
user1686 about 6 years@siklopentan: H.264 and MP4 are different classes entirely – one is a codec, the other a container holding codecs. So a file could be both at the same time. (And probably is.)