Postby sta2008 » 04 May 2009 21:15
I'm having difficulty myself. I'm trying to take in an audio stream and on-the-fly transcode it to AAC over RTSP (going out).
There are two ways to do RTSP: VOD and broadcast. VOD (video on demand) is VLC taking some local file and streaming it out. Broadcast is taking a live feed (a shoutcast server, a webcam, a dv camera, etc) and streaming that out.
I'm trying to do broadcast myself.
My command line (for broadcasting only):
vlc -vvv -I dummy (input stream) --sout='#transcode{acodec=mp4a, aenc=ffmpeg}:rtp{mp4a-latm,dst=(server's IP),port=30100,port-audio=30110,name=aac5.sdp,sdp=rtsp://(server's IP):30090/aac5.sdp}'
This works when both the server and client are on the same network, but when I try it on a server on the internet I can't connect. The only consistent response I see for people's problems with RTSP is "firewall issue" with no explanation what ports need to be open. In my above command line, the only port option that seems to make any difference is where you see 30090 at the end.
In addition to 30100, 30110, 30090 open, I have opened ports 80, 554, 6970-6999 on my server's firewall to no avail.
So to summarize, VLC does work as a RTSP server, but when it comes to troubleshooting there are more questions here on the board then there are answers. I haven't found a post on VLC's forums or the site that answers people's questions about serving out RTSP. There is some good starter material but no FAQs or troubleshooting tips.