ffmpeg_sidecar

Module pix_fmt

Source
Expand description

A database of the pixel formats supported by FFmpeg and their size per pixel.

Functionsยง

  • Map from the pix_fmt identifier string (e.g. rgb24) to the number of bits per pixel (e.g. 24). Returns None if the pix_fmt is unsupported/unrecognized.
  • Computes width * height * bits_per_pixel / 8