Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. gstreamer videosink in QML
Forum Updated to NodeBB v4.3 + New Features

gstreamer videosink in QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qtquick2qmlgstreamer videovideosurfaceqt-gstreamer
1 Posts 1 Posters 3.4k 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.
  • RiteshPanchalR Offline
    RiteshPanchalR Offline
    RiteshPanchal
    wrote on last edited by
    #1

    I am using QT 5.2.1 with gstreaemr 1.2.4 on nVidia jetson TX1 embedded board.

    I want to preview v4l2 camera preview on QML Window.

    I tried qt-gstreamer example which uses VideoSurface to preview gstreamer pipeline video output.
    But as my camera output is UYVY i need to first convert in to I420 to able to preview on videosurface. But theres some problem of color conversion so i am getting Reddish preview. If i try to convert it to RGB color is ok but the preview is sluggish.

    you can find my code in below link. In this code i have used videotestsrc instead of v4l2src but the preview is same for both sources.
    https://drive.google.com/open?id=0B8d7zQv-G71oM1JONzlpR2t1OWc

    But is there any other way to use any other gstreamer videosink element like xvimagesink or other like below in my QML window.
    qt5videosink: qt5videosink: Qt video sink
    qt5videosink: qt5glvideosink: Qt GL video sink
    qt5videosink: qwidget5videosink: QWidget video sink
    qt5videosink: qtquick2videosink: QtQuick2 video sink

    like using QGst::VideoOverlay::setWindowHandle() of QML video element or something like this?

    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