Skip to content

schema

FFmpeg codec schema definitions.

Classes:

Name Description
FFMpegDecoderOption

FFmpeg decoder option group.

FFMpegEncoderOption

FFmpeg encoder option group.

FFMpegDecoderOption

Bases: FFMpegOptionGroup

FFmpeg decoder option group.

Methods:

Name Description
as_av_options

Convert the option group to a dictionary of AV options.

as_av_options

as_av_options() -> dict[str, Any]

Convert the option group to a dictionary of AV options.

AV options are the options that are used to configure the codec, format, or filter. Boolean options are converted to their corresponding flags. if v is a boolean, it is converted to 0 or 1.

Returns:

Type Description
dict[str, Any]

A dictionary of AV options.

FFMpegEncoderOption

Bases: FFMpegOptionGroup

FFmpeg encoder option group.

Methods:

Name Description
as_av_options

Convert the option group to a dictionary of AV options.

as_av_options

as_av_options() -> dict[str, Any]

Convert the option group to a dictionary of AV options.

AV options are the options that are used to configure the codec, format, or filter. Boolean options are converted to their corresponding flags. if v is a boolean, it is converted to 0 or 1.

Returns:

Type Description
dict[str, Any]

A dictionary of AV options.