configuration file for vlc as a server

*nix specific usage questions
MrExNice1979
Blank Cone
Blank Cone
Posts: 46
Joined: 25 Apr 2006 14:11
Contact:

configuration file for vlc as a server

Postby MrExNice1979 » 13 Jun 2006 13:38

Hey, :lol:

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

yoann
Cone that earned his stripes
Cone that earned his stripes
Posts: 212
Joined: 04 Feb 2005 14:58
Location: Waltham, MA, USA
Contact:

Postby yoann » 13 Jun 2006 14:04

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.

MrExNice1979
Blank Cone
Blank Cone
Posts: 46
Joined: 25 Apr 2006 14:11
Contact:

Postby MrExNice1979 » 20 Jun 2006 09:03

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
:oops: 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?

yoann
Cone that earned his stripes
Cone that earned his stripes
Posts: 212
Joined: 04 Feb 2005 14:58
Location: Waltham, MA, USA
Contact:

Postby yoann » 20 Jun 2006 13:59

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
:oops: 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:

Code: Select all

vlc --vlm-conf vlm.conf --ttl 12
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.

MrExNice1979
Blank Cone
Blank Cone
Posts: 46
Joined: 25 Apr 2006 14:11
Contact:

Postby MrExNice1979 » 22 Jun 2006 08:47

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

Guest

Postby Guest » 26 Jun 2006 15:37

With password do I need to access the telnet?

yoann
Cone that earned his stripes
Cone that earned his stripes
Posts: 212
Joined: 04 Feb 2005 14:58
Location: Waltham, MA, USA
Contact:

Postby yoann » 26 Jun 2006 16:23

Do you mean "which password"?
If so, the default password is "admin".

MrExNice1979
Blank Cone
Blank Cone
Posts: 46
Joined: 25 Apr 2006 14:11
Contact:

Postby MrExNice1979 » 28 Jun 2006 10:26

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? )?

MrExNice1979
Blank Cone
Blank Cone
Posts: 46
Joined: 25 Apr 2006 14:11
Contact:

Postby MrExNice1979 » 28 Jun 2006 16:13

@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.

MrExNice1979
Blank Cone
Blank Cone
Posts: 46
Joined: 25 Apr 2006 14:11
Contact:

Postby MrExNice1979 » 12 Jul 2006 13:40

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?

cheeseness
Blank Cone
Blank Cone
Posts: 13
Joined: 29 Sep 2005 06:35
Location: Australia
Contact:

Postby cheeseness » 21 Aug 2006 09:05

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:

Code: Select all

vlc &
Josh Bush
=========
Fearless Leader
Valiant Systems


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 13 guests