Function mindspore::dataset::vision::ReadVideoTimestamps

Function Documentation

Status mindspore::dataset::vision::ReadVideoTimestamps(const std::string &filename, std::tuple<std::vector<float>, float> *output, const std::string &pts_unit = "pts")

Read the timestamps and frame rate of a video file. It supports AVI, H264, H265, MOV, MP4, WMV files.

Parameters
  • filename[in] The path to the videoe file to be read.

  • output[out] The tuple(video_timestamps, video_fps) of the video.

  • pts_unit[in] The unit for the timestamps, can be one of ["pts", "sec"]. Default: "pts".

Returns

The status code.