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. Live screen capture

Live screen capture

Scheduled Pinned Locked Moved General and Desktop
8 Posts 5 Posters 24.5k 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.
  • R Offline
    R Offline
    romslo
    wrote on last edited by
    #1

    How can I implement live/"video" screen capture using the Qt API? I want to capture a given screen rectangle or application window and show it in a second application window. Please point me to relevant classes to use in the API.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      broadpeak
      wrote on last edited by
      #2

      Try to start from here:
      http://developer.qt.nokia.com/doc/qt-4.8/desktop-screenshot.html
      Or:
      http://developer.qt.nokia.com/doc/qt-4.8/qpixmap.html#grabWidget

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rich
        wrote on last edited by
        #3

        Just a note that http://qt-project.org/doc/qt-4.8/qpixmap.html#grabWindow is needed if the window is not in the current application - I've had several people ask me why grabWidget doesn't work when it turned out to be two different processes.

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          Yash
          wrote on last edited by
          #4

          Any success romslo?

          I'm also working on similar concept.

          http://kineticwing.com : Web IDE, QSS Editor
          http://speedovation.com : Development Lab

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rockdemon
            wrote on last edited by
            #5

            what platform are you on?

            If on linux better to use X shared stuff directly, windows best to use directx, and mac works best with opengl. The Qt versions work but arent quick in my experience....

            1 Reply Last reply
            0
            • Y Offline
              Y Offline
              Yash
              wrote on last edited by
              #6

              I'm working on Windows platform. I've used opencv, ffmpeg and Qt internal function like capture screen etc.

              I've created a simple video recording only problem it's very heavy and it is not practical.

              It will be one of my very serious projects. I've few investors with me.

              Anyone has any interest please let me know.

              http://kineticwing.com : Web IDE, QSS Editor
              http://speedovation.com : Development Lab

              1 Reply Last reply
              0
              • R Offline
                R Offline
                rockdemon
                wrote on last edited by
                #7

                You need to use direct x to have a chance. It's fairly well documented how to do this if you google for it....

                1 Reply Last reply
                0
                • Y Offline
                  Y Offline
                  Yash
                  wrote on last edited by
                  #8

                  Yup ...http://www.codeproject.com/Articles/5051/Various-methods-for-capturing-the-screen

                  Qt internally using first method of above article. Directx is second listed.

                  Thanks for suggestion.

                  Every method creates just image and we need to add these images to make video which is a problem(not exactly but it is). I was looking for some straight APIs for desktop recording.

                  http://kineticwing.com : Web IDE, QSS Editor
                  http://speedovation.com : Development Lab

                  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