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. Extract frames from mp4 video
Forum Update on Monday, May 27th 2025

Extract frames from mp4 video

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.0k Views
  • 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.
  • _ Offline
    _ Offline
    _Mark_
    wrote on last edited by
    #1

    Hello,

    in order to generate a thumbnail of a video file (mp4 h264) I want to extract a single frame from it. Then I will show the picture in a qml page.

    I wonder which is the best way to extract such a frame using Qt or qml. May you put me on the right path?

    1 Reply Last reply
    0
    • mrdebugM Offline
      mrdebugM Offline
      mrdebug
      wrote on last edited by
      #2

      Hi. I have implemented ffmpeg to extract frame or to produce an mpeg file but is not a quick way.
      Is this very important for you? Have you considered to use an external program if it exists?

      Need programmers to hire?
      www.labcsp.com
      www.denisgottardello.it
      GMT+1
      Skype: mrdebug

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        _Mark_
        wrote on last edited by
        #3

        I hoped was enough to load the video into a (hidden) container (e.g. MediaPlayer) seek() a position and grab the current frame as an Image.

        I may use an external program, but it would be a nice feature for my application.

        1 Reply Last reply
        0
        • _ Offline
          _ Offline
          _Mark_
          wrote on last edited by
          #4

          I easily solved using a Video element instead an Image one. Then I just paused the video. Quite ugly but it requires one line of code.

          1 Reply Last reply
          0

          • Login

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