Video on demand - behind firewall

About encoding, codec settings, muxers and filter usage
hypernova
New Cone
New Cone
Posts: 2
Joined: 10 May 2007 09:40

Video on demand - behind firewall

Postby hypernova » 10 May 2007 15:50

hi

i'm trying to set up videolan for testing on a linux server with redhat E4.
i successfully captured the stream with a 2nd instance of vlc on the same machine, so basically streaming works.
the server is behind a firewall; i configured the firewall to support rtsp streaming and opened the corresponding ports (tcp 5554 according vod example in vlc doc).

online i found this document describing rtsp ports to be opened
(it looks to me like a general non-proprietary information for streaming - ?)
http://www.soundscreen.com/streaming/firewall.html
according this i tried to opened tcp ports 7070, 8000, 8001 as well.
but i cannot stream the video from outside the firewall.
i can connect to the server-vlc, this is visible in the logs, but then the connection is dropped.

can anyone help me on with this please?

i add my start command config and log below.

thank you!

============
START COMMAND
============
vlc --file-logging --ttl 12 -vvv --color -I telnet --telnet-password xxxxx--rtsp-host 0.0.0.0:5554 --vlm-conf vod.cfg &

============
CONFIG (vod.cfg)
============
new Knut05 vod enabled
setup Knut05 input "/usr/local/videos/Knut05.mp4"
new Knut12 vod enabled
setup Knut12 input "/usr/local/videos/Knut12.mp4"

============
LOG
============
[00000297] logger interface: VLC media player - version 0.8.6a Janus - (c) 1996-
2007 the VideoLAN team
[00000297] logger interface:
Warnung: Falls Sie das graphische Interface nicht mehr benutzen k÷nnen, ÷ffnen S
ie die DOS-Eingabe, gehen in den Ordner von VLC und fnhren "vlc -I wx" aus.

[00000297] logger interface: using logger...
libdvdnav: Using dvdnav version 0.2.0cvs from http://dvd.sf.net
libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdread: Can't stat videolan.log
libdvdnav: vm: failed to open/read the DVD
[00000302] main input error: no suitable access module for `videolan.log'
[00000293] main playlist: nothing to play
Sending request: OPTIONS rtsp://myserver:5554/Knut12 RTSP/1.0
CSeq: 1
User-Agent: VLC media player (LIVE555 Streaming Media v2006.10.27)


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://myserver:5554/Knut12 RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: VLC media player (LIVE555 Streaming Media v2006.10.27)


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


Need to read 558 extra bytes
Read 558 extra bytes: v=0
o=- 1178797311949353 3 IN IP4 192.168.10.89
c=IN IP4 0.0.0.0
t=0 0
a=tool:vlc 0.8.6b
a=range:npt=0-185.760
m=audio 0 RTP/AVP 96
a=rtpmap:96 mpeg4-generic/16000
a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1408; SizeLeng
th=13;IndexLength=3; IndexDeltaLength=3; Profile=1;
a=control:rtsp://192.168.10.89:5554/Knut12/trackID=0
m=video 0 RTP/AVP 97
a=rtpmap:97 MP4V-ES/90000
a=fmtp:97 profile-level-id=3; config=000001b003000001b509000001000000012000845d4
c285020f0a21f;
a=control:rtsp://192.168.10.89:5554/Knut12/trackID=1

Sending request: SETUP rtsp://192.168.10.89:5554/Knut12/trackID=0 RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=1498-1499
User-Agent: VLC media player (LIVE555 Streaming Media v2006.10.27)


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


Sending request: SETUP rtsp://192.168.10.89:5554/Knut12/trackID=1 RTSP/1.0
CSeq: 4
Transport: RTP/AVP;unicast;client_port=1500-1501
Session: 900246344
User-Agent: VLC media player (LIVE555 Streaming Media v2006.10.27)


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


Sending request: PLAY rtsp://myserver:5554/Knut12 RTSP/1.0
CSeq: 5
Session: 900246344
Range: npt=0.000-
User-Agent: VLC media player (LIVE555 Streaming Media v2006.10.27)


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


Sending request: TEARDOWN rtsp://myserver:5554/Knut12 RTSP/1.0
CSeq: 6
Session: 900246344
User-Agent: VLC media player (LIVE555 Streaming Media v2006.10.27)


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


Sending request: OPTIONS rtsp://myserver:5554/Knut12 RTSP/1.0
CSeq: 7
User-Agent: VLC media player (LIVE555 Streaming Media v2006.10.27)


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


Sending request: DESCRIBE rtsp://myserver:5554/Knut12 RTSP/1.0
CSeq: 8
Accept: application/sdp
User-Agent: VLC media player (LIVE555 Streaming Media v2006.10.27)


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


Need to read 558 extra bytes
Read 558 extra bytes: v=0
o=- 1178797311949353 3 IN IP4 192.168.10.89
c=IN IP4 0.0.0.0
t=0 0
a=tool:vlc 0.8.6b
a=range:npt=0-185.760
m=audio 0 RTP/AVP 96
a=rtpmap:96 mpeg4-generic/16000
a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1408; SizeLeng
th=13;IndexLength=3; IndexDeltaLength=3; Profile=1;
a=control:rtsp://192.168.10.89:5554/Knut12/trackID=0
m=video 0 RTP/AVP 97
a=rtpmap:97 MP4V-ES/90000
a=fmtp:97 profile-level-id=3; config=000001b003000001b509000001000000012000845d4
c285020f0a21f;
a=control:rtsp://192.168.10.89:5554/Knut12/trackID=1

Sending request: SETUP rtsp://192.168.10.89:5554/Knut12/trackID=0 RTSP/1.0
CSeq: 9
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
User-Agent: VLC media player (LIVE555 Streaming Media v2006.10.27)


Received SETUP response: RTSP/1.0 461 Unsupported Transport
Server: VLC Server
Content-Length: 0
Cseq: 9
Cache-Control: no-cache


[00000320] live555 demuxer error: SETUP of'audio/MPEG4-GENERIC' failed SETUP: ca
nnot handle response: RTSP/1.0 461 Unsupported Transport
Sending request: SETUP rtsp://192.168.10.89:5554/Knut12/trackID=1 RTSP/1.0
CSeq: 10
Transport: RTP/AVP/TCP;unicast;interleaved=2-3
User-Agent: VLC media player (LIVE555 Streaming Media v2006.10.27)


Received SETUP response: RTSP/1.0 461 Unsupported Transport
Server: VLC Server
Content-Length: 0
Cseq: 10
Cache-Control: no-cache


[00000320] live555 demuxer error: SETUP of'video/MP4V-ES' failed SETUP: cannot h
andle response: RTSP/1.0 461 Unsupported Transport
[00000320] live555 demuxer error: Nothing to play for rtsp://myserver:55
54/Knut12
[00000320] live555 demuxer error: TCP rollover failed, aborting
[00000293] main playlist: nothing to play

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 10 May 2007 23:10

VLC VoD streaming won't accept clients behind NATs or Firewalls. You should try using Darwin Streaming Server to do that (it's free).
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

hypernova
New Cone
New Cone
Posts: 2
Joined: 10 May 2007 09:40

Postby hypernova » 10 May 2007 23:11

thank you for your answer.
ok i will try this then....
if anyone sees a chance with vlc any input is welcome.

Romwell
Blank Cone
Blank Cone
Posts: 10
Joined: 17 May 2007 03:20
Location: Odessa --> Brooklyn,NY
Contact:

Postby Romwell » 19 May 2007 02:35

If the server is behind a router (=NAT), it seems that you're screwed and VOD will not work. That's where I got stuck. LAN=good, WAN=bad. Post your success (if any) here. I tried DSS, but for one thing, it does not do transcoding. I don't understand why VOD streaming should be that complicated. (aaah, sorry for useless rant)
--
Happinness is not a station you arrive, but a manner of travelling.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 4 guests