types
¶
This module defines the various types of options that can be used with FFmpeg. These option types can be one of several different categories. The source of these types is defined within the AVOptionType enumeration found in FFmpeg's opt.h header file.
Attributes:
Name | Type | Description |
---|---|---|
Boolean |
This represents FFmpeg's boolean type. It can accept either a Python boolean value ( |
|
Color |
It can be the name of a color as defined below (case insensitive match) or a [0x|#]RRGGBB[AA] sequence, possibly followed by @ and a string representing the alpha component. |
|
Double |
This represents FFmpeg's double type. It can accept either a Python integer or float value |
|
Duration |
This represents FFmpeg's duration type. It can accept either a Python integer or float value |
|
Flags |
This represents FFmpeg's flags type. It accepts a string in the format "A+B", |
|
Float |
This represents FFmpeg's float type. It can accept either a Python integer or float value |
|
Func |
ref: OPT_TYPE_FUNC |
|
Image_size |
Specify the size of the sourced video, it may be a string of the form widthxheight, or the name of a size abbreviation. |
|
Int |
This represents FFmpeg's integer type. It can accept either a Python integer value |
|
Int64 |
This represents FFmpeg's integer type. It can accept either a Python integer value |
|
Pix_fmt |
please see |
|
Rational |
Specify the frame rate of a video, expressed as the number of frames generated per second. It has to be a string in the format frame_rate_num/frame_rate_den, an integer number, a float number or a valid video frame rate abbreviation. |
|
String |
This represents FFmpeg's string type. It can accept either a Python string value |
|
Time |
ref: OPT_TYPE_TIME |
|
Video_rate |
Specify the frame rate of a video, expressed as the number of frames generated per second. It has to be a string in the format frame_rate_num/frame_rate_den, an integer number, a float number or a valid video frame rate abbreviation. |
Boolean
module-attribute
¶
This represents FFmpeg's boolean type. It can accept either a Python boolean value (True
or False
)
or a string that represents a boolean value ("true", "false", "1", or "0").
Color
module-attribute
¶
It can be the name of a color as defined below (case insensitive match) or a [0x|#]RRGGBB[AA] sequence, possibly followed by @ and a string representing the alpha component. The alpha component may be a string composed by "0x" followed by an hexadecimal number or a decimal number between 0.0 and 1.0, which represents the opacity value (‘0x00’ or ‘0.0’ means completely transparent, ‘0xff’ or ‘1.0’ completely opaque). If the alpha component is not specified then ‘0xff’ is assumed. The string ‘random’ will result in a random color.
Note
Double
module-attribute
¶
This represents FFmpeg's double type. It can accept either a Python integer or float value or a string that represents a double value.
Duration
module-attribute
¶
This represents FFmpeg's duration type. It can accept either a Python integer or float value or a string that represents a duration value.
Note
Flags
module-attribute
¶
This represents FFmpeg's flags type. It accepts a string in the format "A+B", where "A" and "B" are individual flags. For example, "fast+bilinear" would represent two flags, "fast" and "bilinear", to be used in FFmpeg's command line.
Float
module-attribute
¶
This represents FFmpeg's float type. It can accept either a Python integer or float value or a string that represents a float value.
Image_size
module-attribute
¶
Specify the size of the sourced video, it may be a string of the form widthxheight, or the name of a size abbreviation.
Note
Int
module-attribute
¶
This represents FFmpeg's integer type. It can accept either a Python integer value or a string that represents a integer value.
Int64
module-attribute
¶
This represents FFmpeg's integer type. It can accept either a Python integer value or a string that represents a integer value.
Pix_fmt
module-attribute
¶
please see ffmpeg -pix_fmts
for a list of supported pixel formats.
Rational
module-attribute
¶
Specify the frame rate of a video, expressed as the number of frames generated per second. It has to be a string in the format frame_rate_num/frame_rate_den, an integer number, a float number or a valid video frame rate abbreviation.
Note
String
module-attribute
¶
This represents FFmpeg's string type. It can accept either a Python string value or a int/float that will be converted to a string.
Video_rate
module-attribute
¶
Specify the frame rate of a video, expressed as the number of frames generated per second. It has to be a string in the format frame_rate_num/frame_rate_den, an integer number, a float number or a valid video frame rate abbreviation.