[FFmpeg-devel] [PATCH] handle RTSP server keep-alive

Rehman Rehman_Saeed at live.com
Wed Jan 16 22:47:22 CET 2013


Tommy Winther <tommy <at> net-comm.dk> writes:

> 
> Hi Martin,
> 
> Yes, this fixes playback for me.
> I think your patch is more complete than mine, 
> so it would be nice to get that added.
> 
> Br.
> Tommy
> 
> lør, 25 02 2012 kl. 12:31 +0200, skrev Martin Storsjö:
> > Hi Tommy,
> > 
> > On Fri, 24 Feb 2012, Tommy Winther wrote:
> > 
> > > The patch checks for the OPTIONS request from the server and sends a
> > > RTSP/1.0 200 OK response, this fixes the keep-alive and the stream keeps
> > > playing.
> > 
> > I've actually written a similar patch some ago already, but I never found 
> > the actual need for trying to get it included. Attached is a touched up 
> > version of it, incorporating some parts of your changes. Does this still 
> > fix your issue?
> > 
> > // Martin
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel <at> ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 


Hello Tommy

I came across the same issue "keeping alive the RTSP server" which brought 
me to this discussion. I have applied your patch and situation improved 
but not in all cases. 

I have three cameras Axis M1054, Sony SNC-CH110 and Vivotek IP8331. I have
tried to read the 60 packets from RTSP servers on above cameras.

A: RTSP server on Axis M1054 times out (default timeout is 60 secs as 
per log messages but it times out after sending about 50 frames/packets)

B: RTSP server on Sony SNC-CH110 times out (default timeout is not known
as per log messages but it times out after sending about 30 frames/packets)

C: RTSP server on Vivotek IP8331 DOES NOT times out (default timeout is 
80 secs as per log messages; I have checked this upto 1000 packets/frames 
and found it working). 

I do have the log messages from libraries for all three scenarios and 
can't spot anything. I am not sure if I can attach them here but can 
forward.

By the way I have checked with VLC that streams from all three cameras 
are working. 
 
ffmpeg version 0.8.3
Ubuntu 10.04 LTS

My driver program is quite simple which just read the frame and encode it. 
Can you please comment what could possibly be wrong? or what sort of bits 
I should be checking. Any pointer would be very helpful. thanks. 

Regards,
Rehman




More information about the ffmpeg-devel mailing list