<div>Hi Marcin,</div>
<div>First thanks for your response. </div>
<div>I can understand your point and it would be valid when playing media in a constant bit rate channel and in the follwing pipeline too its quite valid.</div>
<div> </div>
<div>But if we think in the perspective of adaptive streaming where the bit rate might vary(something like DASH), it would become too complex to handle. First of all data is segmented and we have multiple copies of same data with multiple bit rates. The decoder at any time during playback time will just give the segment being played curently.</div>

<div> </div>
<div>In this situation, what can be the best way to get the current amount of data buffered?</div>
<div> </div>
<div>Regards,</div>
<div>Vikram<br><br></div>
<div class="gmail_quote">On Tue, Jul 24, 2012 at 8:35 PM, <a href="mailto:marcin@saepia.net">marcin@saepia.net</a> <span dir="ltr"><<a href="mailto:marcin@saepia.net" target="_blank">marcin@saepia.net</a>></span> wrote:<br>

<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">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 style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div>
<div class="h5">
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font size="3" face="Times New Roman">Hi Folks,</font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font size="3" face="Times New Roman">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 size="3" face="Times New Roman">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 size="3" face="Times New Roman"> </font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font size="3" face="Times New Roman">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 size="3" face="Times New Roman"> </font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font size="3" face="Times New Roman">The pipeline works fine and the application shows the video. </font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font size="3" face="Times New Roman"> </font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font size="3" face="Times New Roman">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-FAMILY:'Times New Roman';FONT-SIZE:10pt">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 size="3" face="Times New Roman"> </font></p>
<p style="MARGIN:0in 0in 0pt" class="MsoNormal"><font size="3" face="Times New Roman">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 size="3" face="Times New Roman"> </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 size="3" face="Times New Roman">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 size="3" face="Times New Roman"> </font></p>
<div style="MARGIN:0in 0in 0pt" class="MsoNormal"><font size="3" face="Times New Roman"> Regards,</font></div>
<div style="MARGIN:0in 0in 0pt" class="MsoNormal"><font size="3" face="Times New Roman">Vikram</font> </div><br></div></div>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">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><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>