Buffering RTP streams

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

Buffering RTP streams

Erwin Rol
Hello all,

I would like to bugger a RTP stream for a few seconds because the
theoradecoder is to slow at times but on average takes 80% CPU time.
The idea is to have something like this;

udpsrc ! theoradepay ! queue ! theoradec ! queue2 ! dfbvideosink

The idea is to have the second queue buffer 5 seconds, and only then
start the pipeline. But the docu says that you can't pause livestreams.
So how can I let the second queue buffer first before the video sink is
going to display it ?

TIA,

Erwin


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Buffering RTP streams

Wim Taymans
On Wed, 2009-03-18 at 10:48 +0100, Erwin Rol wrote:

> Hello all,
>
> I would like to bugger a RTP stream for a few seconds because the
> theoradecoder is to slow at times but on average takes 80% CPU time.
> The idea is to have something like this;
>
> udpsrc ! theoradepay ! queue ! theoradec ! queue2 ! dfbvideosink
>
> The idea is to have the second queue buffer 5 seconds, and only then
> start the pipeline. But the docu says that you can't pause livestreams.
> So how can I let the second queue buffer first before the video sink is
> going to display it ?

Add a gstrtpjitterbuffer after udpsrc and set the latency to 5 second.

Wim

>
> TIA,
>
> Erwin
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Buffering RTP streams

Erwin Rol
Wim Taymans wrote:

> Add a gstrtpjitterbuffer after udpsrc and set the latency to 5 second.

I did and now I have the effect that i have few frame, than the video
stops for 5 seconds (the latency=5000 of the jitterbuffer) than plays
for a few frames, than stops 5 seconds etc.

I set up the pipeline like this;

udpsrc ! rtpjitterbuffer latency=5000 ! theoradepay ! theoradec !
ffmpegcolorspace ! sdlvideosink

on a fast computer that should easily handle the load of a 320x200 video.

Any idea what i am doing wrong ?

- Erwin


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel