[FFmpeg-user] Difference between FFmpeg Formats/Containers MP4 and H264

Bang He hezhanbang at gmail.com
Sun May 15 06:21:08 EEST 2022

-f mp4:  file format/container is mp4
-f h264: file format is h264, even if the file extension is mp4

On Sun, May 15, 2022 at 10:58 AM Roger <rogerx.oss at gmail.com> wrote:

> >MP4 can contain a variety of streams, including h264. If you specify h264,
> >you just have a raw h264 video stream, that's it.
> I've always used -f h264 until I ran into Hauppauge WinTV Version 10 using:
> ffmpeg -i "[SOURCE_FILE]" -f mp4 -vcodec libx264 -preset ultrafast
> -profile:v main -acodec aac "[DEST_FILE].mp4
> On the flip, I've never seen a *.h264 file name.
> If I'm not mistaken, the "-f" specifies the format or the container of the
> video/audio stream.
> So when specifying, "-f h264", format is assuming a video only container?
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".

More information about the ffmpeg-user mailing list