Page 1 of 1
configuration file for vlc as a server
Posted: 13 Jun 2006 13:38
by MrExNice1979
Hey,
my project about videolan goes on and on,
I decided to stream with vlc, because it works.
But can I write a configuration file for vlc (like vls.cfg for vls) ????
How does it work?
I need it, because I only want to reboot the server, and ín this process, I want vlc to start and stream automatically with a configuration file?
Is it possible??
Thank you very much
Posted: 13 Jun 2006 14:04
by yoann
It depends on how complex your stream is.
But basically, what people do, is just writing a small "script" like this:
Code: Select all
#!/bin/sh
vlc --all --my --options my files
And this command line is generally enough.
But if you want to do things like VOD or broadcast multiple files simultaneously, etc., you could be interested by VLM (VideoLAN Manager), which is included in VLC, and which can read a config file.
See
http://www.videolan.org/doc/streaming-h ... /ch05.html for more details.
Posted: 20 Jun 2006 09:03
by MrExNice1979
thx for your answer,
That souns good, I will try to test it.
But I wondered, because it is possible to write vlc commands in a script like that:
shell commando:
root@pc5555: ./vlcconfigscript.sh
vlcconfigscript.sh:
vlc -vvv video1.xyz --sout udp:192.168.0.42 --ttl 12
vlc -vvv video2.xyz --sout udp:192.168.0.42 --ttl 12
vlc -vvv video3.xyz --sout udp:192.168.0.42 --ttl 12
And what will happen then. Will VLC stream the 3 files at the same timen, or first the video1, then the video2...(with the example)?
Another question
is that vlm doesn't work for me with the command:
vlc --intf telnet :in the shell and try to open vlm in the browser with:
http://MyIpadrress:port/vlm
Any Idea?
Posted: 20 Jun 2006 13:59
by yoann
vlc -vvv video1.xyz --sout udp:192.168.0.42 --ttl 12
vlc -vvv video2.xyz --sout udp:192.168.0.42 --ttl 12
vlc -vvv video3.xyz --sout udp:192.168.0.42 --ttl 12
And what will happen then. Will VLC stream the 3 files at the same timen, or first the video1, then the video2...(with the example)?
Yes, the first VLC will stream video1, and won't stop. So you will never stream video2 and 3
You can use the "-d" switch to run VLC as daemon: VLC will detach itself and will give back control to your script, so that you can run the next VLC just after launching the previous one.
Another question
is that vlm doesn't work for me with the command:
vlc --intf telnet :in the shell and try to open vlm in the browser with:
http://MyIpadrress:port/vlm
Any Idea?
see
http://www.videolan.org/doc/streaming-h ... /ch05.html
First, you can write a vlm.conf file - say "vlm.conf" - with blocks like that:
Code: Select all
new video1 broadcast enabled
setup video1 input video1.xyz
setup video1 output #standard{mux=ts,access=udp,dst=239.255.0.42}
[same for video2 & video3]
control video1 play
control video2 play
control video3 play
Then, to tell VLC to use it:
About the telnet interface: use "--intf telnet" and then, in a console, "telnet localhost 4212".
About then web interface: use "--extraintf http", and open "
http://localhost:8080/vlm" in your browser.
Posted: 22 Jun 2006 08:47
by MrExNice1979
wow, thx for tipps, I will try that and post my results.
In about two or three months, I want to complete my vlc/vls project.
First I thought, it doesn't work for me, but step by step, ...I just like it
cu
Posted: 26 Jun 2006 15:37
by Guest
With password do I need to access the telnet?
Posted: 26 Jun 2006 16:23
by yoann
Do you mean "which password"?
If so, the default password is "admin".
Posted: 28 Jun 2006 10:26
by MrExNice1979
thx a lot, okay now I can achieve vlc by telnet and vlm. Well in vlm is a message to use the telnet....
What do you think, what is better? I think I want to try it with the config.file...
How can I see if vlc is something streaming ?(for example, I stream with my config file, and control vlc in telnet, is there a command to see the status, or if the file is in streaming process? )?
Posted: 28 Jun 2006 16:13
by MrExNice1979
@yoann:
sorry, one more question:
you said that i can use -d to vlc as a daemon.
like that?This will be my config.file
vlc -d -vvv video1.xyz --sout udp:192.168.0.42 --ttl 12
vlc -d -vvv video2.xyz --sout udp:192.168.0.42 --ttl 12
vlc -d-vvv video3.xyz --sout udp:192.168.0.42 --ttl 12
VLC will detach itself and will give back control to your script, so that you can run the next VLC just after launching the previous one.
Posted: 12 Jul 2006 13:40
by MrExNice1979
I tested all the options, I can achieve the streams now on the client, but only when streaming with a vlc command.
d- modus doesn't work for me. Only the first stream is to achieve.
vlm.conf with the same settings of the vlc command doesn't work.
It seem to work on the server side, I can control starting and stopping the movie on the http interface, but on the client side, I can't achieve the stream
Has anybody any idea, why?
Does vlm work for anybody?
Posted: 21 Aug 2006 09:05
by cheeseness
You could try putting an & at the end of the line. When working on the command line, this runs the command without tying up the terminal session.
So if I ran this from the command line, I'd still be able to use my prompt while VLC was running: