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. Saving live video feed
Forum Updated to NodeBB v4.3 + New Features

Saving live video feed

Scheduled Pinned Locked Moved General and Desktop
9 Posts 2 Posters 2.1k 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.
  • T Offline
    T Offline
    thescouse
    wrote on last edited by
    #1

    I am working with live video feed using v4l library. I have started working on the following example:
    http://qt-apps.org/content/show.php/qt+webcam+viewer+-+V4lCapture?content=126541

    how can you save the live video feed coming from the web cam?

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

      Hi,

      If you are using QtMultimedia for that then have a look at "QMediaRecorder":http://qt-project.org/doc/qt-5/qmediarecorder.html

      Hope it helps

      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
      0
      • T Offline
        T Offline
        thescouse
        wrote on last edited by
        #3

        Is there any method to do it other than using QtMultimedia?

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

          You can use the v4l library directly and transform the image data to a QImage/QPixmap

          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
          0
          • T Offline
            T Offline
            thescouse
            wrote on last edited by
            #5

            The program already uses the paint event to draw what is seen by the camera. So, QImage is already in use.
            What I want to know is, how to save the images into a continuous video. A single file and not a collection of many images.

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

              If you really want to avoid QtMultimedia then you must use something like libav/ffmpeg to do the video encoding

              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
              0
              • T Offline
                T Offline
                thescouse
                wrote on last edited by
                #7

                I actually want to use qt multimedia for camera feed, its recording and snapshots of frames and video playback functions.

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

                  You wrote earlier that you wanted a method not using QtMultimedia. So what's the current state ?

                  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
                  0
                  • T Offline
                    T Offline
                    thescouse
                    wrote on last edited by
                    #9

                    Am working on incorporating Opencv with qt as I could not find satisfactory result to do everything. And These actions are easily achievable in opencv libraries.

                    Any more suggestions are welcome..would love to learn about something new.. :)

                    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