Changing Buffer Size in SoupHTTPSrc

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

Changing Buffer Size in SoupHTTPSrc

Raj Swaminathan
Hi,

Is there a way to change the default buffer size that is setup with souphttpsrc ?  I use playbin.

Thks for your help !

regards,
raj



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Changing Buffer Size in SoupHTTPSrc

Arnout Vandecappelle
On Wednesday 15 October 2008 23:39:36 Raj Swaminathan wrote:
> Hi,
> Is there a way to change the default buffer size that is setup with
> souphttpsrc ?  I use playbin.

 There isn't.

 Also, I don't see the point.  Do you need a larger buffer size on the TCP
connection because it takes too long for the pipeline to process a buffer?  
Or do you want to optimize performance by reducing the number of buffers
passed through the pipeline?  Or something else, still?

 Regards,
 Arnout

--
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  D206 D44B 5155 DF98 550D  3F2A 2213 88AA A1C7 C933

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Changing Buffer Size in SoupHTTPSrc

Wouter Cloetens-2
In reply to this post by Raj Swaminathan
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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Changing Buffer Size in SoupHTTPSrc

Raj Swaminathan
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 <[hidden email]> 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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Changing Buffer Size in SoupHTTPSrc

Wouter Cloetens-2
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='<a href="http://207.226.88.71:8000'">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 <[hidden email]> 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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel