Skip to content

ABCVideoProvider

Source code in video_timestamps/video_provider/abc_video_provider.pyi
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
class ABCVideoProvider:
    def get_pts(self, filename: str, index: int) -> tuple[list[int], Fraction, Fraction]:
        """
        Parameters:
            filename: A video path.
            index: Index of the video stream.

        Returns:
            A tuple containing these 3 informations:

                1. A list of each frame's pts. The last pts correspond to the pts of the last frame + it's duration.
                2. The time_base.
                3. The fps.
        """
        ...

get_pts(filename, index)

Parameters:

Name Type Description Default
filename str

A video path.

required
index int

Index of the video stream.

required

Returns:

Type Description
tuple[list[int], Fraction, Fraction]

A tuple containing these 3 informations:

  1. A list of each frame's pts. The last pts correspond to the pts of the last frame + it's duration.
  2. The time_base.
  3. The fps.
Source code in video_timestamps/video_provider/abc_video_provider.pyi
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
def get_pts(self, filename: str, index: int) -> tuple[list[int], Fraction, Fraction]:
    """
    Parameters:
        filename: A video path.
        index: Index of the video stream.

    Returns:
        A tuple containing these 3 informations:

            1. A list of each frame's pts. The last pts correspond to the pts of the last frame + it's duration.
            2. The time_base.
            3. The fps.
    """
    ...