Page 1 of 1

Facing Problem in Video On Demand (RTSP)

Posted: 29 May 2008 09:39
by dineshatit
hi viewers ,

In Server,we have installed VLC in fedora core 7. And client also vlc player .

1. the server is started using following commands

vlc -vvv -I http --rtsp-host 0.0.0.0:5554

2. the files are uploaded for Video On Demand in web browser using http://x.x.x.x:8080/vlm.html

3.in client side ,the request was rtsp://x.x.x.x:5554/test in vlc N/w stream

the problem in client side is, not received the audio or video . Using wireshark , we have captured the follows


OPTIONS rtsp://x.x.x.x:5554/test RTSP/1.0
CSeq: 63
User-Agent: VLC media player (LIVE555 Streaming Media v2007.02.20)

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

DESCRIBE rtsp://x.x.x.x:5554/test RTSP/1.0
CSeq: 64
Accept: application/sdp
User-Agent: VLC media player (LIVE555 Streaming Media v2007.02.20)

RTSP/1.0 200 OK
Content-type: application/sdp
Server: VLC Server
Content-Length: 212
Cseq: 64
Cache-Control: no-cache

v=0
o=- 1211974030170048 2 IN IP4 x.x.x.x
c=IN IP4 0.0.0.0
t=0 0
a=tool:vlc 0.8.6g
a=range:npt=0-344.456
m=audio 0 RTP/AVP 14
a=rtpmap:14 MPA/90000
a=control:rtsp://x.x.x.x:5554/test/trackID=0
SETUP rtsp://x.x.x.x:5554/test/trackID=0 RTSP/1.0
CSeq: 65
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
User-Agent: VLC media player (LIVE555 Streaming Media v2007.02.20)

RTSP/1.0 461 Unsupported Transport
Server: VLC Server
Content-Length: 0
Cseq: 65
Cache-Control: no-cache

SETUP rtsp://x.x.x.x:5554/test/trackID=0 RTSP/1.0
CSeq: 66
Transport: RTP/AVP;unicast;client_port=32816-32817
User-Agent: VLC media player (LIVE555 Streaming Media v2007.02.20)

RTSP/1.0 200 OK
Transport: RTP/AVP/UDP;client_port=32816-32817
Server: VLC Server
Content-Length: 0
Cseq: 66
Cache-Control: no-cache
Session: 474232397

PLAY rtsp://x.x.x.x:5554/test RTSP/1.0
CSeq: 67
Session: 474232397
Range: npt=0.000-
User-Agent: VLC media player (LIVE555 Streaming Media v2007.02.20)

RTSP/1.0 200 OK
Server: VLC Server
Content-Length: 0
Cseq: 67
Cache-Control: no-cache
Session: 474232397;timeout=5

TEARDOWN rtsp://x.x.x.x:5554/test RTSP/1.0
CSeq: 68
Session: 474232397
User-Agent: VLC media player (LIVE555 Streaming Media v2007.02.20)

RTSP/1.0 200 OK
Server: VLC Server
Content-Length: 0
Cseq: 68
Cache-Control: no-cache
Session: 474232397;timeout=5

I think the problem is Unsupported Transport , So what would be the problem ?

the Server Console o/p was

