Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Video overlay with Qt 4.8

Video overlay with Qt 4.8

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
gstreameroverlayvideoqt4.8.6
1 Posts 1 Posters 1.8k 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.
  • PierreOP Offline
    PierreOP Offline
    PierreO
    wrote on last edited by
    #1

    Hello everyone,
    I'm trying to create an overlay on a video, but I find no way to make it work.

    Context
    I receive a video from a camera, gstreamer handles it with a pipeline. At the end of the pipeline I use the plugin ximagesink.
    On my Qt application, I use gst-video-overlay-set-window-handle from the plugin videooverlay and give it the WinId of my QgraphicsView.
    My video appears on my application, all is fine.
    I use Qt4.8.6 on a embedded platform.

    My tries
    I try to create an overlay (draw a simple line for example) on this video.
    Here are all my attempts:

    • Subclass a QWidget, with TranslucentBackground, also with PaintOnScreen attributes, redefining the paintEvent function, the line was drawn, but the area of the widget "freeze" the video
    • The same as below, but with redefining the drawForeground function.
    • Add a scene to the QGrahicsView, and use the function addLine, the line was drawn but disappear under the next frame.
    • I do some tests with a QWidget, by setting its stylesheet with alpha channel.

    My thoughts
    I think transparency is not managed with my version of x11, maybe I have not a composition manager (I don't know how to know it).

    If you have any idea about this problem,

    Greetings,
    Pierre-Olivier

    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