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 intercept comming frames from camera
Forum Updated to NodeBB v4.3 + New Features

How intercept comming frames from camera

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 2.0k 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
    jmimi
    wrote on last edited by
    #1

    Hi
    I capture video from webcam and record it using QMediaRecorder.
    Which way existed that I can do 2 below actions ?

    1. catch every frame comming from camera
    2. manipulate that frame

    One of usecases is that I wnat to do is, magnifying the video before saving on disk (and also show it when saving)
    I use QVideoProbe but I'm not lucky.
    In blow code, "ctrl" is null, so there is no signal from video probe.
    @ bool res = videoProbe->setSource(mediRecorder);
    QMediaObject *obj = mediaRecorder->mediaObject();
    QMediaService *srv = obj->service();
    QMediaControl ctrl = srv->requestControl<QMediaVideoProbeControl>();@

    Best
    Ebrahim

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jmimi
      wrote on last edited by
      #2

      The answer is that implementing a custom class of QAbstractVideoSurface

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lygstate
        wrote on last edited by
        #3

        Is there any demo code for that?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on last edited by
          #4

          take a look on examples/multimediawidgets/customvideowidget

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lygstate
            wrote on last edited by
            #5

            I am using it under Android, so the QWidget is not works, I want to use qml to capture each frame of the video that provided by the rear camera, how to do that.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lygstate
              wrote on last edited by
              #6

              It's solved, refer to "The QCamera doesn’t works with QVideoProbe under Win32.
              ":http://qt-project.org/forums/viewthread/38472/#162925

              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