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. Video and Qt-X11

Video and Qt-X11

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.3k Views
  • 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
    qtandme
    wrote on last edited by
    #1

    Hi,

    I'm developing an Qt app which can play videos using gstreamer. No phonon involved.
    I'm using Qt 4.8.4. I need X11 to be running for the SGX based videosink. DISPLAY variable is exported at the beginning.

    The problem is the videosink if not specified, creates its own window to dump the video. As a result Qt window is lost. I have tried getting the video playback and the Qt app on the same screen using gst_x_overlay_set_window_handle() and gst_x_overlay_set_render_rectangle(). It works fine except the fact that there is flickering and Qt buffer is lost. I wanted the video to fill only a part of the screen, while rest of the screen continued to show the Qt app screen. When i use gst_x_overlay_set_render_rectangle() to set such coordinates, video is surely resized to fit that part of the screen, rest of the screen is black.

    Please help.

    Thanks in advance.

    Carol

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vittalonline
      wrote on last edited by
      #2

      hii qtandme

      the better way to develop video stream with Qt is

      use xcb with Qt i.e bind qt code and xcb shared memory
      to avoid flickering .. and also we get a control video size also

      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