Page 1 of 1

Problems playing stream from Axis cams

Posted: 28 Oct 2007 14:11
by GillroY
When using the latest nightly of vlc with an mpeg4 stream from an Axis IP-camera, you will get an RTSP timeout after approximately 60 secs. This used to be fixable by setting the camera's timeout value to 0.
In the latest nightly there is this code in live555.cpp:

Code: Select all

/* Retrieve the timeout value and set up a timeout prevention thread */ p_sys->i_timeout = p_sys->rtsp->sessionTimeoutParameter(); if( p_sys->i_timeout <= 0 ) p_sys->i_timeout = 60; /* default value from RFC2326 */ if( !p_sys->p_timeout ) { ....
If you replace this with the following code, the problem is solved (I got the code from the 0.8.6c source)

Code: Select all

/* Retrieve the timeout value and set up a timeout prevention thread */ #if LIVEMEDIA_LIBRARY_VERSION_INT >= 1138089600 p_sys->i_timeout = p_sys->rtsp->sessionTimeoutParameter(); #endif //if( p_sys->i_timeout <= 0 ) // p_sys->i_timeout = 60; /* default value from RFC2326 */ //if( !p_sys->p_timeout ) if( p_sys->i_timeout > 0 && !p_sys->p_timeout ) { ...
I guess the problem is that when the camera returns 0 for the timeout, vlc sets it to 60 and will therefore timeout after 60 seconds? Can a developer please change this back in the current svn versions?

Cheers!

Re: Problems playing stream from Axis cams

Posted: 28 Oct 2007 19:26
by Jean-Baptiste Kempf
Mail vlc-devel@ with this details.

Re: Problems playing stream from Axis cams

Posted: 28 Oct 2007 19:46
by GillroY
Will do, another thing I found out might also be worthwhile mentioning here though.

It seems that the keep-alive signal that VLC is sending, is illegal for the streaming server in an Axis cam. VLC (or actually the live555 module I guess) sends a "PARAMETER_GET" request, which is then followed by vlc discarding all the incoming rtsp packages. I'm still figuring out what IS a legal keepalive request though. Will keep the forum and mailinglist updated!

Re: Problems playing stream from Axis cams

Posted: 20 Nov 2007 17:17
by Arateris
I got the same problem, it's not while using a cam, but I got a streaming server that can't reply to any GET_PARAMETER messages. Is there a way to avoid this request or to configure that resetting timeout delay (without changing the source-code)?

Re: Problems playing stream from Axis cams

Posted: 20 Nov 2007 17:26
by GillroY
I got the same problem, it's not while using a cam, but I got a streaming server that can't reply to any GET_PARAMETER messages. Is there a way to avoid this request or to configure that resetting timeout delay (without changing the source-code)?
The streaming servers use the same software as the cam's to provide rtsp streams. So that's why you're also getting those errors.

There is unfortunately no way to prevent those requests without altering the source. The latest stable version, 0.8.6c though, will behave nicely if you set the rtsp-timeout in the camera to 0 (instead of the default value 60). This can be done by using the script editor and editing the file rtspd.conf.