<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello All,<br>
<br>
I have a problem with openRTSP capturing a stream from an Axis 210A
IP camera as described below:<br>
<br>
Running Debian Lenny, I run the following command to capture an RTSP
stream using TCP from the Axis camera:<br>
openRTSP -4 -n -t -Q -b 512000 -u <username> <password>
-w 640 -h 480 -f 25 <a class="moz-txt-link-freetext" href="rtsp://">rtsp://</a><ipaddress>/mpeg4/media.amp
>output.mp4<br>
<br>
I can then stop the stream by issuing 'kill -HUP <pid>' and
the video file is created correctly. All is well.<br>
<br>
However, since upgrading the operating system to Ubuntu 12.04,
running the same command and the same HUP signal, the stream does
not teardown and openRTSP hangs. Unfortunately this causes a serious
problem as I call openRTSP from a Perl application, which then
blocks as openRTSP never exits.<br>
Sometimes the HUP will complete successfully once, but then
capturing a new stream at a later time it will hang.<br>
<br>
The output after sending the HUP is as follows:<br>
-------------------------<br>
<snip verbose output><br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
inter_packet_gap_ms_min 1.214000<br>
inter_packet_gap_ms_ave 29.394320<br>
inter_packet_gap_ms_max 275.576000<br>
end_QOS_statistics<br>
Sending request: TEARDOWN <a class="moz-txt-link-freetext"
href="rtsp://">rtsp://</a><ipaddress>:554/mpeg4/media.amp/
RTSP/1.0<br>
CSeq: 7<br>
User-Agent: openRTSP (LIVE555 Streaming Media v2011.12.23)<br>
Session: 0929340996<br>
-------------------------<br>
<br>
But the session doesn't close. With the Debian Lenny version the
openRTSP process exits after the 'end_QOS_statistics' line,
consistently.<br>
I have discovered that on the 'bad' system if I eliminate the -t
switch and therefore stream using UDP, the stream correctly
terminates on receiving the HUP. However my application cannot
tolerate any frame drop, so this is not a sufficient workaround.<br>
<br>
I'm afraid I don't know how to obtain version numbers from openRTSP
itself, hence I'm referring to the packages included in the Debian
Lenny and Ubuntu 12.04 repositories.<br>
<br>
Any guidance would be appreciated, I'm happy to do any debugging as
necessary to help pinpoint this issue.<br>
<br>
Many thanks,<br>
Ben<br>
<br>
<br>
</body>
</html>