[gst-devel] Changing Buffer Size in SoupHTTPSrc

Wouter Cloetens zombie at e2big.org
Sat Oct 18 23:26:57 CEST 2008


Sounds complicated. Can't you just set the blocksize on the souphttpsrc
object?
  g_object_set(G_OBJECT(src), "blocksize", 1024, NULL);

If you need an example pipeline:

gst-launch souphttpsrc blocksize=1024 location='http://207.226.88.71:8000' ! decodebin2 ! autoaudiosink

bfn, Wouter


On Thu, Oct 16, 2008 at 08:52:17AM -0500, Raj Swaminathan wrote:
> Wouter,
> Thanks ... Ill try that out ...
> To do that i have to do the connect signal as below and in the callback
> change the blocksize property. Is that how its done ?
> 
> // connect signal
> g_signal_connect(G_OBJECT(playbin), "notify::source",
> G_CALLBACK(cb_playbin_notify_source), NULL);
> 
> 
> Arnout,
> I would like to reduce the buffer size to optimize performance. Currently
> everytime i stream, it takes a long time for the buffer to fill up.
> Do you have an alternative ... is manually setting the pipeline to play an
> option ??
> 
> Thanks,
> raj
> 
> 
> On Thu, Oct 16, 2008 at 5:14 AM, Wouter Cloetens <zombie at e2big.org> wrote:
> 
> > On Wed, Oct 15, 2008 at 04:39:36PM -0500, Raj Swaminathan wrote:
> > > Is there a way to change the default buffer size that is setup with
> > > souphttpsrc ?  I use playbin.
> >
> > Yes. The "blocksize" property.
> >
> > http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstBaseSrc.html#GstBaseSrc--blocksize
> >
> > bfn, Wouter




More information about the gstreamer-devel mailing list