Using VLC command line to stream video
I need to run a webserver that will stream video using rtsp. I am thinking of having a Java servlet that will process video requests, and then use the vlc comma开发者_Go百科nd line interface to stream the video.
I got rtsp streaming working in VLC using the gui interface, but since I want the servlet to execute VLC on requests I need to use the commandline interface. I haven't found a good tutorial on this, and most of the commands I've found haven't worked.
Thanks!
Check out Red5 - It's an open source (read:free) java based RTMP and there is an RTSP plug in you can use.
I've used it and it's great!
http://www.red5.org/
Run darwin streaming server and lightpd on Ubuntu 10.04. Use VLC to stream using rtsp just by providing the IP address to the server.
vlc rtsp://x.x.x.x/file.mp4
Slightly more complicated but that's the basic recipe.
精彩评论