Use qt player instead of xvimagesink/autovideosink

Nikos Chantziaras realnc at gmail.com
Fri Apr 17 04:32:31 PDT 2015


On 17/04/15 13:48, Mayank Agarwal wrote:
> If in any gstreamer pipeline for playing av file i want
>   to use qt player to play video instead of X11 windows
> is it possible. If there is any plugin that supports this.

Call setUpdatesEnabled(false) on the widget, and pass the window ID to 
the video sink with:

   // Create pipeline.
   // ...
   widget->setUpdatesEnabled(false);
   gst_video_overlay_set_window_handle(GST_VIDEO_OVERLAY(pipeline),
                                       (guintptr)widget->winId());

When you start the pipeline, output will be going to the Qt widget.

Alternatively, you can use gstreamer through QtGStreamer, which handles 
these things automatically (and gives you a C++ API for GStreamer.)



More information about the gstreamer-devel mailing list