Decodebin and queue

Tim Müller tim at centricular.com
Thu Sep 7 14:07:40 UTC 2017


On Fri, 2017-09-01 at 07:41 +0000, Duchassin Frédéric wrote:

Hi Frédéric,

> I try using gstreamer API to decode a TS stream.
> In order to do this, I use decodebin.
> Using this command I get some artefacts on the screen:
>  (snip) 
> But using this command, it’s working quite well:
>  (snip)

You could also try adding a queue between udpsrc and tsdemux.

Additionally, make sure that the kernel-side UDP receive buffer is
large enough. There are two parts to this:

1) sudo /sbin/sysctl -w net.core.rmem_max=33554432

2) udpsrc buffer-size=33554432

These are example values only. You probably don't need 32MB, but the
default is really really small, so it's easy to lose packets.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference!
21-22 October 2017 in Prague, Czech Republic
http://gstreamer.freedesktop.org/conference/


More information about the gstreamer-devel mailing list