[streaming] RTSP streaming cable box

Justin Wetherell phishman3579 at gmail.com
Thu Sep 29 04:05:53 CEST 2005


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.

Any help would be appreciated!!

Here is the output:
""" Command """
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=
rtsp://freevo:6969/tv.avi}' --sout-keep

""" playlist """
#EXTM3U
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=55250
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=61250
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=67250
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=77250
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=83250
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=175250
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=181250
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=187250
v4l:/dev/video0:norm=ntsc:size=sif:adev=/dev/dsp0:audio=0:frequency=193250

""" output for server """
VLC media player 0.8.2 Janus
[00000243] skins2 interface error: Cannot open display
[00000243] skins2 interface error: Cannot initialize OSFactory
Remote control interface initialized, `h' for help
rtsp setup: freevo : 6969 / /tv.avi
[00000252] main private: creating httpd
rtsp: adding /tv.avi/trackid=0
sdp=v=0
o=- 1127959215453628 1 IN IP4 127.0.0.1 <http://127.0.0.1>
s=NONE
t=0 0
a=tool:vlc 0.8.2
c=IN IP4 0.0.0.0/0 <http://0.0.0.0/0>
m=video 1236 RTP/AVP 96
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;
rtsp: adding /tv.avi/trackid=1
sdp=v=0
o=- 1127959215453628 2 IN IP4 127.0.0.1 <http://127.0.0.1>
s=NONE
t=0 0
a=tool:vlc 0.8.2
c=IN IP4 0.0.0.0/0 <http://0.0.0.0/0>
m=video 1236 RTP/AVP 96
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;
m=audio 1234 RTP/AVP 14
a=rtpmap:14 MPA/90000
RtspCallback query: type=7
RtspCallback query: type=8
HTTPD_MSG_SETUP: transport=RTP/AVP;unicast;client_port=1236-1237
HTTPD_MSG_SETUP: unicast ip=192.168.0.3 <http://192.168.0.3> port=1236
RtspCallback query: type=8
HTTPD_MSG_SETUP: transport=RTP/AVP;unicast;client_port=1234-1235
HTTPD_MSG_SETUP: unicast ip=192.168.0.3 <http://192.168.0.3> port=1234
RtspCallback query: type=9
next
next: returned 0 (no error)
rtsp: adding /tv.avi/trackid=0
sdp=v=0
o=- 1127959215453628 3 IN IP4 127.0.0.1 <http://127.0.0.1>
s=NONE
t=0 0
a=tool:vlc 0.8.2
c=IN IP4 0.0.0.0/0 <http://0.0.0.0/0>
m=video 1236 RTP/AVP 97
a=rtpmap:97 MP4V-ES/90000
a=fmtp:97 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;
rtsp: adding /tv.avi/trackid=1
sdp=v=0
o=- 1127959215453628 4 IN IP4 127.0.0.1 <http://127.0.0.1>
s=NONE
t=0 0
a=tool:vlc 0.8.2
c=IN IP4 0.0.0.0/0 <http://0.0.0.0/0>
m=video 1236 RTP/AVP 97
a=rtpmap:97 MP4V-ES/90000
a=fmtp:97 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;
m=audio 1234 RTP/AVP 14
a=rtpmap:14 MPA/90000
RtspCallback query: type=11
RtspCallback query: type=7
RtspCallback query: type=8
HTTPD_MSG_SETUP: transport=RTP/AVP;unicast;client_port=1236-1237
HTTPD_MSG_SETUP: unicast ip=192.168.0.3 <http://192.168.0.3> port=1236
RtspCallback query: type=8
HTTPD_MSG_SETUP: transport=RTP/AVP;unicast;client_port=1234-1235
HTTPD_MSG_SETUP: unicast ip=192.168.0.3 <http://192.168.0.3> port=1234
RtspCallback query: type=9
next
next: returned 0 (no error)
rtsp: adding /tv.avi/trackid=0
sdp=v=0
o=- 1127959215453628 5 IN IP4 127.0.0.1 <http://127.0.0.1>
s=NONE
t=0 0
a=tool:vlc 0.8.2
c=IN IP4 0.0.0.0/0 <http://0.0.0.0/0>
m=video 1236 RTP/AVP 98
a=rtpmap:98 MP4V-ES/90000
a=fmtp:98 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;
rtsp: adding /tv.avi/trackid=1
sdp=v=0
o=- 1127959215453628 6 IN IP4 127.0.0.1 <http://127.0.0.1>
s=NONE
t=0 0
a=tool:vlc 0.8.2
c=IN IP4 0.0.0.0/0 <http://0.0.0.0/0>
m=video 1236 RTP/AVP 98
a=rtpmap:98 MP4V-ES/90000
a=fmtp:98 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;
m=audio 1234 RTP/AVP 14
a=rtpmap:14 MPA/90000
RtspCallback query: type=11

CLIENT:
""" command """
 vlc --rt-priority -vvv rtsp://freevo:6969/tv.avi

""" output """
VLC media player 0.8.2 Janus
Sending request: OPTIONS rtsp://freevo:6969/tv.avi RTSP/1.0
CSeq: 1
User-Agent: VLC Media Player (LIVE555 Streaming Media v2005.09.23)


Received OPTIONS response: RTSP/1.0 200 Ok
Cseq: 1
Server: VLC Server
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE
Content-Length: 0


Sending request: DESCRIBE rtsp://freevo:6969/tv.avi RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: VLC Media Player (LIVE555 Streaming Media v2005.09.23)


Received DESCRIBE response: RTSP/1.0 200 OK
Content-type: application/sdp
Server: VLC Server
Content-Length: 425
Cseq: 2
Cache-Control: no-cache


Need to read 425 extra bytes
Read 425 extra bytes: v=0
o=- 1127959215453628 7 IN IP4 127.0.0.1 <http://127.0.0.1>
s=NONE
t=0 0
a=tool:vlc 0.8.2
c=IN IP4 0.0.0.0/0 <http://0.0.0.0/0>
m=video 1236 RTP/AVP 98
a=rtpmap:98 MP4V-ES/90000
a=fmtp:98 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;
a=control:rtsp://freevo:6969/tv.avi/trackid=0
m=audio 1234 RTP/AVP 14
a=rtpmap:14 MPA/90000
a=control:rtsp://freevo:6969/tv.avi/trackid=1

sdp=v=0
o=- 1127959215453628 7 IN IP4 127.0.0.1 <http://127.0.0.1>
s=NONE
t=0 0
a=tool:vlc 0.8.2
c=IN IP4 0.0.0.0/0 <http://0.0.0.0/0>
m=video 1236 RTP/AVP 98
a=rtpmap:98 MP4V-ES/90000
a=fmtp:98 profile-level-id=3;
config=000001b001000001b58913000001000000012000c4f9e9e58800cd0a041e9463000001b24c61766335302e302e30;
a=control:rtsp://freevo:6969/tv.avi/trackid=0
m=audio 1234 RTP/AVP 14
a=rtpmap:14 MPA/90000
a=control:rtsp://freevo:6969/tv.avi/trackid=1

Sending request: SETUP rtsp://freevo:6969/tv.avi/trackid=0 RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=1236-1237
User-Agent: VLC Media Player (LIVE555 Streaming Media v2005.09.23)


Received SETUP response: RTSP/1.0 200 OK
Transport: RTP/AVP/UDP;client_port=1236-1237
Server: VLC Server
Content-Length: 0
Cseq: 3
Cache-Control: no-cache
Session: 1324570892


Sending request: SETUP rtsp://freevo:6969/tv.avi/trackid=1 RTSP/1.0
CSeq: 4
Transport: RTP/AVP;unicast;client_port=1234-1235
Session: 1324570892
User-Agent: VLC Media Player (LIVE555 Streaming Media v2005.09.23)


Received SETUP response: RTSP/1.0 200 OK
Transport: RTP/AVP/UDP;client_port=1234-1235
Server: VLC Server
Content-Length: 0
Cseq: 4
Cache-Control: no-cache
Session: 1324570892


Sending request: PLAY rtsp://freevo:6969/tv.avi RTSP/1.0
CSeq: 5
Session: 1324570892
Range: npt=0.000-
User-Agent: VLC Media Player (LIVE555 Streaming Media v2005.09.23)


Received PLAY response: RTSP/1.0 200 OK
Server: VLC Server
Content-Length: 0
Cseq: 5
Cache-Control: no-cache
Session: 1324570892;timeout=5


[mpeg4 @ 0x83d407c]warning: first frame is no keyframe
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
TaskInterrupt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/streaming/attachments/20050928/1526e255/attachment.htm 


More information about the streaming mailing list