Encoding video in FFmpeg on X264 and playing it in Quicktime

I am wondering what command line options I need to explicitly set (or avoid) in order to make x264 encoded video (mp4 format) using ffmpeg by default, playable in Quicktime. I find that some predefined preset files work for me, but some of them will not, for example, I can not get anyone to work without loss, and I am also interested in them. For example, libx264-lossless_max.ffpreset will encode my video, but it will only play in VLC, not Quicktime. In Quicktime, the video remains black. I know Perian is an option, but I want my file to play without installing Perian. Thank you for your help.

+6
source share
1 answer

http://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide :

Keep in mind that Apple Quicktime only supports the YUV 420 color space for movies encoded with x264 and does not support anything higher than the β€œmain” profile. This leaves only 2 options for QuickTime compatible clips: basic and basic. All other profiles are not currently supported by Quicktime, although they will play in almost any other player.

Also, to the answer above: Quicktime is not its own codec as such. Quicktime is a media wrapper that can contain many different codecs. Quicktime itself is not a codec.

+6
source

Source: https://habr.com/ru/post/890858/


All Articles