[00000326] main http server debug: Connection from 219.64.113.144
[00000324] vod_rtsp private debug: RtspCallback query: type=7
[00000324] vod_rtsp private debug: RtspCallback query: type=8
[00000324] vod_rtsp private debug: HTTPD_MSG_SETUP: transport=RTP/AVP;unicast;client_port=32788-32789
[00000324] vod_rtsp private debug: HTTPD_MSG_SETUP: unicast ip=219.64.113.144 port=32788
[00000324] vod_rtsp private debug: new session: 311114441, connections: 0
[00000324] vod_rtsp private debug: RtspCallback query: type=9
[00000324] vod_rtsp private debug: HTTPD_MSG_PLAY for session: 311114441
[00000412] [Media: test] main input debug: waiting for thread completion
[00000412] [Media: test] main input debug: thread 1168148816 (input) created at priority 0 (input/input.c:265)
[00000413] [Media: test] main stream output debug: stream=`rtp'
[00000414] [Media: test] main private debug: looking for sout stream module: 1 candidate
[00000414] [Media: test] main private debug: set sout option: sout-rtp-dst to 219.64.113.144
[00000414] [Media: test] main private debug: set sout option: sout-rtp-port-video to 0
[00000414] [Media: test] main private debug: set sout option: sout-rtp-port-audio to 32788
[00000414] [Media: test] main private debug: using sout stream module "stream_out_rtp"
[00000412] [Media: test] main input debug: `/usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.mp3' gives access `' demux `' path `/usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.mp3'
[00000412] [Media: test] main input debug: creating demux: access='' demux='' path='/usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.mp3'
[00000415] [Media: test] main demuxer debug: looking for access_demux module: 2 candidates
[00000412] [Media: test] main input debug: creating access '' path='/usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.mp3'
[00000416] [Media: test] main access debug: looking for access2 module: 8 candidates
[00000416] [Media: test] vcd access debug: trying .cue file: /usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.cue
[00000416] [Media: test] vcd access debug: could not find .cue file
[00000416] [Media: test] access_file access debug: opening file `/usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.mp3'
[00000416] [Media: test] main access debug: using access2 module "access_file"
[00000417] [Media: test] main private debug: pre-buffering...
[00000417] [Media: test] main private debug: received first data for our buffer
[00000417] [Media: test] main private debug: pre-buffering done 1408981 bytes in 0s - 791690 kbytes/s
[00000412] [Media: test] main input debug: creating demux: access='' demux='' path='/usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.mp3'
[00000418] [Media: test] main demuxer debug: ID3v2.3 revision 0 tag found, skipping 794 bytes
[00000418] [Media: test] main demuxer debug: looking for demux2 module: 45 candidates
[00000419] main packetizer debug: looking for packetizer module: 17 candidates
[00000419] main packetizer debug: using packetizer module "mpeg_audio"
[00000419] mpeg_audio packetizer debug: MPGA channels:2 samplerate:44100 bitrate:128
[00000412] [Media: test] main input debug: selecting program id=0
[00000418] [Media: test] main demuxer debug: looking for id3 module: 1 candidate
[00000418] [Media: test] id3tag demuxer debug: checking for ID3 tag
[00000418] [Media: test] id3tag demuxer debug: found ID3v1 tag
[00000418] [Media: test] id3tag demuxer debug: found ID3v2 tag
[00000418] [Media: test] main demuxer debug: using id3 module "id3tag"
[00000418] [Media: test] main demuxer debug: removing module "id3tag"
[00000418] [Media: test] main demuxer debug: using demux2 module "mpga"
[00000412] [Media: test] main input debug: looking for a subtitle file in /usr/downloads/video/
[00000420] [Media: test] main packetizer debug: looking for packetizer module: 17 candidates
[00000420] [Media: test] main packetizer debug: using packetizer module "mpeg_audio"
[00000412] [Media: test] main input debug: stream out mode -> no decoder thread
[00000412] [Media: test] main input debug: starting in sync mode
[00000412] [Media: test] main input debug: meta information:
[00000412] [Media: test] main input debug: - 'Title' = 'Valayapatti Tamizh'
[00000412] [Media: test] main input debug: - 'Artist' = 'TamilBeat.Com'
[00000412] [Media: test] main input debug: - 'Album/movie/show title' = 'Azhagiya Tamil Magan'
[00000412] [Media: test] main input debug: - 'Date' = '2007'
[00000412] [Media: test] main input debug: - 'Track number/position in set' = '4'
[00000412] [Media: test] main input debug: - 'Genre' = 'Other'
[00000412] [Media: test] main input debug: - 'Length' = '344050'
[00000412] [Media: test] main input debug: - 'Track number/position in set' = '4'
[00000412] [Media: test] main input debug: - 'Title' = 'Valayapatti Tamizh'
[00000412] [Media: test] main input debug: - 'Genre' = 'Soundtrack'
[00000412] [Media: test] main input debug: - 'Artist' = 'TamilBeat.Com'
[00000412] [Media: test] main input debug: - 'Album/movie/show title' = 'Azhagiya Tamil Magan'
[00000412] [Media: test] main input debug: - 'Date' = '2007'
[00000412] [Media: test] main input debug: `/usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.mp3' successfully opened
[00000420] [Media: test] mpeg_audio packetizer debug: MPGA channels:2 samplerate:44100 bitrate:128
[00000413] [Media: test] main stream output debug: adding a new input
[00000421] [Media: test] main private debug: looking for sout access module: 1 candidate
[00000421] [Media: test] main private debug: set sout option: sout-udp-raw to (null)
[00000421] [Media: test] main private debug: net: connecting to 219.64.113.144 port 32788
[00000422] [Media: test] main private debug: thread 1178638672 (sout write thread) created at priority 0 (udp.c:268)
[00000421] [Media: test] access_output_udp private debug: udp access output opened(219.64.113.144:32788)
[00000421] [Media: test] main private debug: using sout access module "access_output_udp"
[00000414] [Media: test] stream_out_rtp private debug: access out udp{raw}:219.64.113.144:32788
[00000414] [Media: test] stream_out_rtp private debug: maximum RTP packet size: 1450 bytes
[00000414] [Media: test] stream_out_rtp private debug: sdp=v=0
o=- 1212038617598409 1 IN IP4 127.0.0.1
s=NONE
t=0 0
a=tool:vlc 0.8.6g
c=IN IP4 219.64.113.144
m=audio 32788 RTP/AVP 14
b=AS:128
a=rtpmap:14 MPA/90000

[00000324] vod_rtsp private debug: RtspCallback query: type=11
[00000324] vod_rtsp private debug: HTTPD_MSG_TEARDOWN for session: 311114441
[00000412] [Media: test] main input debug: control type=0
[00000412] [Media: test] main input debug: control: stopping input
[00000412] [Media: test] main input debug: closing input
[00000419] main packetizer debug: removing module "mpeg_audio"
[00000418] [Media: test] main demuxer debug: removing module "mpga"
[00000416] [Media: test] main access debug: removing module "access_file"
[00000420] [Media: test] main packetizer debug: removing module "mpeg_audio"
[00000420] [Media: test] main packetizer debug: killing decoder fourcc `mpga', 0 PES in FIFO
[00000413] [Media: test] main stream output debug: removing an input
[00000422] main private debug: thread 1178638672 joined (udp.c:316)
[00000421] access_output_udp private debug: udp access output closed
[00000421] main private debug: removing module "access_output_udp"
[00000412] [Media: test] main input debug: destroying sout
[00000414] main private debug: destroying chain... (name=rtp)
[00000414] main private debug: removing module "stream_out_rtp"
[00000414] main private debug: destroying chain done
[00000412] [Media: test] main input debug: thread 1168148816 joined (input/input.c:412)
[00000324] vod_rtsp private debug: closing session: 311114441, connections: 0
[00000326] main http server debug: Connection from 219.64.113.144
[00000324] vod_rtsp private debug: RtspCallback query: type=7
[00000324] vod_rtsp private debug: RtspCallback query: type=8
[00000324] vod_rtsp private debug: HTTPD_MSG_SETUP: transport=RTP/AVP/TCP;unicast;interleaved=0-1
[00000324] vod_rtsp private debug: RtspCallback query: type=8
[00000324] vod_rtsp private debug: HTTPD_MSG_SETUP: transport=RTP/AVP;unicast;client_port=32788-32789
[00000324] vod_rtsp private debug: HTTPD_MSG_SETUP: unicast ip=219.64.113.144 port=32788
[00000324] vod_rtsp private debug: new session: 1007294936, connections: 0
a[00000324] vod_rtsp private debug: RtspCallback query: type=9
[00000324] vod_rtsp private debug: HTTPD_MSG_PLAY for session: 1007294936
[00000423] [Media: test] main input debug: waiting for thread completion
[00000423] [Media: test] main input debug: thread 1168148816 (input) created at priority 0 (input/input.c:265)
[00000424] [Media: test] main stream output debug: stream=`rtp'
[00000425] [Media: test] main private debug: looking for sout stream module: 1 candidate
[00000425] [Media: test] main private debug: set sout option: sout-rtp-dst to 219.64.113.144
[00000425] [Media: test] main private debug: set sout option: sout-rtp-port-video to 0
[00000425] [Media: test] main private debug: set sout option: sout-rtp-port-audio to 32788
[00000425] [Media: test] main private debug: using sout stream module "stream_out_rtp"
[00000423] [Media: test] main input debug: `/usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.mp3' gives access `' demux `' path `/usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.mp3'
[00000423] [Media: test] main input debug: creating demux: access='' demux='' path='/usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.mp3'
[00000426] [Media: test] main demuxer debug: looking for access_demux module: 2 candidates
[00000423] [Media: test] main input debug: creating access '' path='/usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.mp3'
[00000427] [Media: test] main access debug: looking for access2 module: 8 candidates
[00000427] [Media: test] vcd access debug: trying .cue file: /usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.cue
[00000427] [Media: test] vcd access debug: could not find .cue file
[00000427] [Media: test] access_file access debug: opening file `/usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.mp3'
[00000427] [Media: test] main access debug: using access2 module "access_file"
[00000428] [Media: test] main private debug: pre-buffering...
[00000428] [Media: test] main private debug: received first data for our buffer
[00000428] [Media: test] main private debug: pre-buffering done 1408981 bytes in 0s - 849881 kbytes/s
[00000423] [Media: test] main input debug: creating demux: access='' demux='' path='/usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.mp3'
[00000429] [Media: test] main demuxer debug: ID3v2.3 revision 0 tag found, skipping 794 bytes
[00000429] [Media: test] main demuxer debug: looking for demux2 module: 45 candidates
[00000430] main packetizer debug: looking for packetizer module: 17 candidates
[00000430] main packetizer debug: using packetizer module "mpeg_audio"
[00000430] mpeg_audio packetizer debug: MPGA channels:2 samplerate:44100 bitrate:128
[00000423] [Media: test] main input debug: selecting program id=0
[00000429] [Media: test] main demuxer debug: looking for id3 module: 1 candidate
[00000429] [Media: test] id3tag demuxer debug: checking for ID3 tag
[00000429] [Media: test] id3tag demuxer debug: found ID3v1 tag
[00000429] [Media: test] id3tag demuxer debug: found ID3v2 tag
[00000429] [Media: test] main demuxer debug: using id3 module "id3tag"
[00000429] [Media: test] main demuxer debug: removing module "id3tag"
[00000429] [Media: test] main demuxer debug: using demux2 module "mpga"
[00000423] [Media: test] main input debug: looking for a subtitle file in /usr/downloads/video/
[00000431] [Media: test] main packetizer debug: looking for packetizer module: 17 candidates
[00000431] [Media: test] main packetizer debug: using packetizer module "mpeg_audio"
[00000423] [Media: test] main input debug: stream out mode -> no decoder thread
[00000423] [Media: test] main input debug: starting in sync mode
[00000423] [Media: test] main input debug: meta information:
[00000423] [Media: test] main input debug: - 'Title' = 'Valayapatti Tamizh'
[00000423] [Media: test] main input debug: - 'Artist' = 'TamilBeat.Com'
[00000423] [Media: test] main input debug: - 'Album/movie/show title' = 'Azhagiya Tamil Magan'
[00000423] [Media: test] main input debug: - 'Date' = '2007'
[00000423] [Media: test] main input debug: - 'Track number/position in set' = '4'
[00000423] [Media: test] main input debug: - 'Genre' = 'Other'
[00000423] [Media: test] main input debug: - 'Length' = '344050'
[00000423] [Media: test] main input debug: - 'Track number/position in set' = '4'
[00000423] [Media: test] main input debug: - 'Title' = 'Valayapatti Tamizh'
[00000423] [Media: test] main input debug: - 'Genre' = 'Soundtrack'
[00000423] [Media: test] main input debug: - 'Artist' = 'TamilBeat.Com'
[00000423] [Media: test] main input debug: - 'Album/movie/show title' = 'Azhagiya Tamil Magan'
[00000423] [Media: test] main input debug: - 'Date' = '2007'
[00000423] [Media: test] main input debug: `/usr/downloads/video/TamilBeat.Com - Valayapatti Tamizhe.mp3' successfully opened
[00000431] [Media: test] mpeg_audio packetizer debug: MPGA channels:2 samplerate:44100 bitrate:128
[00000424] [Media: test] main stream output debug: adding a new input
[00000432] [Media: test] main private debug: looking for sout access module: 1 candidate
[00000432] [Media: test] main private debug: set sout option: sout-udp-raw to (null)
[00000432] [Media: test] main private debug: net: connecting to 219.64.113.144 port 32788
[00000433] [Media: test] main private debug: thread 1178638672 (sout write thread) created at priority 0 (udp.c:268)
[00000432] [Media: test] access_output_udp private debug: udp access output opened(219.64.113.144:32788)
[00000432] [Media: test] main private debug: using sout access module "access_output_udp"
[00000425] [Media: test] stream_out_rtp private debug: access out udp{raw}:219.64.113.144:32788
[00000425] [Media: test] stream_out_rtp private debug: maximum RTP packet size: 1450 bytes
[00000425] [Media: test] stream_out_rtp private debug: sdp=v=0
o=- 1212038631078729 1 IN IP4 127.0.0.1
s=NONE
t=0 0
a=tool:vlc 0.8.6g
c=IN IP4 219.64.113.144
m=audio 32788 RTP/AVP 14
b=AS:128
a=rtpmap:14 MPA/90000

sd[00000324] vod_rtsp private debug: RtspCallback query: type=11
[00000324] vod_rtsp private debug: HTTPD_MSG_TEARDOWN for session: 1007294936
[00000423] [Media: test] main input debug: control type=0
[00000423] [Media: test] main input debug: control: stopping input
[00000423] [Media: test] main input debug: closing input
[00000430] main packetizer debug: removing module "mpeg_audio"
[00000429] [Media: test] main demuxer debug: removing module "mpga"
[00000427] [Media: test] main access debug: removing module "access_file"
[00000431] [Media: test] main packetizer debug: removing module "mpeg_audio"
[00000431] [Media: test] main packetizer debug: killing decoder fourcc `mpga', 0 PES in FIFO
[00000424] [Media: test] main stream output debug: removing an input
[00000433] main private debug: thread 1178638672 joined (udp.c:316)
[00000432] access_output_udp private debug: udp access output closed
[00000432] main private debug: removing module "access_output_udp"
[00000423] [Media: test] main input debug: destroying sout
[00000425] main private debug: destroying chain... (name=rtp)
[00000425] main private debug: removing module "stream_out_rtp"
[00000425] main private debug: destroying chain done
[00000423] [Media: test] main input debug: thread 1168148816 joined (input/input.c:412)
[00000324] vod_rtsp private debug: closing session: 1007294936, connections: 0


