read_video_timestamps
- torchvision.io.read_video_timestamps(filename: str, pts_unit: str = 'pts') Tuple[List[int], Optional[float]] [source]
[DEPREACTED] List the video frames timestamps.
Warning
DEPRECATED: All the video decoding and encoding capabilities of torchvision are deprecated from version 0.22 and will be removed in version 0.24. We recommend that you migrate to TorchCodec, where we’ll consolidate the future decoding/encoding capabilities of PyTorch
Note that the function decodes the whole video frame-by-frame.
- Parameters:
- Returns:
presentation timestamps for each one of the frames in the video. video_fps (float, optional): the frame rate for the video
- Return type:
pts (List[int] if pts_unit = ‘pts’, List[Fraction] if pts_unit = ‘sec’)