How to reduce avdec_h264 latency

Olivier Crête olivier.crete at collabora.com
Mon Jul 10 23:06:29 UTC 2017


Hi, 

The only way to do that is to create a stream with no B-frames, for example using the H. 264 baseline profile. 

Olivier 

On July 10, 2017 6:57:16 PM EDT, paolo perotinus <paoloperot at yahoo.it> wrote:
>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?

-- 
Olivier Crête
olivier.crete at collabora.com


More information about the gstreamer-devel mailing list