RTSP streaming keep alive problem

About encoding, codec settings, muxers and filter usage
chuan0309
New Cone
New Cone
Posts: 6
Joined: 03 Dec 2007 02:26

RTSP streaming keep alive problem

Postby chuan0309 » 03 Dec 2007 04:15

I have a QuickVideo on Demand server which has allow RTSP streaming. When playing a movie clips which is .mp2 file with VLC player 0.8.6d at the client (ubuntu linux system), it stop at about 2 minutes time. Provided that session timeout of the QuickVideo on Demand server is 120 seconds.

A GET_PARAMETER was send from client to the server when the movie stop as show in the following:
____________________________________________________________________________________________________________________________________
[00000561] live555 private debug: reset the timeout timer
Sending request: GET_PARAMETER rtsp://10.0.0.90/SD/LIS_4M.mp2 RTSP/1.0
CSeq: 5
Session: 9838
User-Agent: VLC media player (LIVE555 Streaming Media v2006.03.16)


Received GET_PARAMETER response: RTSP/1.0 200 OK
CSeq: 5
Server: QuickVideo/7.3
Content-Type: text/parameters
Content-Length: 15


Need to read 15 extra bytes
Read 15 extra bytes: position: 121
________________________________________________________________________________________________________________________________________

Is it a problem related to RTSP keep alive message? If yes, is that I should modify the vlc-0.8.6d/modules/demux/live555.cpp?

chuan0309
New Cone
New Cone
Posts: 6
Joined: 03 Dec 2007 02:26

Re: RTSP streaming keep alive problem

Postby chuan0309 » 04 Dec 2007 03:24

It seem like the Timeout Prevention thread is not worked well.

I have try to set the i_timeout to 10s so that the VLC client will send GET_PARAMETER command every 10s. But still it can't worked. It was stop and hang at the 10s of the movie track after GET_PARAMETER is sent. The following show that how I changed the i_timeout in modules/demux/live555.cpp:

____________________________________________________________________________________
/* 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 )
p_sys->i_timeout = 10;
if( p_sys->i_timeout > 0 && !p_sys->p_timeout )
}
___________________________________________________________________________________

chuan0309
New Cone
New Cone
Posts: 6
Joined: 03 Dec 2007 02:26

Re: RTSP streaming keep alive problem

Postby chuan0309 » 13 Dec 2007 04:18

Hello. Is there any body face a same problem as me?

I have tried the latest VLC 0.9.0-svn at the client side. This version send SET_PARAMETER command instead of GET_PARAMETER for every session timeout. For my case, the VLC client will send SET_PARAMETER command for every 120 sec which is the session timeout that reply from VOD server. Below show the RTSP command send from client and reply from server:

___________________________________________________________________________________________________________
PLAY rtsp://10.0.0.90/E$/SD/LIS_4M.mp2 RTSP/1.0

CSeq: 14

Session: 9833

User-Agent: VLC media player (LIVE555 Streaming Media v2006.03.16)



RTSP/1.0 200 OK

CSeq: 14

Server: QuickVideo/7.3

Session: 9833;timeout=120

Scale: 1.000000

Range: npt=0.00-



SET_PARAMETER rtsp://10.0.0.90/E$/SD/LIS_4M.mp2 RTSP/1.0

CSeq: 15

Session: 9833

User-Agent: VLC media player (LIVE555 Streaming Media v2006.03.16)

vlc: 1



RTSP/1.0 461 Unsupported Transport

CSeq: 15

Session: 9833
____________________________________________________________________________________________________________

Unfortunately, it still not worked well. The streaming will stop when 120 sec of session timeout is reached. Does some some body have any solution or suggestion or advise to me?

However, I found that there is a work around solution for this latest version. When we do "pause" and "play" the a streaming, it is actually send a keep alive message. When I do "pause" and "play" for every 120 sec or before the session timeout, the VLC client could play the streaming until the end at least.

Please help to solve this problem if you have any idea. Thanks very much. :)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests