答复: 答复: How to reduce avdec_h264 latency

Lijia (George Lee, Euler) george.lee at huawei.com
Tue Jul 11 10:57:40 UTC 2017


This option is-live instructs GST h264 decoder element to perform low latency mode for Live event, thus this option takes role of key configuration of pipeline behavior in response to real-time decoding. In my opinion it should not be removed but more elaborate description is also needed to avoid misleading programmer.

George


发件人: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] 代表 paolo perotinus
发送时间: 2017年7月11日 18:50
收件人: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
主题: Re: 答复: How to reduce avdec_h264 latency

I just solved the problem (thanks to Tim-Philipp Muller) by setting is-live=1 on the receiver. The latency was added  in gstavviddec.c (check the line with: "gst_query_parse_latency (query, &is_live, NULL, NULL);" ).
However I think that this option (is-live) can appear too generic and misleading, and should be removed/changed.
What do you think about?

Il Martedì 11 Luglio 2017 12:40, "Lijia (George Lee, Euler)" <george.lee at huawei.com<mailto:george.lee at huawei.com>> ha scritto:

Pls take a bit of time to delve into system –level thread scheduling in attempt to find clue to long latency in plugin implementation. As per experience excluding bitstream encoding option, in many situations we often can find negative impact brought by threading scheduling over Linux. Even though bitstream has been encoded very well for low-latency use-case such as removal of B-frame/sub-frame processing (parallel pipeline), implicit threading scheduling defect is hard to find.

Best Regards,

George Lee

发件人: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] 代表 paolo perotinus
发送时间: 2017年7月11日 17:45
收件人: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>>
主题: Re: How to reduce avdec_h264 latency


Il Martedì 11 Luglio 2017 1:06, Olivier Crête <olivier.crete at collabora.com<mailto:olivier.crete at collabora.com>> ha scritto:

> 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

Hi Olivier,

The stream is already coded with no B-frames (zerolatency tune in ffmpeg) but I still have that latency in avdec_h264...

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170711/44207ff3/attachment.html>


More information about the gstreamer-devel mailing list