Commit b53a39c3 authored by Cyril Deguet's avatar Cyril Deguet

- brand new default config files !

parent cd2b31a0
......@@ -2,7 +2,7 @@
# vls (VideoLAN Server) main Makefile
#-------------------------------------------------------------------------------
# (c)1999-2001 VideoLAN
# $Id: Makefile,v 1.85 2002/03/21 14:09:19 bozo Exp $
# $Id: Makefile,v 1.86 2002/03/21 15:20:54 asmax Exp $
################################################################################
......@@ -154,11 +154,13 @@ ifneq (,$(PLUGINS))
endif
mkdir -p $(DESTDIR)$(sysconfdir)/videolan/vls
test -r $(DESTDIR)$(sysconfdir)/videolan/vls/vls.cfg || $(INSTALL) -m 644 vls.cfg $(DESTDIR)$(sysconfdir)/videolan/vls
test -r $(DESTDIR)$(sysconfdir)/videolan/vls/input.cfg || $(INSTALL) -m 644 input.cfg $(DESTDIR)$(sysconfdir)/videolan/vls
@echo "Installation succeeded."
uninstall:
rm -f $(DESTDIR)$(bindir)/vls
rm -f $(DESTDIR)$(libdir)/videolan/vls/*.so
rm -f $(DESTDIR)$(sysconfdir)/videolan/vls/*.cfg
dep: Makefile.opts $(DEP)
......
......@@ -6,7 +6,7 @@
<author>written by Cyril Deguet <htmlurl url="mailto:asmax@via.ecp.fr" name=
"&lt;asmax@via.ecp.fr&gt;">
<date>
$Id: vls-guide.sgml,v 1.3 2002/03/21 02:45:08 asmax Exp $
$Id: vls-guide.sgml,v 1.4 2002/03/21 15:20:54 asmax Exp $
</date>
<abstract>
This document describes how to install, configure, and run the VideoLAN Server
......@@ -280,6 +280,7 @@ any command (it can be configured in <tt/vls.cfg/).
</sect>
<sect>Configuration
<label id="config">
<p>
The VideoLAN Server reads its configuration from <tt/vls.cfg/, which is
supposed to be located in the current directory or in
......@@ -656,7 +657,7 @@ END
"number" is the program number: the first program has number 1, the second
number 2, and so on. "name" is the program name, by which you will tell vls
to start this program (see next chapter "Running vls"). "type" can be
"Mpeg1-PS", "Mpeg1-TS", "Mpeg2-PS", "Mpeg2-TS", or "Dvd". If your stream
"Mpeg1-PS", "Mpeg2-PS", "Mpeg2-TS", or "Dvd". If your stream
is stored in a MPEG file (*.mpeg, *.mpg, *.vob, and so on...), it is
probably in Mpeg1-PS or Mpeg2-PS format. If Type is set to "Mpeg1-PS",
"Mpeg1-TS", "Mpeg2-PS", or "Mpeg2-TS", vls will assume your stream is
......@@ -714,6 +715,11 @@ END
<sect1>Launching vls
<p>
Running vls is very easy: just type "vls" in a shell console, and that's all.
Remember that vls will try to load its configuration file (<tt/vls.cfg/) from
the current directory, and if there is no <tt/vls.cfg/ there, it will try
to load it from <tt>SYSCONF_DIR/etc/videolan</tt> (see section
<ref id="config" name="Configuration">).
Be careful: if your log file is "vls.log" as in the example, vls will need
write access in the current directory , or you will see something like:
<tscreen><verb>
......
......@@ -2,20 +2,40 @@
# Main settings
BEGIN "Input"
FilesPath = "/path/to/files"
ProgramCount = "2"
FilesPath = "/home/videolan/streams"
ProgramCount = "4" # number of programs
END
# Program-specific settings
BEGIN "1"
Name = "Dolby_AC3Test.vob"
FileName = "Dolby/Dolby_AC3Test.vob"
Type = "Mpeg2-PS" # Mpeg1-PS / Mpeg2-PS / Mpeg2-TS
# --- Format:
# BEGIN "program_number"
# Name = "program_name"
# Type = "type" # can be Mpeg1-PS, Mpeg2-PS, Mpeg2-TS, or Dvd
# FileName = "path" # use this variable if Type is not "Dvd"
# Device = "device" # use this variable with type "Dvd"
# END
# --- Example:
BEGIN "1" # MPEG2 stream stored in /home/videolan/streams/Dolby.vob
Name = "dolby"
FileName = "Dolby.vob"
Type = "Mpeg2-PS"
END
BEGIN "2" # another file
Name = "canyon"
FileName = "Dolby_Canyon.vob"
Type = "Mpeg2-PS"
END
BEGIN "3" # Dvd
Name = "film"
Device = "/dev/cdrom"
Type = "Dvd"
END
BEGIN "2"
Name = "Dvd"
Device = "/dev/dvd"
Type = "Dvd"
BEGIN "4" # Dvd stored on a hard disk
Name = "matrix"
Device = "/mnt/data/matrix/VIDEO_TS"
Type = "Dvd"
END
......@@ -8,80 +8,65 @@ END
# Security informations :
#
# The section "Groups" describes which group is allowed to use which command.
# Format : groupname = "cmd1|cmd2|..."
# At the moment the commands are :
# - help
# - browse
# - start
# - resume
# - suspend
# - stop
# - shutdown
# - logout
# Each user who belongs to the 'master" group has all the power on the server.
# Each one who belongs to the "monitor" group is a "read-only" user.
BEGIN "Groups"
# --- Format:
# groupname = "cmd1|cmd2|..."
# --- Example:
monitor = "help|browse|logout"
master = "help|browse|start|resume|suspend|stop|shutdown|logout"
END
# The section "Users" describes each user
# Format : username = "encryptedpassword:group"
# Use "mkpasswd" to generate the encrypted password.
BEGIN "Users"
# --- Format:
# username = "encryptedpassword:group"
# --- Example:
# monitor = "3BcKWoiQn0vi6:monitor" # password is 'monitor'
# bozo = "JKg2TpPerilnw:master" # password is 'bozo'
monitor = "3BcKWoiQn0vi6:monitor" # password is 'monitor'
bozo = "JKg2TpPerilnw:master" # password is 'bozo'
END
# Telnet Administration
BEGIN "Telnet"
# Domain = "Inet6" # Inet4 or Inet6
# Domain = "Inet6" # Inet4 or Inet6
LocalPort = "9999" # Port to use for that purpose
END
# Native Administration
BEGIN "NativeAdmin"
# Domain = "Inet6" # Inet4 or Inet6
LocalPort = "9998" # Port to use for that purpose
END
# Native Administration (not used yet)
#BEGIN "NativeAdmin"
# Domain = "Inet6" # Inet4 or Inet6
# LocalPort = "9998" # Port to use for that purpose
#END
# Streams sources declaration
BEGIN "Inputs"
# --- Format:
# InputName = "Type"
# --- Example:
# local1 = "local"
# --- Video input example
# kfir = "video"
# --- DVB input example
# dvb = "dvb"
END
# Channel declaration
BEGIN "Channels"
# --- Format:
# ChannelName = "Type"
# --- Example:
localhost = "network"
# localfile = "file"
local1 = "local" # Local input example
# kfir = "video" # Video input example (mpeg encoder)
# dvb = "dvb" # Video input example (DVB card)
END
# Inputs configuration
BEGIN "local1"
# --- Format:
# ConfigPath = "/path"
# --- Example:
# ConfigPath = "/path" # where to find the "path/input.cfg"
#config config file
ConfigPath = "/usr/local/etc/videolan/vls" # The configuration file is
# /usr/local/videolan/vls/input.cfg
END
# Video input configuration
BEGIN "kfir"
# --- Example:
# Device = "/dev/video" # Video4linux device (default is "/dev/video")
# Type = "Mpeg2-PS" # Stream type (default is "Mpeg2-PS")
# Device = "/dev/video" # Video4linux device (default is "/dev/video")
# Type = "Mpeg2-PS" # Stream type (default is "Mpeg2-PS")
END
# Video input configuration
# Video input (DVB) configuration
BEGIN "dvb"
# --- Example:
# DeviceNumber = ""
......@@ -96,23 +81,43 @@ BEGIN "dvb"
# LnbSLof = "11700000"
END
# Channel (outputs) declaration
BEGIN "Channels"
# --- Format:
# ChannelName = "Type"
# --- Example:
localhost = "network"
# client1 = "network"
# client2 = "network"
# multicast = "network"
# localfile = "file"
END
# Channels configuration
BEGIN "localhost" # type == "network"
# Domain = "Inet6" # Inet4 or Inet6
# Type = "multicast" # unicast or multicast or broadcast
# SrcHost = "localhost"
# SrcPort = "4321"
DstHost = "localhost"
DstPort = "1234"
# Interface = "lo" # Only supported under Linux to force
# # the interface through which the
# # stream will be broadcasted
# TTL = "12"
BEGIN "localhost" # The client is on the same host as the server
DstHost = "localhost"
DstPort = "1234"
END
#BEGIN "localfile" # type == "file"
# FileName = "localfile.ts" # File name of the output
# Append = "no" # Keep the beginning of the file
#BEGIN "client1" # unicast example
# DstHost = "192.168.1.2" # destination host
# DstPort = "1234" # destination port
#END
#BEGIN "client2" # unicast with IPv6 example
# Domain = "inet6"
# DstHost = "3ffe:ffff::2:12:42" # destination host
# DstPort = "1234" # destination port
#END
#BEGIN "multicast" # multicast example
# Type = "multicast"
# DstHost = "239.2.12.42" # multicast address
# DstPort = "1234" # destination port
#END
#BEGIN "localfile" # file output example
# FileName = "stream.ts"
# Append = "no" # rewrite the file if it exists
#END
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment