I found that information about using XOverlay interfaces in GStremer was scattered. This code below demonstrates how to use XOverlay interface in GStreamer 0.10.36 and Video Overlay interface in Gstreamer 1.0.5 to display the output of a video pipeline. I've used the feed from my webcam but this should work with other pipelines as well.


There are 3 methods out there.

1. The one described in the SDK Tutorials
http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+5%3A+GUI+toolkit+integration. This uses the XOverlay interface but only works in the SDK. The reason is mentioned here http://gstreamer-devel.966125.n4.nabble.com/The-latest-GstreamerSDK-and-gst-x-overlay-set-window-handle-ubuntu-td4656680.html

2. The one while using GStreamer 0.10.36 using the XOverlay interface. Refer cam.c(GTK+) or qtcam0.zip(Qt)

3. The one while using GStreamer 1.0.5 using the Video Overlay interface. Refer cam1.c(GTK+) or qtcam1.zip(Qt).


Note 1: License for all the code is GPL.

You can reach me on
Code on Github