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. What's the most optimized way of making a video player that could capture image from the video?
Qt 6.11 is out! See what's new in the release blog

What's the most optimized way of making a video player that could capture image from the video?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 440 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.
  • J Offline
    J Offline
    JK3WN
    wrote on last edited by
    #1

    Right now, I'm using the answer from this topic: https://stackoverflow.com/questions/37724602/how-to-save-a-frame-using-qmediaplayer?noredirect=1&lq=1
    However, this doesn't let me play the video itself by any other QVideoWidgets, so I made a video player which actually shows each frame grabbed by the processFrame(QImage), which is of course, very poorly optimized.
    I want to find an optimized way of making a video player that could capture image from the video when the user presses a button or something.
    Also, something isn't going right with the QVideoProbe on my computer(explained on https://forum.qt.io/topic/124525/qvideowidget-not-working-with-qvideoprobe), so using QVideoProbe is out of the question.

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

      Hi,

      Any particular OS as target ?

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

      J 1 Reply Last reply
      0
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        For full screen mode: do the following
        QScreen * screen = QGuiApplication::primaryScreen();
        if ( nullptr != screen ) {
        QPixmap screen_shot = screen->grabWindow( 0 );
        save it.
        }

        J 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Any particular OS as target ?

          J Offline
          J Offline
          JK3WN
          wrote on last edited by
          #4

          @SGaist Windows. Usually WIndows 10.

          1 Reply Last reply
          0
          • JoeCFDJ JoeCFD

            For full screen mode: do the following
            QScreen * screen = QGuiApplication::primaryScreen();
            if ( nullptr != screen ) {
            QPixmap screen_shot = screen->grabWindow( 0 );
            save it.
            }

            J Offline
            J Offline
            JK3WN
            wrote on last edited by
            #5

            @JoeCFD Sadly, I'm not using a full screen mode for my project.

            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