<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div dir="ltr" id="yui_3_16_0_ym19_1_1499769933559_3103"><span id="yui_3_16_0_ym19_1_1499769933559_3143">I just solved the problem (thanks to </span>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);" ).</div><div dir="ltr" id="yui_3_16_0_ym19_1_1499769933559_3103">However I think that this option (is-live) can appear too generic and misleading, and should be removed/changed.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1499769933559_3103">What do you think about?</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> Il Martedì 11 Luglio 2017 12:40, "Lijia (George Lee, Euler)" <george.lee@huawei.com> ha scritto:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv1324626242"><style>#yiv1324626242 #yiv1324626242 --
 
 _filtered #yiv1324626242 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;}
 _filtered #yiv1324626242 {font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;}
 _filtered #yiv1324626242 {panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered #yiv1324626242 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv1324626242 {panose-1:2 1 6 0 3 1 1 1 1 1;}
 _filtered #yiv1324626242 {panose-1:2 11 5 3 2 2 4 2 2 4;}
 _filtered #yiv1324626242 {panose-1:2 11 5 3 2 2 4 2 2 4;}
#yiv1324626242  
#yiv1324626242 p.yiv1324626242MsoNormal, #yiv1324626242 li.yiv1324626242MsoNormal, #yiv1324626242 div.yiv1324626242MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:宋体;}
#yiv1324626242 a:link, #yiv1324626242 span.yiv1324626242MsoHyperlink
        {color:#0563C1;text-decoration:underline;}
#yiv1324626242 a:visited, #yiv1324626242 span.yiv1324626242MsoHyperlinkFollowed
        {color:#954F72;text-decoration:underline;}
#yiv1324626242 span.yiv1324626242EmailStyle17
        {color:#1F497D;}
#yiv1324626242 .yiv1324626242MsoChpDefault
        {font-size:10.0pt;}
 _filtered #yiv1324626242 {margin:72.0pt 90.0pt 72.0pt 90.0pt;}
#yiv1324626242 div.yiv1324626242WordSection1
        {}
#yiv1324626242 </style><div>
<div class="yiv1324626242WordSection1">
<div class="yiv1324626242MsoNormal"><span lang="EN-US" style="font-size:10.5pt;">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. 
</span></div> 
<div class="yiv1324626242MsoNormal"><span lang="EN-US" style="font-size:10.5pt;">  </span></div> 
<div>
<div class="yiv1324626242MsoNormal" style="text-align:justify;text-justify:inter-ideograph;"><span lang="EN-US" style="font-size:10.5pt;">Best Regards,</span></div> 
<div class="yiv1324626242MsoNormal" style="text-align:justify;text-justify:inter-ideograph;"><span lang="EN-US" style="font-size:10.5pt;"> </span></div> 
<div class="yiv1324626242MsoNormal" style="text-align:justify;text-justify:inter-ideograph;"><span lang="EN-US" style="font-size:10.5pt;">George Lee
</span></div> 
</div>
<div class="yiv1324626242MsoNormal"><span lang="EN-US" style="font-size:10.5pt;">  </span></div> 
<div class="yiv1324626242yqt4050365316" id="yiv1324626242yqt02283"><div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm;">
<div class="yiv1324626242MsoNormal"><b><span style="font-size:11.0pt;">发件人<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:11.0pt;"> gstreamer-devel [mailto:gstreamer-devel-bounces@lists.freedesktop.org]
</span><b><span style="font-size:11.0pt;">代表 </span>
</b><span lang="EN-US" style="font-size:11.0pt;">paolo perotinus<br clear="none">
</span><b><span style="font-size:11.0pt;">发送时间<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:11.0pt;"> 2017</span><span style="font-size:11.0pt;">年<span lang="EN-US">7</span>月<span lang="EN-US">11</span>日<span lang="EN-US">
 17:45<br clear="none">
</span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org><br clear="none">
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> Re: How to reduce avdec_h264 latency</span></span></div> 
</div>
</div>
<div class="yiv1324626242MsoNormal"><span lang="EN-US">  </span></div> 
<div>
<div id="yiv1324626242yui_3_16_0_ym19_1_1499766131585_2872">
<div class="yiv1324626242MsoNormal" style="margin-bottom:12.0pt;background:white;"><span lang="EN-US" style="font-size:10.0pt;">  </span></div> 
</div>
<div id="yiv1324626242yui_3_16_0_ym19_1_1499766131585_2871">
<div id="yiv1324626242yui_3_16_0_ym19_1_1499766131585_2870">
<div id="yiv1324626242yui_3_16_0_ym19_1_1499766131585_2869">
<div id="yiv1324626242yui_3_16_0_ym19_1_1499766131585_2902">
<div class="yiv1324626242MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:10.0pt;">Il Martedì 11 Luglio 2017 1:06, Olivier Crête <<a rel="nofollow" shape="rect" ymailto="mailto:olivier.crete@collabora.com" target="_blank" href="mailto:olivier.crete@collabora.com">olivier.crete@collabora.com</a>>
 ha scritto:</span><span lang="EN-US" style=""></span></div> 
</div>
<div class="yiv1324626242MsoNormal" style="margin-bottom:12.0pt;background:white;"><span lang="EN-US" style="">  </span></div> 
<div id="yiv1324626242yui_3_16_0_ym19_1_1499766131585_2868">
<div id="yiv1324626242yui_3_16_0_ym19_1_1499766131585_2867">
<div class="yiv1324626242MsoNormal" style="background:white;"><span lang="EN-US" style="">> Hi,
<br clear="none">
<br clear="none">
> The only way to do that is to create a stream with no B-frames, for example using the H. 264 baseline profile.
<br clear="none">
<br clear="none">
> Olivier </span></div> 
<div id="yiv1324626242yqtfd45815">
<div class="yiv1324626242MsoNormal" style="background:white;"><span lang="EN-US" style="">  </span></div> 
</div>
<div id="yiv1324626242yqtfd45815">
<div class="yiv1324626242MsoNormal" style="background:white;"><span lang="EN-US" style="">Hi Olivier,</span></div> 
</div>
<div id="yiv1324626242yqtfd45815">
<div class="yiv1324626242MsoNormal" style="background:white;"><span lang="EN-US" style="">  </span></div> 
</div>
<div id="yiv1324626242yqtfd45815">
<div class="yiv1324626242MsoNormal" style="background:white;"><span lang="EN-US" style="">The stream is already coded with no B-frames (zerolatency tune in ffmpeg) but I still have that latency in avdec_h264...</span></div> 
</div>
<div id="yiv1324626242yqtfd45815">
<div class="yiv1324626242MsoNormal" style="background:white;"><span lang="EN-US" style=""> </span></div> 
</div>
</div>
</div>
</div>
</div>
</div>
</div></div>
</div>
</div></div><div class="yqt4050365316" id="yqt10139">_______________________________________________<br clear="none">gstreamer-devel mailing list<br clear="none"><a shape="rect" ymailto="mailto:gstreamer-devel@lists.freedesktop.org" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br clear="none"><a shape="rect" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br clear="none"></div><br><br></div>  </div> </div>  </div></div></body></html>