Tsdemux latency

paolo perotinus paoloperot at yahoo.it
Mon Jul 10 08:53:47 UTC 2017


Hello, 
I'm trying to reduce the tsdemux latency on this pipe:  "gst-launch-1.0 -v souphttpsrc location=http://127.0.0.1:8080/stream.ts ! tsdemux name=demuxer demuxer. ! h264parse ! avdec_h264 ! autovideosink". (I translated it into C code and I'm trying to reduce it both on the C code and on the command line). 
1) There's a hardcoded latency of 700ms in tsdemux.c: "#define TS_LATENCY (700 * GST_MSECOND)". However, the latency that I measured is about 300ms, then, what is the 700ms value? If I set it to a lower value (i.e: 50) and recompile nothing changes.
2) Can I reduce the latency if I manually set the width and the height of the received stream, on the gst-launch-1.0 command? I tried with:  "gst-launch-1.0 -v souphttpsrc location=http://127.0.0.1:8080/stream.ts ! tsdemux name=demuxer demuxer. ! h264parse ! "video/x-h264,width=640,height=480" ! avdec_h264 ! autovideosink"  but nothing changes.
3) Can I reduce the latency if I manually set the width and the height of the received stream on the C code? If so, which element should I add/modify for doing that?
4) Is there any other way to obtain this result?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170710/1352857c/attachment.html>


More information about the gstreamer-devel mailing list