About buffer size problem in udpsrc element

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

About buffer size problem in udpsrc element

liangzhihong1984
Hi, everyone.
I was using udpsrc to receive mpeg2ts stream from other machines,
But it's not so good when displaying. And I got some information
from the gstudpsrc.c file that "the default size is typically 50k
and can be increased to maximally 100k", so I think the buffer size
is not enough for my application, now I want to expand the buffer size
to a certain value, what should I do?
    Thank you all.
 
 
Best Regards,
Leon Liang  
 



<a href="http://allyes.nie.163.com/main/adfclick?db=afanie&bid=1698,833,77&cid=148,4,1&sid=1804&show=ignore&url=http://xyw.16 3.com/2008/heka/ ">《大话西游外传》贺岁新作,送豪宅、送你5000元压岁钱

------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: About buffer size problem in udpsrc element

Nie Jun

you can try property: blocksize and buffer-size to enable udpsrc emit larger buffer. you can gst-inspect udpsrc or check source code for their detail information.




《大话西游外传》贺岁新作,送豪宅、送你5000元压岁钱

------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: About buffer size problem in udpsrc element

liangzhihong1984
In reply to this post by liangzhihong1984
 
 Thank you for your reply.
Then what's the difference or relationship between the two properties blocksize and buffer-size?



<a href="http://allyes.nie.163.com/main/adfclick?db=afanie&bid=1698,833,77&cid=148,4,1&sid=1804&show=ignore&url=http://xyw.16 3.com/2008/heka/ ">《大话西游外传》贺岁新作,送豪宅、送你5000元压岁钱

------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: About buffer size problem in udpsrc element

Wim Taymans
blocksize is a default property for all sources, it's unused in udpsrc.
buffer-size is the size of the kernel receive buffer, it allows the
kernel to buffer more packets
for when  the app is not processing packets fast enough.

2009/1/6 liangzhihong1984 <[hidden email]>:

>
>  Thank you for your reply.
> Then what's the difference or relationship between the two properties
> blocksize and buffer-size?
>
> ________________________________
> 《大话西游外传》贺岁新作,送豪宅、送你5000元压岁钱
> ------------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
------------------------------------------------------------------------------
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel