how is buffering percentage implemented in playbin

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

how is buffering percentage implemented in playbin

Jyoti-2
Hi All,

Can someone comment on methodology to detect buffering used in gstplaybasebin.c..

Thanks,
Jyoti


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how is buffering percentage implemented in playbin

Wim Taymans
On Thu, 2009-12-17 at 14:49 +0530, Jyoti wrote:
> Hi All,
>
> Can someone comment on methodology to detect buffering used in
> gstplaybasebin.c..

Queues are put after the decoders and the fill level of those queues is
monitored. Buffering messages are posted on the bus with the fill
percentage. The buffering is only activated for a select number of uris,
like http and mms. Not sure what you are asking for.

Wim


>
> Thanks,
> Jyoti
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how is buffering percentage implemented in playbin

Jyoti-2
Thanks for the reply Wim.
I am actually looking out to get the buffering status for http uri.
I want to display the the current buffering level in percentage.
Based on the status I wanna show the buffering status over GUI.

Now coming to playbin, how is the monitoring carried out for the fill level of queues?

Jyoti

On Thu, Dec 17, 2009 at 3:43 PM, Wim Taymans <[hidden email]> wrote:
On Thu, 2009-12-17 at 14:49 +0530, Jyoti wrote:
> Hi All,
>
> Can someone comment on methodology to detect buffering used in
> gstplaybasebin.c..

Queues are put after the decoders and the fill level of those queues is
monitored. Buffering messages are posted on the bus with the fill
percentage. The buffering is only activated for a select number of uris,
like http and mms. Not sure what you are asking for.

Wim


>
> Thanks,
> Jyoti
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how is buffering percentage implemented in playbin

Wim Taymans
On Thu, 2009-12-17 at 15:54 +0530, Jyoti wrote:
> Thanks for the reply Wim.
> I am actually looking out to get the buffering status for http uri.
> I want to display the the current buffering level in percentage.
> Based on the status I wanna show the buffering status over GUI.
>
> Now coming to playbin, how is the monitoring carried out for the fill
> level of queues?

In a very bad way, don't try to do this. It's better to use the method
used in playbin2. Simply put queue2 between the source and the demuxer,
you'll see buffering messages being posted.

Wim

>
> Jyoti
>
> On Thu, Dec 17, 2009 at 3:43 PM, Wim Taymans <[hidden email]>
> wrote:
>         On Thu, 2009-12-17 at 14:49 +0530, Jyoti wrote:
>         > Hi All,
>         >
>         > Can someone comment on methodology to detect buffering used
>         in
>         > gstplaybasebin.c..
>        
>        
>         Queues are put after the decoders and the fill level of those
>         queues is
>         monitored. Buffering messages are posted on the bus with the
>         fill
>         percentage. The buffering is only activated for a select
>         number of uris,
>         like http and mms. Not sure what you are asking for.
>        
>         Wim
>        
>        
>         >
>         > Thanks,
>         > Jyoti
>         >
>         >
>         ------------------------------------------------------------------------------
>         > This SF.Net email is sponsored by the Verizon Developer
>         Community
>         > Take advantage of Verizon's best-in-class app development
>         support
>         > A streamlined, 14 day to market process makes app
>         distribution fast and easy
>         > Join now and get one step closer to millions of Verizon
>         customers
>         > http://p.sf.net/sfu/verizon-dev2dev
>         > _______________________________________________
>         gstreamer-devel mailing list
>         [hidden email]
>         https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>        
>        
>        
>         ------------------------------------------------------------------------------
>         This SF.Net email is sponsored by the Verizon Developer
>         Community
>         Take advantage of Verizon's best-in-class app development
>         support
>         A streamlined, 14 day to market process makes app distribution
>         fast and easy
>         Join now and get one step closer to millions of Verizon
>         customers
>         http://p.sf.net/sfu/verizon-dev2dev
>         _______________________________________________
>         gstreamer-devel mailing list
>         [hidden email]
>         https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how is buffering percentage implemented in playbin

Jyoti-2
I am writing an application where in I want to show the buffering status.
Is it not possible to monitor the level of queue in an application?

My motto is to display the buffering status something as below.

+--------------------------------------------------------------------------------- +
 |                          Buffering Progress Bar                                          |
 |                                                                                                       |
 |    |=======|...........|...........|...........|...........|...........|...........|...........|...........|          |
 |    0      10     20     30     40      50    60     70     80     90    100      |
 |    20% complete                                                                             |
 |     |<------------------------  Total Duration ------------------------>|     |
 |                                                                                                       |
