Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to seek video frame by frame with MediaPlayer
Forum Updated to NodeBB v4.3 + New Features

How to seek video frame by frame with MediaPlayer

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 575 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ilongshan
    wrote on last edited by
    #1

    Is there any way to seek video frame by frame with MediaPlayer?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • W Offline
        W Offline
        wrosecrans
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved