Delay in playing IP camera's RTSP stream

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

Delay in playing IP camera's RTSP stream

gstPrafull
Hi,
I have OAbuild (windows) Gstreamer version 0.10.22
I am playing  RTSP stream from IP camera (AXIS camera) using following pipleine in Gstreamer

gst-launch-0.10.exe uridecodebin uri=rtsp://192.168.1.95/mpeg4/media.amp ! ffmpegcolorspace !directdrawsink

Though it plays video real-time, rendering has some delays as compared to  actual stream. This might be  due to some buffering which happen initially which gets refreshed subsequently and I could get to see non-stop real time video.
How can we reduce this buffering duration sso as to reduce the delay.

Thanks,
Prafull
Reply | Threaded
Open this post in threaded view
|

Re: Delay in playing IP camera's RTSP stream

Wim Taymans
On Thu, 2009-02-26 at 06:23 -0800, gstPrafull wrote:

> Hi,
> I have OAbuild (windows) Gstreamer version 0.10.22
> I am playing  RTSP stream from IP camera (AXIS camera) using following
> pipleine in Gstreamer
>
> gst-launch-0.10.exe uridecodebin uri=rtsp://192.168.1.95/mpeg4/media.amp !
> ffmpegcolorspace !directdrawsink
>
> Though it plays video real-time, rendering has some delays as compared to
> actual stream. This might be  due to some buffering which happen initially
> which gets refreshed subsequently and I could get to see non-stop real time
> video.
> How can we reduce this buffering duration sso as to reduce the delay.

You'll have to use rtspsrc directly like:

gst-launch rtspsrc location=rtsp://... ! decodebin2 ! ...

rtspsrc has a latency property which is conveniently set to 3 seconds by
default but can likely be reduced to 200ms.

Wim

>
> Thanks,
> Prafull


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Delay in playing IP camera's RTSP stream

kmailsbharat
Hi
I am having same problem. my command pipeline is as follows,
gst-launch rtspsrc location=rtsp://158.67.23.56/camera1 latency=0 ! rtpmp4vdepay ! ffdec_mpeg4 lowres=1 ! ffmpegcolorspace ! fbdevsink device=/dev/fb0

I am using ffmpeg decoders. problem i am facing is after some time there is a lag in the rendering. I am not getting live camera feed. i am getting after some time and this time keeps on increasing as time progresses.
Camera steream is getting queued up.

Camera conf : resolution is 640x480, 30FPS bitrate is 3000 kbits/sec.
How can i remove this lag and get the video live.

Thanks
Bk