How to use multiqueue with gst-launch?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to use multiqueue with gst-launch?

Thomas Loewe
Hi,

i have problems with the following pipeline to stream a ts with h.264 over network:

"gst-launch souphttpsrc location=http://url ! mpegtsdemux name=dmx dmx. ! queue2 max-size-buffers=0 max-size-time=0 max-size-bytes=0 ! ffdec_h264 ! directdrawsink dmx. ! queue2 max-size-buffers=0 max-size-time=0 max-size-bytes=0 ! a52dec ! audioconvert ! directsoundsink"

With an additional queue before the videosink it runs much better, but stuttering video also occurs after some seconds. It only works with sync=0 for the videosink.

How must the above pipeline be changed to replace the 2 queues with 1 multiqueue?

Or is there any other thing (better buffering?) to make the stream run smoother?

Thanks,
Thomas
Reply | Threaded
Open this post in threaded view
|

Re: How to use multiqueue with gst-launch?

abirato
Hello there,

i am quite new to gstreamer so i cannot tell you how to change your pipeline to include one multiqueue...but here is an easy example with a multiqueue playing a video file...

gst-launch-0.10 filesrc location="shrek4_480.mov" ! decodebin name=dec ! multiqueue name=queue dec. ! queue. queue. ! videoscale ! ffmpegcolorspace ! ximagesink queue. ! audioconvert ! alsasink

In the example above i use the decoder twice to connect the video/audio stream with the multiqueue (1. "...decodebin name=dec ! multiqueue name=queue...", 2. "dec. ! queue.") and then i connect the queue with video and audio converters

hope it helped