I suggest capturing bitrate from decoder's tags and using them and value of bytes in the queue to calculate that.<br><br>m.<br><br><div class="gmail_quote">2012/7/24 Vijay Vikram <span dir="ltr"><<a href="mailto:vikram.kvijay@gmail.com" target="_blank">vikram.kvijay@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Hi Folks,</font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">I am working on a bin which has a ‘souphttpsrc’ and ‘queue’ as children. I am </font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">connecting this bin in the following pipeline to play an avi file with xvid encoding.</font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3"> </font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">gst-launch httpplugin location=http://…/sample.avi ! avidemux name=avd avd.video_00 ! xviddec ! ffmpegcolorspace ! ximagesink</font></p>


<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3"> </font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">The pipeline works fine and the application shows the video. </font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3"> </font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Now I want to know the amount of data present in the queue at any point during playback in terms of ns. I checked the queue properties and found that there is a property </font><font face="Times New Roman"><font size="3">‘</font><code><b><span style="font-size:10pt;font-family:'Times New Roman'">current-level-time</span></b></code><font size="3">’ which should give <b>current amount of data in the queue (in ns)</b>. But it gives me some unexpected value (18446744073709551615)</font></font></p>


<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3"> </font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">But if try to get ‘<b>current-level-bytes</b>’ property value, I am able to get values properly. </font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3"> </font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><b><font size="3"><font face="Times New Roman">Now my query is</font></font></b></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Is there some property that I need to set for the queue to give correct value in terms of time?</font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3"> </font></p>
<div style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3"> Regards,</font></div>
<div style="MARGIN:0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Vikram</font> </div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>