Basic question about using playbin/playbin2

Stefan Kost ensonic at
Mon Mar 14 09:22:59 PDT 2011

On 10.03.2011 15:38, Alton Patrick wrote:
> I've just started using gstreamer in a project, and I have a couple of
> (probably dumb) questions that I haven't been able to find answers to
> online.
> I'm using a gstreamer pipeline with playbin followed by gstappsink to
> get streaming video data (MJPEG or MPEG2 over http) into my
> application.  It's working pretty well, except for these two things:
> 1. On Windows (using build 0.10.6 from ossbuild), when I try to
> connect to a stream that doesn't exist, playbin sends an error message
> on the bus after a few seconds.  When the app sees the error, it
> prints a message telling the user it can't connect and shuts down.
>  But on Linux (FC14, with gstreamer 0.10.31), it takes *several
> minutes* for playbin to decide it can't connect.  Is there a way to
> configure the amount of time playbin will try to connect before giving
> up? 

Maybe you can just lower the DNS timeout on your linux box (man

> 2. The documentation says playbin is deprecated and I should really be
> using playbin2.  I tried playbin2, but it wants to buffer for 10-15
> seconds before it starts giving me any data.  (playbin either does no
> buffering, or little enough that I don't notice.)  I tried setting the
> properties "buffer-duration" and "buffer-size" to 0, but that didn't
> seem to change the behavior.  How can I stop playbin2 from buffering,
> or at least get the buffer down to a reasonable amount?

Do you get this behaviour with a particualar stream only or in general.
Is it buffering 10-15 seconds of data or is it buffering for 10-15
seconds? Both seems to be too much.

> I would appreciate any advice about these two issues, or pointers to
> where to find more information.  Thanks.
> -Alton
> -- 
> ________________________________________________________________________________
> Alton Patrick
> hapatrick at <mailto:hapatrick at>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at

More information about the gstreamer-devel mailing list