[FFmpeg-user] Find out supported pixel formats for a codec

Kieran O Leary kieran.o.leary at gmail.com
Sun Aug 21 12:09:07 EEST 2016


Hi,

On Sun, Aug 21, 2016 at 8:52 AM, Robert Kr├╝ger
<krueger at lesspain.software> wrote:
> Hi,
>
> is there a systematic way to find out supported pixel formats for a codec
> (or filter) on the command line? I only found ffmpeg -pix_fmts but that is
> the global list of all known pixel formats.
>
Yes.
ffmpeg -h encoder=codecname

change 'encoder' to 'decoder' or 'muxer' for more info, like 'ffmpeg
-h muxer=matroska'

ffmpeg -h encoder=ffv1 -v quiet
Encoder ffv1 [FFmpeg video codec #1]:
    General capabilities: delay threads
    Threading capabilities: slice
    Supported pixel formats: yuv420p yuva420p yuva422p yuv444p
yuva444p yuv440p yuv422p yuv411p yuv410p bgr0 bgra yuv420p16le
yuv422p16le yuv444p16le yuv444p9le yuv422p9le yuv420p9le yuv420p10le
yuv422p10le yuv444p10le yuva444p16le yuva422p16le yuva420p16le
yuva444p10le yuva422p10le yuva420p10le yuva444p9le yuva422p9le
yuva420p9le gray16le gray gbrp9le gbrp10le gbrp12le gbrp14le ya8
gbrp16le rgb48le
ffv1 encoder AVOptions:
  -slicecrc          <boolean>    E..V.... Protect slices with CRCs
(default auto)
  -coder             <int>        E..V.... Coder type (from -2 to 2)
(default rice)
     rice                         E..V.... Golomb rice
     range_def                    E..V.... Range with default table
     range_tab                    E..V.... Range with custom table
     ac                           E..V.... Range with custom table
(the ac option exists for compatibility and is deprecated)
  -context           <int>        E..V.... Context model (from 0 to 1)
(default 0)

Best,

Kieran.


More information about the ffmpeg-user mailing list