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. Grab the snapshot from qt-gstreamer for QImage
Forum Updated to NodeBB v4.3 + New Features

Grab the snapshot from qt-gstreamer for QImage

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 657 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.
  • Q Offline
    Q Offline
    qndn
    wrote on last edited by
    #1

    Hi,

    I am working on qt-gstreamer from this example https://gstreamer.freedesktop.org/data/doc/gstreamer/head/qt-gstreamer/html/examples_2voip_2main_8cpp-example.html. It works but I would like to know how to grab the image for QImage, please?

    How can I grab the image from this step, for my Qimage’s snapshot?

    QImage snapshot;
    
    //watch for the receiving side src pads
    QGlib::connect(rtpbin, "pad-added", this, &VoipExample::onRtpBinPadAdded);
    //watch the bus
    m_pipeline->bus()->addSignalWatch();
    QGlib::connect(m_pipeline->bus(), "message::error", this, &VoipExample::onBusErrorMessage);
    //switch to the video view and connect the video widget
    m_ui.stackedWidget->setCurrentIndex(1);
    m_ui.videoWidget->watchPipeline(m_pipeline);
    //go!
    m_pipeline->setState(QGst::StatePlaying);
    

    Thanks in advance

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

      Hi,

      That's a question you should rather ask to the QtGstreamer developers. Note that the bindings are unmaintained at this point. There's however a qml plugin in one of gstreamer plugin modules.

      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
      1
      • Q Offline
        Q Offline
        qndn
        wrote on last edited by
        #3

        Thanks for your reply.
        The bindings are unmaintained, so it is not worth anymore to use QtGstreamer for Qt 5.12. Is it right?

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

          The bindings are working as is so you may use them. However you have to take into account that the folks of GStreamer don't maintain them anymore.

          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

          • Login

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