Video and Qt-X11
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.
Thanks in advance.
vittalonline last edited by
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