ABCVideoProvider
Source code in video_timestamps/video_provider/abc_video_provider.pyi
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | |
get_pts(filename, index, video_stream_index=None)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
str
|
A video path. |
required |
index
|
int | None
|
Absolute index of the stream in the file. Its position among all streams (audio, video, subtitles, etc.), regardless of their type. This is equivalent to ffmpeg/ffprobe's global stream index (ex: the Mutually exclusive with |
required |
video_stream_index
|
int | None
|
Index of the video stream, relative to the other video streams in the file. This is equivalent to ffmpeg's Mutually exclusive with |
None
|
Returns:
| Type | Description |
|---|---|
tuple[list[int], Fraction, Fraction]
|
A tuple containing these 3 informations:
|
Source code in video_timestamps/video_provider/abc_video_provider.pyi
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | |