Trang chủ‎ > ‎IT‎ > ‎Video Processing‎ > ‎

Problem of RTSP streaming with Live555 proxyserver

Problem of RTSP streaming with Live555 proxyserver

Postby jedi00 » 12 Nov 2013 09:15

I use VLC as rtsp server, and live555 proxyserver (as rtsp client of VLC) to proxy the rtsp stream. From the log generated by live555 proxyserver, every about 20s, VLC will send a "BYE" signal to live555 proxyserver, this will cause the rtsp proxy process broken.

I'm trying to figure out why VLC send "BYE" signal to its client, any idea or suggestion? Do I have to go through the source code of VLC?

Update:
I tested with VLC 1.1.11 and VLC 2.1.0, the same problem, it seems VLC server thought the client was dead, then sent a 'BYE' and closed the stream output.
First I doubted the "RR" response from live555 proxyserver to VLC is too late, but after analysed the network traffic with wireshark, it seemed all OK。 VLC sent "SR" packet about every second, and live555 proxyserver replied "RR" packet just after an "SR" packet received. 
Then I tested live555 proxyserver with other rtsp source, it worked all OK.
So, the problem is: why VLC received "RR" packet but still thought the client was dead?

Currently, vlc only support RTSP messages (like GET_PARAMETER) as RTSP keepalive. And not RR packets.
One solution could be to disable rtsp timeout vlc side :
--rtsp-timeout
But note that if the client disconnects without notice, vlc will continue to stream to this client forever.

To fix this, you can modify live555 to send those get_parameter :
http://lists.live555.com/pipermail/live ... 12132.html
Or patch vlc to support RR (harder).

Re: Problem of RTSP streaming with Live555 proxyserver

Postby jedi00 » 25 Nov 2013 06:50

Thanks Escudier!. Yes live555 doesn't send GET_PARAMETER message as liveness notification. 
I've modified live555 to send GET_PARAMETER message every 10~20 seconds, however, VLC responded with “RTSP/1.0 451 Client error”, why is this now? (Ps, I've tried configuring live555 to ignore 451 response of VLC and keep sending GET_PARAMETER messages, but still after 60s VLC would close the stream)

Update:
Finally find the problem. It turns out VLC only accepts a GET_PARAMETER message with no body.

Re: Problem of RTSP streaming with Live555 proxyserver

Postby RXLA » 04 Dec 2013 03:06

jedi00 wrote:Update:
Finally find the problem. It turns out VLC only accepts a GET_PARAMETER message with no body.


Jedi00 glad you found your answer. Have you had success since finding your solution?

Re: Problem of RTSP streaming with Live555 proxyserver

Postby jedi00 » 09 Dec 2013 07:48

Partly solved.
The modification works for VLC 2.1.0, but not for VLC 1.1.11. The response of VLC 1.1.11 to live555's "GET_PARAMETER" query is OK, but after 60s, it still will send "BYE" and close the stream. It seems that VLC 2.1.0 and VLC 1.1.11 use different signals as liveness notification of client.
Comments