vls.cfg 6.59 KB
Newer Older
1
# vls configuration file (Example)
Michel Kaempf's avatar
Michel Kaempf committed
2

Benoit Steiner's avatar
Benoit Steiner committed
3
# Application wide settings
4 5
BEGIN "Vls"
  LogFile       = "vls.log"             # log file
6 7
  ScreenLog     = "enable"              # log to the console
  SystemLog     = "disable"             # log to the systemlog
Benoit Steiner's avatar
Benoit Steiner committed
8 9
END 

10 11 12 13 14 15
# Security informations :
#
# The section "Groups" describes which group is allowed to use which command.
# 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"
16 17 18
# --- Format: 
# groupname     = "cmd1|cmd2|..."
# --- Example:
19
  monitor       = "help|browse|logout"
20
  master        = "help|browse|start|resume|suspend|stop|shutdown|logout|config|program|input|channel|show"
21 22 23 24 25
END

# The section "Users" describes each user
# Use "mkpasswd" to generate the encrypted password.
BEGIN "Users"
26 27
# --- Format: 
# username      = "encryptedpassword:group"
28
# --- Example:
29 30
  monitor       = "3BcKWoiQn0vi6:monitor"       # password is 'monitor'
  bozo          = "JKg2TpPerilnw:master"        # password is 'bozo'
31 32
END

Tristan Leteurtre's avatar
Tristan Leteurtre committed
33 34 35 36 37 38
BEGIN "Interfaces"
#  Domain        = "Inet6"              # Inet4 or Inet6
  Telnet	= "telnet"                # Port to use for that purpose
END


39
# Telnet Administration
40
BEGIN "Telnet"
41
#  Domain        = "Inet6"              # Inet4 or Inet6
42
  LocalPort     = "9999"                # Port to use for that purpose
43
  Use = "true"
44 45
END

Michel Kaempf's avatar
Michel Kaempf committed
46
# Streams sources declaration
47
BEGIN "Inputs"
48
# --- Format:
49
# InputName     = "Type"
50
# --- Example:
51
#  local1       = "local"               # Local input example
52 53
#  kfir         = "video"               # Video input example (mpeg encoder)
#  dvb          = "dvb"                 # Video input example (DVB card)
Tristan Leteurtre's avatar
Tristan Leteurtre committed
54
#  webcam       = "v4l"			# Video For Linux example (webcam)
55
#  tuner	= "v4l"			# Video For Linux example (composite)
56 57
END

58 59 60 61
BEGIN "Input"
  ProgramCount = "4"
END

62
# --- Format:
63 64 65 66 67 68 69
# 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

70
# --- Example:
Tristan Leteurtre's avatar
Tristan Leteurtre committed
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
#BEGIN "1"     # MPEG2 stream stored in /home/videolan/streams/Dolby.vob
#  Name     = "dolby"
#  FileName = "/media/films/Dolby_Canyon.vob"
#  Type     = "Mpeg2-PS"
#END

#BEGIN "2"     # another file
#  Name     = "canyon"
#  FileName = "Dolby_Canyon.vob"
#  Type     = "Mpeg2-PS"
#E##ND
#
#BEGIN "3"     # Dvd
#  Name     = "film"
#  Device   = "/dev/cdrom"
#  Type     = "Dvd"
#END

#BEGIN "4"     # Dvd stored on a hard disk
#  Name     = "matrix"
#  Device   = "/mnt/data/matrix/VIDEO_TS"
#  Type     = "Dvd"
#END
Michel Kaempf's avatar
Michel Kaempf committed
94

95 96 97
# Video input configuration
BEGIN "kfir"
# --- Example:
98 99
# Device        = "/dev/video"     # Video4linux device (default is /dev/video)
# Type          = "Mpeg2-PS"       # Stream type (default is "Mpeg2-PS")
Michel Kaempf's avatar
Michel Kaempf committed
100
END
Benoit Steiner's avatar
Benoit Steiner committed
101

102 103 104
# Video input (DVB) configuration
BEGIN "dvb"
# --- Example:
105
#  DeviceNumber = "0"                   # /dev/dvb/adapter<i>
106 107
#  SendMethod   = "0"                   # 0 - Send All Pids
                                        # 1 - Send only MPEG2 datas 
Damien Lucas's avatar
Damien Lucas committed
108 109
END

Tristan Leteurtre's avatar
Tristan Leteurtre committed
110 111 112
# Video For Linux (V4L) configuration
BEGIN "webcam"
# --- Example:
113 114 115
Device        = "/dev/video"     # Video4linux device (default is /dev/video)
AudioDevice   = "/dev/dsp"       # Sound device (try /dev/dsp<X>
                                 # or /dev/audio<X>)
Tristan Leteurtre's avatar
Tristan Leteurtre committed
116

