Function mindspore::dataset::vision::ReadVideoTimestamps
Defined in File vision.h
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.
- 参数
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".
- 返回
The status code.