current-level-time property of GstQueue plugin

marcin at saepia.net marcin at saepia.net
Tue Jul 24 08:05:28 PDT 2012


I suggest capturing bitrate from decoder's tags and using them and value of
bytes in the queue to calculate that.

m.

2012/7/24 Vijay Vikram <vikram.kvijay at gmail.com>

> Hi Folks,
>
> I am working on a bin which has a ‘souphttpsrc’ and ‘queue’ as children. I
> am
>
> connecting this bin in the following pipeline to play an avi file with
> xvid encoding.
>
>
>
> gst-launch httpplugin location=http://…/sample.avi ! avidemux name=avd
> avd.video_00 ! xviddec ! ffmpegcolorspace ! ximagesink
>
>
>
> The pipeline works fine and the application shows the video.
>
>
>
> 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 ‘*current-level-time*’ which should give *current
> amount of data in the queue (in ns)*. But it gives me some unexpected
> value (18446744073709551615)
>
>
>
> But if try to get ‘*current-level-bytes*’ property value, I am able to
> get values properly.
>
>
>
> *Now my query is*
>
> Is there some property that I need to set for the queue to give correct
> value in terms of time?
>
>
>  Regards,
> Vikram
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120724/bf71e6b6/attachment.html>


More information about the gstreamer-devel mailing list