Tristan Leteurtre's avatar
Tristan Leteurtre committed
117
Channel       = "0"              # Channel Source: Webcam often 0
118 119 120
                                 # For TV Card, may be Tuner(0), Composite(1),
                                 # Svideo(2)
Norm          = "0"              # PAL=0, NTSC=1, SECAM=2
Tristan Leteurtre's avatar
Tristan Leteurtre committed
121

Tristan Leteurtre's avatar
Tristan Leteurtre committed
122
Size          = ""       # Size possibilities 
Tristan Leteurtre's avatar
Tristan Leteurtre committed
123 124 125 126 127

                                 # - empty string : default size
                                 # - width x height
                                 # - subQCIF(128x96), QSIF(160x120), QCIF(176x144)
                                 #   SIF(320x240), CIF (352x288), VGA (640x480)
Tristan Leteurtre's avatar
Tristan Leteurtre committed
128 129 130
#Size	     = "sif"
 
Bitrate       = "500"            # Bitrate (approx.) in kbps
131
AudioBitrate  = "64"             # Audio bitrate in kbps
132

Tristan Leteurtre's avatar
Tristan Leteurtre committed
133 134 135
END

# Video For Linux (V4L) configuration
136
BEGIN "tuner"
Tristan Leteurtre's avatar
Tristan Leteurtre committed
137
# --- Example:
Tristan Leteurtre's avatar
Tristan Leteurtre committed
138
Device        = "/dev/video"     # Video4linux device (default is /dev/video)
139 140
AudioDevice   = "/dev/dsp"       # Sound device (try /dev/dsp<X>
                                 # or /dev/audio<X>)
Tristan Leteurtre's avatar
Tristan Leteurtre committed
141

Tristan Leteurtre's avatar
Tristan Leteurtre committed
142
Channel       = "0"              # Channel Source: Webcam often 0
143 144 145
                                 # For TV Card, may be Tuner(0), Composite(1),
                                 # Svideo(2)
Norm          = "0"              # PAL=0, NTSC=1, SECAM=2
146
# Frequency     = "7668"           # Frequency (Mhz) * 16
Tristan Leteurtre's avatar
Tristan Leteurtre committed
147

Tristan Leteurtre's avatar
Tristan Leteurtre committed
148
Size          = "subQCIF"            # Size possibilities 
Tristan Leteurtre's avatar
Tristan Leteurtre committed
149 150 151 152 153
                                 # - empty string : default size
                                 # - width x height
                                 # - subQCIF(128x96), QSIF(160x120), QCIF(176x144)
                                 #   SIF(320x240), CIF (352x288), VGA (640x480) 
#Size	     = "320x200"  
Tristan Leteurtre's avatar
Tristan Leteurtre committed
154 155

Bitrate       = "500"            # Bitrate (approx.) in kbps
156
AudioBitrate  = "64"             # Audio bitrate in kbps
Tristan Leteurtre's avatar
Tristan Leteurtre committed
157 158
END

159 160 161 162 163
# Channel (outputs) declaration
BEGIN "Channels"
# --- Format:
# ChannelName   = "Type"
# --- Example:
164 165
  localhost     = "network"
#  client1       = "network"
166
#  client2       = "network"
167 168
#  multicast     = "network"
#  localfile     = "file"
169 170
END

171
# Channels configuration
172
BEGIN "localhost"         # The client is on the same host as the server
Tristan Leteurtre's avatar
Tristan Leteurtre committed
173
  DstHost = "127.0.0.1"
174
  DstPort = "1234"
175 176
END

177 178 179 180
#BEGIN "client1"                          # unicast example
#  DstHost = "192.168.1.2"                # destination host
#  DstPort = "1234"                       # destination port
#END
181 182 183 184 185

#BEGIN "client2"                          # unicast with IPv6 example
#  Domain  = "inet6"
#  DstHost = "3ffe:ffff::2:12:42"         # destination host
#  DstPort = "1234"                       # destination port
186
#END
187

188 189 190 191 192 193
#BEGIN "multicast"                        # multicast example
#  Type    = "multicast"
#  TTL     = "1"                          # Time To Live
#  DstHost = "239.2.12.42"                # multicast address
#  DstPort = "1234"                       # destination port
#END
194

195 196 197 198
#BEGIN "localfile"                        # file output example
#  FileName = "stream.ts"
#  Append   = "no"                        # rewrite the file if it exists
#END
199

200 201 202
# Commands automatically lanched on Startup
# Commands shall be like they would be typed in a telnet console.
BEGIN "LaunchOnStartUp"
203
#  command1 = "start dolby localhost local1 --loop"
204
#  command2 = "start 28009 client1 dvb"
Tristan Leteurtre's avatar
Tristan Leteurtre committed
205
#  command3 = "start video localhost webcam"
Damien Lucas's avatar
Damien Lucas committed
206
END