How to seek video frame by frame with MediaPlayer
Unsolved
General and Desktop
-
Hi,
The closer you will have is QMediaPlayer::setPosition.
Note that most video files do not store every frame they are made of. The frame by frame part is usually offered by dedicated libraries that are outside of what the OS provided framework offers.
-
If frame-accurate seeking is important to you, there is a library called ffms2 that uses ffmpeg under the hood. It has an initial indexing pass when you first open a video which is a bit slow, but then it can seek to arbitrary frames reliably.
Most API's designed for real time playback aren't good at seeking, just presenting whatever frames come through the pipeline as quickly as possible.