Problems playing stream from Axis cams

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
GillroY
New Cone
New Cone
Posts: 6
Joined: 07 Feb 2007 11:22

Problems playing stream from Axis cams

Postby GillroY » 28 Oct 2007 14:11

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!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Problems playing stream from Axis cams

Postby Jean-Baptiste Kempf » 28 Oct 2007 19:26

Mail vlc-devel@ with this details.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

GillroY
New Cone
New Cone
Posts: 6
Joined: 07 Feb 2007 11:22

Re: Problems playing stream from Axis cams

Postby GillroY » 28 Oct 2007 19:46

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!

Arateris
Blank Cone
Blank Cone
Posts: 12
Joined: 30 Jul 2007 11:51

Re: Problems playing stream from Axis cams

Postby Arateris » 20 Nov 2007 17:17

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)?

GillroY
New Cone
New Cone
Posts: 6
Joined: 07 Feb 2007 11:22

Re: Problems playing stream from Axis cams

Postby GillroY » 20 Nov 2007 17:26

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.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 12 guests