How to play multiple gstreamer udpsink streams in a Qt app?
hobbesc7
hobbesc7 at gmail.com
Mon Jan 7 11:44:44 PST 2013
Mandeep Sandhu wrote
> Take a look at this example. It shows how to embed the video o/p in a
> QWidget based player:
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/qt-gstreamer/html/examples_2player_2main_8cpp-example.html
>
> Basically you pass your parent QWidget to QGst::Ui::VideoWidget and it
> should start rendering video frames to that widget.
This works great. I have three video feeds streaming over udp to my client
machine, which is running my Qt app which now has three widgets, one for
each stream.
I set the uri like so:
m_pipeline->setProperty("uri", "udp://0.0.0.0:5001);
streaming to different ports (i.e. 5002, 5003) for each widget.
The only problem now is that things seem much choppier than when I run all
this using gst-launch from the command line (also over UDP). Is there an
alternative to playbin2 which would be less choppy?
i.e. right now I'm doing like in the example:
m_pipeline =
QGst::ElementFactory::make("playbin2").dynamicCast<QGst::Pipeline>();
Thanks again.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-play-multiple-gstreamer-udpsink-streams-in-a-Qt-app-tp4657671p4657803.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list