+----------------------------------------------------------------------------------+


I want to continuously show how much percent is been downloaded and how much is
remaining. And also I want to start the playback only after say 10% of the total data is
downloaded so as to get the uninterrupted playback.

Can you please suggest some ideas on this.

Thanks,
Jyoti











On Thu, Dec 17, 2009 at 3:59 PM, Wim Taymans <[hidden email]> wrote:
On Thu, 2009-12-17 at 15:54 +0530, Jyoti wrote:
> Thanks for the reply Wim.
> I am actually looking out to get the buffering status for http uri.
> I want to display the the current buffering level in percentage.
> Based on the status I wanna show the buffering status over GUI.
>
> Now coming to playbin, how is the monitoring carried out for the fill
> level of queues?

In a very bad way, don't try to do this. It's better to use the method
used in playbin2. Simply put queue2 between the source and the demuxer,
you'll see buffering messages being posted.

Wim

>
> Jyoti
>
> On Thu, Dec 17, 2009 at 3:43 PM, Wim Taymans <[hidden email]>
> wrote:
>         On Thu, 2009-12-17 at 14:49 +0530, Jyoti wrote:
>         > Hi All,
>         >
>         > Can someone comment on methodology to detect buffering used
>         in
>         > gstplaybasebin.c..
>
>
>         Queues are put after the decoders and the fill level of those
>         queues is
>         monitored. Buffering messages are posted on the bus with the
>         fill
>         percentage. The buffering is only activated for a select
>         number of uris,
>         like http and mms. Not sure what you are asking for.
>
>         Wim
>
>
>         >
>         > Thanks,
>         > Jyoti
>         >
>         >
>         ------------------------------------------------------------------------------
>         > This SF.Net email is sponsored by the Verizon Developer
>         Community
>         > Take advantage of Verizon's best-in-class app development
>         support
>         > A streamlined, 14 day to market process makes app
>         distribution fast and easy
>         > Join now and get one step closer to millions of Verizon
>         customers
>         > http://p.sf.net/sfu/verizon-dev2dev
>         > _______________________________________________
>         gstreamer-devel mailing list
>         [hidden email]
>         https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>         ------------------------------------------------------------------------------
>         This SF.Net email is sponsored by the Verizon Developer
>         Community
>         Take advantage of Verizon's best-in-class app development
>         support
>         A streamlined, 14 day to market process makes app distribution
>         fast and easy
>         Join now and get one step closer to millions of Verizon
>         customers
>         http://p.sf.net/sfu/verizon-dev2dev
>         _______________________________________________
>         gstreamer-devel mailing list
>         [hidden email]
>         https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how is buffering percentage implemented in playbin

Bastien Nocera-2
On Thu, 2009-12-17 at 16:39 +0530, Jyoti wrote:
> I am writing an application where in I want to show the buffering
> status.
> Is it not possible to monitor the level of queue in an application?
>
> My motto is to display the buffering status something as below.
<snip>
> I want to continuously show how much percent is been downloaded and
> how much is
> remaining. And also I want to start the playback only after say 10% of
> the total data is
> downloaded so as to get the uninterrupted playback.
>
> Can you please suggest some ideas on this.

You need to use playbin2 for that, and use the DOWNLOAD tag on it. See
Totem in GNOME master for details on how it should be used.

Cheers


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how is buffering percentage implemented in playbin

Jyoti-2
I have one small query. How is the downloading of buffers carried out in GStreamer for live sources.


On Thu, Dec 17, 2009 at 4:45 PM, Bastien Nocera <[hidden email]> wrote:
On Thu, 2009-12-17 at 16:39 +0530, Jyoti wrote:
> I am writing an application where in I want to show the buffering
> status.
> Is it not possible to monitor the level of queue in an application?
>
> My motto is to display the buffering status something as below.
<snip>
> I want to continuously show how much percent is been downloaded and
> how much is
> remaining. And also I want to start the playback only after say 10% of
> the total data is
> downloaded so as to get the uninterrupted playback.
>
> Can you please suggest some ideas on this.

You need to use playbin2 for that, and use the DOWNLOAD tag on it. See
Totem in GNOME master for details on how it should be used.

Cheers


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel