I am trying to make an RTSP streaming cable box. I have two computers;
one with a TV-tuner and the other with an internext connection to the
other. I have the server computer setup to rtsp stream and the client
is receiving the stream and playing. The problem comes in when I goto
change the playlist on the server side. The client will freeze the
audio and video but if I stop the feed and start it again, it works
fine.<br>
<br>
Any help would be appreciated!!<br>
<br>
Here is the output:<br>
""" Command """<br>
<div style="margin-left: 40px;">vlc --no-sout-display-audio
--no-sout-display-video --rt-priority /home/phishman/playlist.m3u
--sout
'#transcode{vcodec=mp4v,vb=1000,scale=1,acodec=mpga,ab=64,audio-sync,deinterlace,keyint=25}:rtp{sdp=<a>rtsp://freevo:6969/tv.avi</a>}'
--sout-keep<br>
</div>
<br>
""" playlist """<br>
<div style="margin-left: 40px;">#EXTM3U<br>
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=55250<br>
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=61250<br>
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=67250<br>
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=77250<br>
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=83250<br>
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=175250<br>
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=181250<br>
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=187250<br>
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=193250<br>
</div>
<br>
""" output for server """<br>
<div style="margin-left: 40px;">VLC media player 0.8.2 Janus<br>
[00000243] skins2 interface error: Cannot open display<br>
[00000243] skins2 interface error: Cannot initialize OSFactory<br>
Remote control interface initialized, `h' for help<br>
rtsp setup: freevo : 6969 / /tv.avi<br>
[00000252] main private: creating httpd<br>
rtsp: adding /tv.avi/trackid=0<br>
sdp=v=0<br>
o=- 1127959215453628 1 IN IP4 <a href="http://127.0.0.1/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1</a><br>
s=NONE<br>
t=0 0<br>
a=tool:vlc 0.8.2<br>
c=IN IP4 <a href="http://0.0.0.0/0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">0.0.0.0/0</a><br>
m=video 1236 RTP/AVP 96<br>
a=rtpmap:96 MP4V-ES/90000<br>
a=fmtp:96 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;<br>
rtsp: adding /tv.avi/trackid=1<br>
sdp=v=0<br>
o=- 1127959215453628 2 IN IP4 <a href="http://127.0.0.1/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1</a><br>
s=NONE<br>
t=0 0<br>
a=tool:vlc 0.8.2<br>
c=IN IP4 <a href="http://0.0.0.0/0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">0.0.0.0/0</a><br>
m=video 1236 RTP/AVP 96<br>
a=rtpmap:96 MP4V-ES/90000<br>
a=fmtp:96 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;<br>
m=audio 1234 RTP/AVP 14<br>
a=rtpmap:14 MPA/90000<br>
RtspCallback query: type=7<br>
RtspCallback query: type=8<br>
HTTPD_MSG_SETUP: transport=RTP/AVP;unicast;client_port=1236-1237<br>
HTTPD_MSG_SETUP: unicast ip=<a href="http://192.168.0.3/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.0.3</a> port=1236<br>
RtspCallback query: type=8<br>
HTTPD_MSG_SETUP: transport=RTP/AVP;unicast;client_port=1234-1235<br>
HTTPD_MSG_SETUP: unicast ip=<a href="http://192.168.0.3/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.0.3</a> port=1234<br>
RtspCallback query: type=9<br>
next<br>
next: returned 0 (no error)<br>
rtsp: adding /tv.avi/trackid=0<br>
sdp=v=0<br>
o=- 1127959215453628 3 IN IP4 <a href="http://127.0.0.1/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1</a><br>
s=NONE<br>
t=0 0<br>
a=tool:vlc 0.8.2<br>
c=IN IP4 <a href="http://0.0.0.0/0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">0.0.0.0/0</a><br>
m=video 1236 RTP/AVP 97<br>
a=rtpmap:97 MP4V-ES/90000<br>
a=fmtp:97 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;<br>
rtsp: adding /tv.avi/trackid=1<br>
sdp=v=0<br>
o=- 1127959215453628 4 IN IP4 <a href="http://127.0.0.1/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1</a><br>
s=NONE<br>
t=0 0<br>
a=tool:vlc 0.8.2<br>
c=IN IP4 <a href="http://0.0.0.0/0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">0.0.0.0/0</a><br>
m=video 1236 RTP/AVP 97<br>
a=rtpmap:97 MP4V-ES/90000<br>
a=fmtp:97 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;<br>
m=audio 1234 RTP/AVP 14<br>
a=rtpmap:14 MPA/90000<br>
RtspCallback query: type=11<br>
RtspCallback query: type=7<br>
RtspCallback query: type=8<br>
HTTPD_MSG_SETUP: transport=RTP/AVP;unicast;client_port=1236-1237<br>
HTTPD_MSG_SETUP: unicast ip=<a href="http://192.168.0.3/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.0.3</a> port=1236<br>
RtspCallback query: type=8<br>
HTTPD_MSG_SETUP: transport=RTP/AVP;unicast;client_port=1234-1235<br>
HTTPD_MSG_SETUP: unicast ip=<a href="http://192.168.0.3/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.0.3</a> port=1234<br>
RtspCallback query: type=9<br>
next<br>
next: returned 0 (no error)<br>
rtsp: adding /tv.avi/trackid=0<br>
sdp=v=0<br>
o=- 1127959215453628 5 IN IP4 <a href="http://127.0.0.1/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1</a><br>
s=NONE<br>
t=0 0<br>
a=tool:vlc 0.8.2<br>
c=IN IP4 <a href="http://0.0.0.0/0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">0.0.0.0/0</a><br>
m=video 1236 RTP/AVP 98<br>
a=rtpmap:98 MP4V-ES/90000<br>
a=fmtp:98 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;<br>
rtsp: adding /tv.avi/trackid=1<br>
sdp=v=0<br>
o=- 1127959215453628 6 IN IP4 <a href="http://127.0.0.1/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1</a><br>
s=NONE<br>
t=0 0<br>
a=tool:vlc 0.8.2<br>
c=IN IP4 <a href="http://0.0.0.0/0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">0.0.0.0/0</a><br>
m=video 1236 RTP/AVP 98<br>
a=rtpmap:98 MP4V-ES/90000<br>
a=fmtp:98 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;<br>
m=audio 1234 RTP/AVP 14<br>
a=rtpmap:14 MPA/90000<br>
RtspCallback query: type=11<br>
</div>
<br>
CLIENT:<br>
""" command """<br>
<div style="margin-left: 40px;"> vlc --rt-priority -vvv <a>rtsp://freevo:6969/tv.avi</a><br>
</div>
<br>
""" output """<br>
VLC media player 0.8.2 Janus<br>
Sending request: OPTIONS <a>rtsp://freevo:6969/tv.avi</a> RTSP/1.0<br>
CSeq: 1<br>
User-Agent: VLC Media Player (LIVE555 Streaming Media v2005.09.23)<br>
<br>
<br>
Received OPTIONS response: RTSP/1.0 200 Ok<br>
Cseq: 1<br>
Server: VLC Server<br>
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE<br>
Content-Length: 0<br>
<br>
<br>
Sending request: DESCRIBE <a>rtsp://freevo:6969/tv.avi</a> RTSP/1.0<br>
CSeq: 2<br>
Accept: application/sdp<br>
User-Agent: VLC Media Player (LIVE555 Streaming Media v2005.09.23)<br>
<br>
<br>
Received DESCRIBE response: RTSP/1.0 200 OK<br>
Content-type: application/sdp<br>
Server: VLC Server<br>
Content-Length: 425<br>
Cseq: 2<br>
Cache-Control: no-cache<br>
<br>
<br>
Need to read 425 extra bytes<br>
Read 425 extra bytes: v=0<br>
o=- 1127959215453628 7 IN IP4 <a href="http://127.0.0.1/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1</a><br>
s=NONE<br>
t=0 0<br>
a=tool:vlc 0.8.2<br>
c=IN IP4 <a href="http://0.0.0.0/0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">0.0.0.0/0</a><br>
m=video 1236 RTP/AVP 98<br>
a=rtpmap:98 MP4V-ES/90000<br>
a=fmtp:98 profile-level-id=3;
config=000001b001000001b5891300
<div style="margin-left: 40px;">0001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;<br>
a=control:<a>rtsp://freevo:6969/tv.avi/trackid=0</a><br>
m=audio 1234 RTP/AVP 14<br>
a=rtpmap:14 MPA/90000<br>
a=control:<a>rtsp://freevo:6969/tv.avi/trackid=1</a><br>
<br>
sdp=v=0<br>
o=- 1127959215453628 7 IN IP4 <a href="http://127.0.0.1/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1</a><br>
s=NONE<br>
t=0 0<br>
a=tool:vlc 0.8.2<br>
c=IN IP4 <a href="http://0.0.0.0/0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">0.0.0.0/0</a><br>
m=video 1236 RTP/AVP 98<br>
a=rtpmap:98 MP4V-ES/90000<br>
a=fmtp:98 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;<br>
a=control:<a>rtsp://freevo:6969/tv.avi/trackid=0</a><br>
m=audio 1234 RTP/AVP 14<br>
a=rtpmap:14 MPA/90000<br>
a=control:<a>rtsp://freevo:6969/tv.avi/trackid=1</a><br>
<br>
Sending request: SETUP <a>rtsp://freevo:6969/tv.avi/trackid=0</a> RTSP/1.0<br>
CSeq: 3<br>
Transport: RTP/AVP;unicast;client_port=1236-1237<br>
User-Agent: VLC Media Player (LIVE555 Streaming Media v2005.09.23)<br>
<br>
<br>
Received SETUP response: RTSP/1.0 200 OK<br>
Transport: RTP/AVP/UDP;client_port=1236-1237<br>
Server: VLC Server<br>
Content-Length: 0<br>
Cseq: 3<br>
Cache-Control: no-cache<br>
Session: 1324570892<br>
<br>
<br>
Sending request: SETUP <a>rtsp://freevo:6969/tv.avi/trackid=1</a> RTSP/1.0<br>
CSeq: 4<br>
Transport: RTP/AVP;unicast;client_port=1234-1235<br>
Session: 1324570892<br>
User-Agent: VLC Media Player (LIVE555 Streaming Media v2005.09.23)<br>
<br>
<br>
Received SETUP response: RTSP/1.0 200 OK<br>
Transport: RTP/AVP/UDP;client_port=1234-1235<br>
Server: VLC Server<br>
Content-Length: 0<br>
Cseq: 4<br>
Cache-Control: no-cache<br>
Session: 1324570892<br>
<br>
<br>
Sending request: PLAY <a>rtsp://freevo:6969/tv.avi</a> RTSP/1.0<br>
CSeq: 5<br>
Session: 1324570892<br>
Range: npt=0.000-<br>
User-Agent: VLC Media Player (LIVE555 Streaming Media v2005.09.23)<br>
<br>
<br>
Received PLAY response: RTSP/1.0 200 OK<br>
Server: VLC Server<br>
Content-Length: 0<br>
Cseq: 5<br>
Cache-Control: no-cache<br>
Session: 1324570892;timeout=5<br>
<br>
<br>
[mpeg4 @ 0x83d407c]warning: first frame is no keyframe<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt<br>
TaskInterrupt</div>