5

Scenario
I am using QMediaPlayer to a display a video on a VideoOutput.
Works well.

I do a MyQMediaPlayerPtr->setMedia(sample_video.mp4) & I have full control on that video playback.

I am using QMediaPlayer's setPostion to seek a random frame from the video. However it will very efficient if I could query the total number of frames in that sample_video.mp4 using QMediaPlayer or some other Qt Multimedia component.

Question:
How can I get the number of frames in the sample_video.mp4? Is it possible using a QMediaPlayer API?
If not, which utility in Qt Multimedia could get me this information?

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159

0 Answers0