<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 id="yui_3_16_0_ym19_1_1499955598300_19024" dir="ltr"><span id="yui_3_16_0_ym19_1_1499955598300_20301">Is the "is-live" setting only available programmatically? If it will improve latency, I'd like to use it on the decode (receiver) side, but I use gst_parse_launch() to create my pipeline.</span></div><div id="yui_3_16_0_ym19_1_1499955598300_19024" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1499955598300_19024" dir="ltr"><span id="yui_3_16_0_ym19_1_1499955598300_20382">I did a gst-inspect on all the GStreamer elements (especially avdec_h264) and as far as I could tell only the source elements support the "is-live" setting (i.e. videotestsrc, souphttpsrc, gltestsrc, fakesrc, audiotestsrc, appsrc). This was with 1.10.4.</span></div><div id="yui_3_16_0_ym19_1_1499955598300_19024" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1499955598300_19024" dir="ltr"><span>Gary</span></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1499955598300_19023"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1499955598300_18960" style="display: block;">  <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1499955598300_18959"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1499955598300_18958"> <div dir="ltr" id="yui_3_16_0_ym19_1_1499955598300_19021"> <font size="2" face="Arial" id="yui_3_16_0_ym19_1_1499955598300_19022"> <hr size="1" id="yui_3_16_0_ym19_1_1499955598300_20498"> <b id="yui_3_16_0_ym19_1_1499955598300_19096"><span style="font-weight:bold;" id="yui_3_16_0_ym19_1_1499955598300_19095">From:</span></b> "Lijia (George Lee, Euler)" <george.lee@huawei.com><br> <b><span style="font-weight: bold;">To:</span></b> paolo perotinus <paoloperot@yahoo.it>; Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, July 11, 2017 3:58 AM<br> <b id="yui_3_16_0_ym19_1_1499955598300_19094"><span style="font-weight: bold;" id="yui_3_16_0_ym19_1_1499955598300_19093">Subject:</span></b> 答复: 答复: How to reduce avdec_h264 latency<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1499955598300_18957"><br><div id="yiv6749509388">

 
 
<style><!--
#yiv6749509388  
 _filtered #yiv6749509388 {font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
 _filtered #yiv6749509388 {font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
 _filtered #yiv6749509388 {font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered #yiv6749509388 {font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv6749509388 {
panose-1:2 1 6 0 3 1 1 1 1 1;}
 _filtered #yiv6749509388 {
panose-1:2 11 5 3 2 2 4 2 2 4;}
 _filtered #yiv6749509388 {
panose-1:2 11 5 3 2 2 4 2 2 4;}
#yiv6749509388  
#yiv6749509388 p.yiv6749509388MsoNormal, #yiv6749509388 li.yiv6749509388MsoNormal, #yiv6749509388 div.yiv6749509388MsoNormal
        {margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:宋体;}
#yiv6749509388 a:link, #yiv6749509388 span.yiv6749509388MsoHyperlink
        {
color:blue;
text-decoration:underline;}
#yiv6749509388 a:visited, #yiv6749509388 span.yiv6749509388MsoHyperlinkFollowed
        {
color:purple;
text-decoration:underline;}
#yiv6749509388 p.yiv6749509388msonormal, #yiv6749509388 li.yiv6749509388msonormal, #yiv6749509388 div.yiv6749509388msonormal
        {

margin-right:0cm;

margin-left:0cm;
font-size:12.0pt;
font-family:宋体;}
#yiv6749509388 p.yiv6749509388msochpdefault, #yiv6749509388 li.yiv6749509388msochpdefault, #yiv6749509388 div.yiv6749509388msochpdefault
        {

margin-right:0cm;

margin-left:0cm;
font-size:12.0pt;
font-family:宋体;}
#yiv6749509388 span.yiv6749509388msohyperlink
        {}
#yiv6749509388 span.yiv6749509388msohyperlinkfollowed
        {}
#yiv6749509388 span.yiv6749509388emailstyle17
        {}
