How to reduce avdec_h264 latency

paolo perotinus paoloperot at yahoo.it
Mon Jul 10 22:57:16 UTC 2017


Hello,
I can play a HTTP-mpegts-H264 stream, with 640x480 at 25fps and zerolatency settings, with this command, which I translated into C code:
"gst-launch-1.0 -v souphttpsrc location=http://127.0.0.1:8080/stream.ts ! tsdemux name=demuxer demuxer. ! h264parse ! avdec_h264 ! autovideosink"
Then I measured that the avdec_h264 decoder adds a latency of ~70ms, which corresponds to the interval between two GstBuffers with the same timestamp: the first one taken from the h264parse's src, and the second one taken from the avdec_h264's src. It corresponds to about two frames of the stream, so it seems to me that the avdec_h264 does some buffering.
Is there a way to reduce this latency and/or reduce/avoid buffering in the decoder?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170710/a0b720fb/attachment.html>


More information about the gstreamer-devel mailing list