Need help setting up a streaming server on the web

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
bobbyucsd006
New Cone
New Cone
Posts: 9
Joined: 02 Aug 2011 02:54

Need help setting up a streaming server on the web

Postby bobbyucsd006 » 03 Aug 2011 02:02

I need to setup a webservice that will stream video via rtsp to potentially multiple users each requesting a different video file that's available on a windows server. Right now I have a Java servlet running that receives requests for video, starts up vlc using the appropriate commandline, then sends as an httpresponse the link to the streaming video

For example, I've used on the server:
vlc C:\myvideo.avi --loop :sout=#gather:transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://:5544/test} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep

And the client view the video using:
vlc rtsp://server_ip_address:5544/test

However, I've noticed that with this method I can only stream one video at a time, which won't work in the long run. I'm hoping I can use VLM for this purpose, but I'm not exactly sure how to translate the above commands into VLM

I tried the following in a Putty Telnet session with VLM

Welcome, Master
> new ch broadcast enabled
new
> setup ch input C:\myvideo.avi
setup
> setup ch output gather:transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://:5544/test}
setup
> setup ch loop
setup
> setup ch option no-sout-rtp-sap
setup
> setup ch option no-sout-standard-sap
setup
> setup ch option ttl=1
setup
> setup ch option sout-keep
setup
> control ch play
control

But when I put the link rtsp://localhost:5544/test into vlc, but I got an error after about saying 5 seconds saying it couldn't open the link

I also tried using vod, with

new Test vod enabled
setup Test input C:\my_video.avi

I didn't get an error this time when I tried to open it, but nothing came out

Any help greatly appreciated, thanks!

Return to “VLM”

Who is online

Users browsing this forum: No registered users and 5 guests