[FFmpeg-user] -pix_fmt + pixel format conversions

Nicolas George george at nsup.org
Thu Jul 29 11:10:07 EEST 2021


Green Koopa (12021-07-29):
> My input file is yuvj420p(pc, bt709). My target output is
> yuv420p(tv, bt709). I would like to use "-pix_fmt +yuv420p"
> to specify the output format, and to force me to be explicit
> in my conversions in the filtergraph. How do I achieve
> explicit conversions? The format filter appears to trigger
> implicit conversions.

The format filter does not do the conversions, it only forces the format
at a certain point in the filter graph.

The standard filter for converting between pixel formats is scale. In
certain cases, I hear zscale can be more suited, but I never looked at
the specifics.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20210729/79ab5cf2/attachment.sig>


More information about the ffmpeg-user mailing list