Note : 1.In Server , broadcasting is working.
2. Server is in Remote.
3. VOD is working on LAN .
4. As i seen in forum that , rtsp won't support TCP . but it support UDP.


please solve the problem what am facing ....................

Re: Facing Problem in Video On Demand (RTSP)

Posted: 26 Jun 2008 15:41
by yohann.martineau
did you try to use udp transport instead of tcp?
i think that's the problem.

Re: Facing Problem in Video On Demand (RTSP)

Posted: 30 Sep 2008 15:13
by bulek
did you try to use udp transport instead of tcp?
i think that's the problem.
Hi,

how can I set up udp or tcp with vlc as rtsp server ?

Thanks in advance,

regards,

Bulek.

Re: Facing Problem in Video On Demand (RTSP)

Posted: 28 Oct 2008 12:28
by ksreejithnair
VOD works for me.
I used HTTP interface to configure VOD.
I have started vlc with the following command.
vlc --extraintf http --http-src http/ --http-host localhost:80
make sure that port 80 is not in use.
From the browser I have accessed vlc http inteface using the url http://localhost/vlm.html
In the interface click on the video on demand button
Give any name in the name field : I have given "test"
Select an input file."somefile.avi"
Then click on send button.

Now you can access it from any vlc palyer using rtsp://[serverip]/test

Streaming is not working if the input file is .wmv or file name contains special characters like single quotes ( ' )

I wish to know two things, any input to this will be helpful.
1) whether I can give screen:// as input so that I can capture and send my desktop as VOD.
2) Is it possible to run setup VOD from command line.

Thanks in advance.

Re: Facing Problem in Video On Demand (RTSP)

Posted: 28 Oct 2008 18:11
by RĂ©mi Denis-Courmont
Your client is trying to use RTP over TCP through RTSP interleaving. This is the worse possible real-time media transport ever made. VLC does not support this (on the server side). So your client falls back to normal RTP/UDP, which the VLC server accepts.

But then it times out for some reason. Most probably a firewall/NAT problem.