[FFmpeg-user] Preserve pix_fmt, regardless of codec?

Mark Himsley mark at mdsh.com
Sat Apr 28 00:35:00 CEST 2012


On 27/04/2012 15:05, Mike Scheutzow wrote:
> Nicolas George wrote:
>> L'octidi 8 floréal, an CCXX, Carl Eugen Hoyos a écrit :
>>> Sorry, I honestly believe FFmpeg currently does exactly what you asked.
>>
>> Unfortunately, not at all.
>>
>> Currently, ffmpeg selects the best pixel format supported by the encoder.
>
>
> My experience supports Carl's answer. Current git is not "selecting the
> best pixel format supported", at least, not for all encoders.

It depends very much on what your definition of "best" is.

> ./ffmpeg -i infile.ts -vcodec libx264 -crf 25 out.ts
>
> If a yuv420p file is input, the output file is a yuv420p file.

You're making it sound like this is bad. My definition of best does not 
include doing pointless up-conversions that will only waste bits.

> Note that
> libx264 supports yuv422p, and this conversion can be forced by using
> '-vf format=yuv422p'.
 >
> There must be some other factor involved. Do you have a specific example
> of the mis-behavior you describe?

-- 
Mark


More information about the ffmpeg-user mailing list