[FFmpeg-devel] [PATCH] ffmpeg: Don't offer H.264 compatibility warning for NV12 input

Gyan gyandoshi at gmail.com
Thu Jun 15 13:42:00 EEST 2017


On Thu, Jun 15, 2017 at 3:04 PM, wm4 <nfxjfg at googlemail.com> wrote:


> It's wrong and dumb because the pixfmt is not enough to tell whether
> the encoder will produce a file with w widely compatible profile.
>

yuv420p is not sufficient to ensure compatibility but !yuv420p is
sufficient to ensure incompatibility (with browsers and most players).


> I think what you really want is either
> - defaulting h264 encoding to Main or High profile only
>

 libx264 already defaults to High, which doesn't prevent non-yuv420p output
e.g. encoding of a PNG sequence.

Presets bring their other baggage along with them, which the user may not
want. If the user knew how to select or set presets, they would know which
pixel format is required. The primary audience for this warning is the lay
or occasional user, who isn't manually setting the profile or the pix_fmt,
and and is likely to get tripped up if the input is not yuv420p.


More information about the ffmpeg-devel mailing list