#yiv6749509388 p.yiv6749509388msonormal1, #yiv6749509388 li.yiv6749509388msonormal1, #yiv6749509388 div.yiv6749509388msonormal1
        {
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:宋体;}
#yiv6749509388 span.yiv6749509388msohyperlink1
        {
color:#0563C1;
text-decoration:underline;}
#yiv6749509388 span.yiv6749509388msohyperlinkfollowed1
        {
color:#954F72;
text-decoration:underline;}
#yiv6749509388 span.yiv6749509388emailstyle171
        {
color:#1F497D;}
#yiv6749509388 p.yiv6749509388msochpdefault1, #yiv6749509388 li.yiv6749509388msochpdefault1, #yiv6749509388 div.yiv6749509388msochpdefault1
        {

margin-right:0cm;

margin-left:0cm;
font-size:10.0pt;
font-family:宋体;}
#yiv6749509388 span.yiv6749509388EmailStyle27
        {
font-family:"Calibri", sans-serif;
color:#1F497D;}
#yiv6749509388 .yiv6749509388MsoChpDefault
        {
font-size:10.0pt;}
 _filtered #yiv6749509388 {
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
#yiv6749509388 div.yiv6749509388WordSection1
        {}
--></style>

<div id="yui_3_16_0_ym19_1_1499955598300_18956">
<div class="yiv6749509388WordSection1" id="yui_3_16_0_ym19_1_1499955598300_18955">
<div class="yiv6749509388MsoNormal" id="yui_3_16_0_ym19_1_1499955598300_19019"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D;" id="yui_3_16_0_ym19_1_1499955598300_19020">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.</span></div> 
<div class="yiv6749509388MsoNormal" id="yui_3_16_0_ym19_1_1499955598300_19018"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D;">  </span></div> 
<div class="yiv6749509388MsoNormal" id="yui_3_16_0_ym19_1_1499955598300_19092"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D;" id="yui_3_16_0_ym19_1_1499955598300_19091">George</span></div> 
<div id="yui_3_16_0_ym19_1_1499955598300_19017">
<div class="yiv6749509388MsoNormal" style="text-align:justify;text-justify:inter-ideograph;" id="yui_3_16_0_ym19_1_1499955598300_19016"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D;"> </span></div> 
</div>
<div class="yiv6749509388MsoNormal" id="yui_3_16_0_ym19_1_1499955598300_19015"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D;">  </span></div> 
<div id="yui_3_16_0_ym19_1_1499955598300_19014">
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm;" id="yui_3_16_0_ym19_1_1499955598300_19013">
<div class="yiv6749509388MsoNormal" id="yui_3_16_0_ym19_1_1499955598300_19012"><b id="yui_3_16_0_ym19_1_1499955598300_19090"><span style="font-size:11.0pt;" id="yui_3_16_0_ym19_1_1499955598300_19089">发件人<span lang="EN-US" id="yui_3_16_0_ym19_1_1499955598300_19088">:</span></span></b><span lang="EN-US" style="font-size:11.0pt;" id="yui_3_16_0_ym19_1_1499955598300_19079"> 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>
</span><b id="yui_3_16_0_ym19_1_1499955598300_19081"><span style="font-size:11.0pt;" id="yui_3_16_0_ym19_1_1499955598300_19080">发送时间<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:11.0pt;"> 2017</span><span style="font-size:11.0pt;" id="yui_3_16_0_ym19_1_1499955598300_19011">年<span lang="EN-US" id="yui_3_16_0_ym19_1_1499955598300_20685">7</span>月<span lang="EN-US">11</span>日<span lang="EN-US" id="yui_3_16_0_ym19_1_1499955598300_20686">
 18:50<br>
</span><b id="yui_3_16_0_ym19_1_1499955598300_19087">收件人<span lang="EN-US" id="yui_3_16_0_ym19_1_1499955598300_19086">:</span></b><span lang="EN-US" id="yui_3_16_0_ym19_1_1499955598300_19097"> Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org><br>
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US" id="yui_3_16_0_ym19_1_1499955598300_19082"> Re: </span>答复<span lang="EN-US" id="yui_3_16_0_ym19_1_1499955598300_19010">: How to reduce avdec_h264 latency</span></span></div> 
</div>
</div>
<div class="yiv6749509388MsoNormal" id="yui_3_16_0_ym19_1_1499955598300_19009"><span lang="EN-US">  </span></div> 
<div id="yui_3_16_0_ym19_1_1499955598300_18954">
<div id="yiv6749509388yui_3_16_0_ym19_1_1499769933559_3103">
<div class="yiv6749509388MsoNormal" style="background:white;" id="yui_3_16_0_ym19_1_1499955598300_19084"><span lang="EN-US" style="font-size:10.0pt;color:black;" id="yui_3_16_0_ym19_1_1499955598300_19083">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);" ).</span></div> 
</div>
<div id="yiv6749509388yui_3_16_0_ym19_1_1499769933559_3103">
<div class="yiv6749509388MsoNormal" style="background:white;" id="yui_3_16_0_ym19_1_1499955598300_19008"><span lang="EN-US" style="font-size:10.0pt;color:black;" id="yui_3_16_0_ym19_1_1499955598300_19007">However I think that this option (is-live) can appear too generic and misleading, and should be removed/changed.</span></div> 
</div>
<div id="yiv6749509388yui_3_16_0_ym19_1_1499769933559_3103">
<div class="yiv6749509388MsoNormal" style="background:white;" id="yui_3_16_0_ym19_1_1499955598300_19006"><span lang="EN-US" style="font-size:10.0pt;color:black;" id="yui_3_16_0_ym19_1_1499955598300_19085">What do you think about?</span></div> 
</div>
<div id="yui_3_16_0_ym19_1_1499955598300_19005">
<div class="yiv6749509388MsoNormal" style="margin-bottom:12.0pt;background:white;" id="yui_3_16_0_ym19_1_1499955598300_19004"><span lang="EN-US" style="font-size:10.0pt;color:black;">  </span></div> 
</div>
<div id="yui_3_16_0_ym19_1_1499955598300_18969">
<div id="yui_3_16_0_ym19_1_1499955598300_18968">
<div id="yui_3_16_0_ym19_1_1499955598300_18967">
<div id="yui_3_16_0_ym19_1_1499955598300_19003">
<div class="yiv6749509388MsoNormal" style="background:white;" id="yui_3_16_0_ym19_1_1499955598300_19002"><span lang="EN-US" style="font-size:10.0pt;color:black;" id="yui_3_16_0_ym19_1_1499955598300_19001">Il Martedì 11 Luglio 2017 12:40, "Lijia (George Lee, Euler)" <<a rel="nofollow" ymailto="mailto:george.lee@huawei.com" target="_blank" href="mailto:george.lee@huawei.com">george.lee@huawei.com</a>>
 ha scritto:</span><span lang="EN-US" style="color:black;"></span></div> 
</div>
<div class="yiv6749509388MsoNormal" style="margin-bottom:12.0pt;background:white;" id="yui_3_16_0_ym19_1_1499955598300_19000"><span lang="EN-US" style="color:black;">  </span></div> 
<div id="yui_3_16_0_ym19_1_1499955598300_18966">
<div id="yiv6749509388">
<div id="yui_3_16_0_ym19_1_1499955598300_18965">
<div id="yui_3_16_0_ym19_1_1499955598300_18964">
<div id="yui_3_16_0_ym19_1_1499955598300_18963">
<div class="yiv6749509388MsoNormal" style="background:white;" id="yui_3_16_0_ym19_1_1499955598300_18962"><span lang="EN-US" style="font-size:10.5pt;color:black;" id="yui_3_16_0_ym19_1_1499955598300_18961">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><span lang="EN-US" style="color:black;"></span></div> 
</div>
<div id="yui_3_16_0_ym19_1_1499955598300_20790">
<div class="yiv6749509388MsoNormal" style="background:white;" id="yui_3_16_0_ym19_1_1499955598300_20789"><span lang="EN-US" style="font-size:10.5pt;color:black;"> </span><span lang="EN-US" style="color:black;"></span></div> 
</div>
<div id="yui_3_16_0_ym19_1_1499955598300_18997">
<div class="yiv6749509388MsoNormal" style="text-align:justify;text-justify:inter-ideograph;background:white;" id="yui_3_16_0_ym19_1_1499955598300_18999">
<span lang="EN-US" style="font-size:10.5pt;color:black;">Best Regards,</span><span lang="EN-US" style="color:black;"></span></div> 
<div class="yiv6749509388MsoNormal" style="text-align:justify;text-justify:inter-ideograph;background:white;" id="yui_3_16_0_ym19_1_1499955598300_18998">
<span lang="EN-US" style="font-size:10.5pt;color:black;"> </span><span lang="EN-US" style="color:black;"></span></div> 
<div class="yiv6749509388MsoNormal" style="text-align:justify;text-justify:inter-ideograph;background:white;" id="yui_3_16_0_ym19_1_1499955598300_18996">
<span lang="EN-US" style="font-size:10.5pt;color:black;">George Lee
</span><span lang="EN-US" style="color:black;"></span></div> 
</div>
<div id="yui_3_16_0_ym19_1_1499955598300_18995">
<div class="yiv6749509388MsoNormal" style="background:white;" id="yui_3_16_0_ym19_1_1499955598300_18994"><span lang="EN-US" style="font-size:10.5pt;color:black;"> </span><span lang="EN-US" style="color:black;"></span></div> 
</div>
<div id="yiv6749509388yqt02283">
<div id="yui_3_16_0_ym19_1_1499955598300_18992">
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm;" id="yui_3_16_0_ym19_1_1499955598300_18991">
<div id="yui_3_16_0_ym19_1_1499955598300_18990">
<div class="yiv6749509388MsoNormal" style="background:white;" id="yui_3_16_0_ym19_1_1499955598300_18989"><b><span style="font-size:11.0pt;color:black;">发件人</span></b><b><span lang="EN-US" style="font-size:11.0pt;color:black;">:</span></b><span lang="EN-US" style="font-size:11.0pt;color:black;" id="yui_3_16_0_ym19_1_1499955598300_18988">
 gstreamer-devel [<a rel="nofollow" ymailto="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank" href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" id="yui_3_16_0_ym19_1_1499955598300_18987">mailto:gstreamer-devel-bounces@lists.freedesktop.org</a>]
</span><b><span style="font-size:11.0pt;color:black;">代表</span></b><b><span style="font-size:11.0pt;color:black;">
</span></b><span lang="EN-US" style="font-size:11.0pt;color:black;">paolo perotinus<br>
</span><b><span style="font-size:11.0pt;color:black;">发送时间</span></b><b><span lang="EN-US" style="font-size:11.0pt;color:black;">:</span></b><span lang="EN-US" style="font-size:11.0pt;color:black;">
 2017</span><span style="font-size:11.0pt;color:black;">年</span><span lang="EN-US" style="font-size:11.0pt;color:black;">7</span><span style="font-size:11.0pt;color:black;">月</span><span lang="EN-US" style="font-size:11.0pt;color:black;">11</span><span style="font-size:11.0pt;color:black;">日</span><span lang="EN-US" style="font-size:11.0pt;color:black;">
 17:45<br>
</span><b><span style="font-size:11.0pt;color:black;">收件人</span></b><b><span lang="EN-US" style="font-size:11.0pt;color:black;">:</span></b><span lang="EN-US" style="font-size:11.0pt;color:black;" id="yui_3_16_0_ym19_1_1499955598300_18993">
 Discussion of the development of and with GStreamer <<a rel="nofollow" ymailto="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>><br>
</span><b><span style="font-size:11.0pt;color:black;">主题</span></b><b><span lang="EN-US" style="font-size:11.0pt;color:black;">:</span></b><span lang="EN-US" style="font-size:11.0pt;color:black;">
 Re: How to reduce avdec_h264 latency</span><span lang="EN-US" style="color:black;"></span></div> 
</div>
</div>
</div>
<div id="yui_3_16_0_ym19_1_1499955598300_20792">
<div class="yiv6749509388MsoNormal" style="background:white;" id="yui_3_16_0_ym19_1_1499955598300_20791"><span lang="EN-US" style="color:black;"> </span></div> 
</div>
<div id="yui_3_16_0_ym19_1_1499955598300_20793">
<div id="yiv6749509388yui_3_16_0_ym19_1_1499766131585_2872">
<div style="margin-bottom:12.0pt;">
<div class="yiv6749509388MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:10.0pt;color:black;"> </span><span lang="EN-US" style="color:black;"></span></div> 
</div>
</div>
<div id="yiv6749509388yui_3_16_0_ym19_1_1499766131585_2871">
<div id="yiv6749509388yui_3_16_0_ym19_1_1499766131585_2870">
<div id="yiv6749509388yui_3_16_0_ym19_1_1499766131585_2869">
<div id="yiv6749509388yui_3_16_0_ym19_1_1499766131585_2902">
<div>
<div class="yiv6749509388MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:10.0pt;color:black;">Il Martedì 11 Luglio 2017 1:06, Olivier Crête <<a rel="nofollow" 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="color:black;"></span></div> 
</div>
</div>
<div style="margin-bottom:12.0pt;" id="yui_3_16_0_ym19_1_1499955598300_20795">
<div class="yiv6749509388MsoNormal" style="background:white;" id="yui_3_16_0_ym19_1_1499955598300_20794"><span lang="EN-US" style="color:black;"> </span></div> 
</div>
<div id="yiv6749509388yui_3_16_0_ym19_1_1499766131585_2868">
<div id="yiv6749509388yui_3_16_0_ym19_1_1499766131585_2867">
<div id="yui_3_16_0_ym19_1_1499955598300_20797">
<div class="yiv6749509388MsoNormal" style="background:white;" id="yui_3_16_0_ym19_1_1499955598300_20796"><span lang="EN-US" style="color:black;" id="yui_3_16_0_ym19_1_1499955598300_20798">> Hi,
<br>
<br>
> The only way to do that is to create a stream with no B-frames, for example using the H. 264 baseline profile.
<br>
<br>
> Olivier </span></div> 
</div>
<div id="yiv6749509388yqtfd45815">
<div id="yui_3_16_0_ym19_1_1499955598300_20800">
<div class="yiv6749509388MsoNormal" style="background:white;" id="yui_3_16_0_ym19_1_1499955598300_20799"><span lang="EN-US" style="color:black;"> </span></div> 
</div>
</div>
<div id="yiv6749509388yqtfd45815">
<div>
<div class="yiv6749509388MsoNormal" style="background:white;"><span lang="EN-US" style="color:black;">Hi Olivier,</span></div> 
</div>
</div>
<div id="yiv6749509388yqtfd45815">
<div>
<div class="yiv6749509388MsoNormal" style="background:white;"><span lang="EN-US" style="color:black;"> </span></div> 
</div>
</div>
<div id="yiv6749509388yqtfd45815">
<div>
<div class="yiv6749509388MsoNormal" style="background:white;"><span lang="EN-US" style="color:black;">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>
<div id="yiv6749509388yqtfd45815">
<div>
<div class="yiv6749509388MsoNormal" style="background:white;"><span lang="EN-US" style="color:black;"> </span></div> 
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="yiv6749509388yqt10139">
<div class="yiv6749509388MsoNormal" style="background:white;"><span lang="EN-US" style="color:black;">_______________________________________________<br>
gstreamer-devel mailing list<br>
<a rel="nofollow" ymailto="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a rel="nofollow" target="_blank" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></span></div> 
</div>
<div class="yiv6749509388MsoNormal" style="margin-bottom:12.0pt;background:white;"><span lang="EN-US" style="color:black;">  </span></div> 
</div>
</div>
</div>
</div>
</div>
</div>
</div>

</div>_______________________________________________<br>gstreamer-devel mailing list<br><a ymailto="mailto:gstreamer-devel@lists.freedesktop.org" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br><br><br></div> </div> </div>  </div></div></body></html>