ffprobe ¶
Classes:
-
FFProbe– -
FFProbeAudioStream– -
FFProbeNotFoundError–Raised when the FFProbe executable was not found in the system.
-
FFProbeStream– -
FFProbeStreamSideData– -
FFProbeVideoStream–
FFProbe ¶
Methods:
Attributes:
-
bin_path– -
json_decoder(JSONDecoder) –
Source code in vstools/utils/mime/ffprobe.py
130 131 132 133 134 135 136 137 138 | |
json_decoder instance-attribute ¶
json_decoder: JSONDecoder = JSONDecoder(
object_pairs_hook=None,
object_hook=None,
parse_constant=None,
parse_float=None,
parse_int=None,
strict=True,
)
get_stream ¶
get_stream(
filename: str | Path,
file_type: FileType | None,
*,
index: int = 0,
func: FuncExcept | None = None
) -> FFProbeStream | None
Source code in vstools/utils/mime/ffprobe.py
217 218 219 220 221 | |
get_streams ¶
get_streams(
filename: str | Path,
file_type: FileType | None,
*,
func: FuncExcept | None = None
) -> list[FFProbeStream] | None
Source code in vstools/utils/mime/ffprobe.py
223 224 225 226 227 | |
FFProbeAudioStream ¶
Bases: FFProbeStream
Attributes:
-
avg_frame_rate(Fraction) – -
bit_rate(int | None) – -
bits_per_sample(int) – -
channel_layout(str) – -
channels(int) – -
codec_long_name(str) – -
codec_name(str) – -
codec_tag(int) – -
codec_tag_string(str) – -
codec_time_base(Fraction) – -
codec_type(FileType) – -
disposition(dict[str, str]) – -
duration(float | None) – -
duration_ts(int | None) – -
index(int) – -
max_bit_rate(int | None) – -
nb_frames(int | None) – -
nb_read_frames(int | None) – -
profile(str) – -
r_frame_rate(Fraction) – -
sample_fmt(str) – -
sample_rate(int) – -
side_data_list(list[FFProbeStreamSideData] | None) – -
start_pts(int) – -
start_time(float) – -
tags(dict[str, str]) – -
time_base(Fraction) –
Source code in vstools/utils/mime/ffprobe.py
38 39 40 | |
FFProbeNotFoundError ¶
Bases: CustomRuntimeError
Raised when the FFProbe executable was not found in the system.
FFProbeObjectBase ¶
Source code in vstools/utils/mime/ffprobe.py
38 39 40 | |
FFProbeStream ¶
Bases: FFProbeStreamBase
Attributes:
-
avg_frame_rate(Fraction) – -
bit_rate(int | None) – -
codec_long_name(str) – -
codec_name(str) – -
codec_tag(int) – -
codec_tag_string(str) – -
codec_time_base(Fraction) – -
codec_type(FileType) – -
disposition(dict[str, str]) – -
duration(float | None) – -
duration_ts(int | None) – -
index(int) – -
max_bit_rate(int | None) – -
nb_frames(int | None) – -
nb_read_frames(int | None) – -
profile(str) – -
r_frame_rate(Fraction) – -
side_data_list(list[FFProbeStreamSideData] | None) – -
start_pts(int) – -
start_time(float) – -
tags(dict[str, str]) – -
time_base(Fraction) –
Source code in vstools/utils/mime/ffprobe.py
38 39 40 | |
FFProbeStreamBase ¶
Bases: FFProbeObjectBase
Attributes:
-
avg_frame_rate(Fraction) – -
codec_long_name(str) – -
codec_name(str) – -
codec_tag(int) – -
codec_tag_string(str) – -
codec_time_base(Fraction) – -
codec_type(FileType) – -
disposition(dict[str, str]) – -
index(int) – -
profile(str) – -
r_frame_rate(Fraction) – -
start_pts(int) – -
start_time(float) – -
tags(dict[str, str]) – -
time_base(Fraction) –
Source code in vstools/utils/mime/ffprobe.py
38 39 40 | |
FFProbeStreamSafe ¶
Bases: FFProbeStream
Attributes:
-
avg_frame_rate(Fraction) – -
bit_rate(int) – -
codec_long_name(str) – -
codec_name(str) – -
codec_tag(int) – -
codec_tag_string(str) – -
codec_time_base(Fraction) – -
codec_type(FileType) – -
disposition(dict[str, str]) – -
duration(float) – -
duration_ts(int) – -
index(int) – -
max_bit_rate(int) – -
nb_frames(int) – -
nb_read_frames(int) – -
profile(str) – -
r_frame_rate(Fraction) – -
side_data_list(list[FFProbeStreamSideData]) – -
start_pts(int) – -
start_time(float) – -
tags(dict[str, str]) – -
time_base(Fraction) –
Source code in vstools/utils/mime/ffprobe.py
38 39 40 | |
FFProbeStreamSideData ¶
FFProbeVideoStream ¶
Bases: FFProbeStream, FFProbeVideoStreamBase
Attributes:
-
avg_frame_rate(Fraction) – -
bit_rate(int | None) – -
bits_per_raw_sample(int | None) – -
chroma_location(str | None) – -
closed_captions(int) – -
codec_long_name(str) – -
codec_name(str) – -
codec_tag(int) – -
codec_tag_string(str) – -
codec_time_base(Fraction) – -
codec_type(Literal[VIDEO]) – -
coded_height(int) – -
coded_width(int) – -
color_primaries(str | None) – -
color_range(str) – -
color_space(str | None) – -
color_transfer(str | None) – -
display_aspect_ratio(Fraction) – -
disposition(dict[str, str]) – -
duration(float | None) – -
duration_ts(int | None) – -
field_order(str | None) – -
has_b_frames(int) – -
height(int) – -
index(int) – -
is_avc(bool | None) – -
level(int) – -
max_bit_rate(int | None) – -
nal_length_size(int | None) – -
nb_frames(int | None) – -
nb_read_frames(int | None) – -
pix_fmt(str) – -
profile(str) – -
r_frame_rate(Fraction) – -
refs(int) – -
sample_aspect_ratio(Fraction) – -
side_data_list(list[FFProbeStreamSideData] | None) – -
start_pts(int) – -
start_time(float) – -
tags(dict[str, str]) – -
time_base(Fraction) – -
width(int) –
Source code in vstools/utils/mime/ffprobe.py
38 39 40 | |
FFProbeVideoStreamBase ¶
Bases: FFProbeStreamBase
Attributes:
-
avg_frame_rate(Fraction) – -
closed_captions(int) – -
codec_long_name(str) – -
codec_name(str) – -
codec_tag(int) – -
codec_tag_string(str) – -
codec_time_base(Fraction) – -
codec_type(Literal[VIDEO]) – -
coded_height(int) – -
coded_width(int) – -
color_range(str) – -
display_aspect_ratio(Fraction) – -
disposition(dict[str, str]) – -
has_b_frames(int) – -
height(int) – -
index(int) – -
level(int) – -
pix_fmt(str) – -
profile(str) – -
r_frame_rate(Fraction) – -
refs(int) – -
sample_aspect_ratio(Fraction) – -
start_pts(int) – -
start_time(float) – -
tags(dict[str, str]) – -
time_base(Fraction) – -
width(int) –
Source code in vstools/utils/mime/ffprobe.py
38 39 40 | |
FFProbeVideoStreamSafe ¶
Bases: FFProbeStreamSafe, FFProbeVideoStreamBase
Attributes:
-
avg_frame_rate(Fraction) – -
bit_rate(int) – -
bits_per_raw_sample(int) – -
chroma_location(str) – -
closed_captions(int) – -
codec_long_name(str) – -
codec_name(str) – -
codec_tag(int) – -
codec_tag_string(str) – -
codec_time_base(Fraction) – -
codec_type(Literal[VIDEO]) – -
coded_height(int) – -
coded_width(int) – -
color_primaries(str) – -
color_range(str) – -
color_space(str) – -
color_transfer(str) – -
display_aspect_ratio(Fraction) – -
disposition(dict[str, str]) – -
duration(float) – -
duration_ts(int) – -
field_order(str) – -
has_b_frames(int) – -
height(int) – -
index(int) – -
is_avc(bool) – -
level(int) – -
max_bit_rate(int) – -
nal_length_size(int) – -
nb_frames(int) – -
nb_read_frames(int) – -
pix_fmt(str) – -
profile(str) – -
r_frame_rate(Fraction) – -
refs(int) – -
sample_aspect_ratio(Fraction) – -
side_data_list(list[FFProbeStreamSideData]) – -
start_pts(int) – -
start_time(float) – -
tags(dict[str, str]) – -
time_base(Fraction) – -
width(int) –
Source code in vstools/utils/mime/ffprobe.py
38 39 40 | |