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

3
# Application wide settings
4
BEGIN "Global"
5
  LogFile       = "vls.log"             # log file
6
  ScreenLog     = "enable"              # log to the console
7
  SystemLog     = "enable"             # log to the systemlog
8
END
9

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

33
BEGIN "Interfaces"
34 35
# Domain        = "Inet6"               # Inet4 or Inet6
  Telnet        = "telnet"              # Port to use for that purpose
36 37 38
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)
54 55
#  webcam       = "v4l"                 # Video For Linux example (webcam)
#  tuner        = "v4l"                 # Video For Linux example (composite)
56 57
END

58
BEGIN "Input"
59 60
  ProgramCount = "1"
  TrickPlay = "normal"
61 62
END

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

71
# --- Example:
72 73 74 75 76 77 78 79 80 81
#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"
82
#END
83
#
84 85 86 87 88 89
#BEGIN "3"     # DVD
#  Name       = "film"
#  Device     = "/dev/cdrom"
#  Type       = "dvd"
#  DvdTitle   = "1"   # Start title
#  DvdChapter = "1"   # Start chapter
90 91
#END

92 93 94 95 96 97
#BEGIN "4"     # DVD stored on a hard disk
#  Name       = "matrix"
#  Device     = "/mnt/data/matrix/VIDEO_TS"
#  Type       = "dvd"
#  DvdTitle   = "1"   # Start title
#  DvdChapter = "1"   # Start chapter
98
#END
Michel Kaempf's avatar
Michel Kaempf committed
99

100 101 102
# Video input configuration
BEGIN "kfir"
# --- Example:
103 104
# 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
105
END
106

107 108 109
# Video input (DVB) configuration
BEGIN "dvb"
# --- Example:
110
#  DeviceNumber = "0"                   # /dev/dvb/adapter<i>
111 112
#  SendMethod   = "0"                   # 0 - Send All Pids
                                        # 1 - Send only MPEG2 datas 
113 114
END

115 116 117
# Video For Linux (V4L) configuration
BEGIN "webcam"
# --- Example:
118
Device        = "/dev/video"     # Video4linux device (default is /dev/video)
119
Channel       = "0"              # Channel Source: Webcam often 0
120 121 122
                                 # For TV Card, may be Tuner(0), Composite(1),
                                 # Svideo(2)
Norm          = "0"              # PAL=0, NTSC=1, SECAM=2
123
Size          = ""               # Size possibilities 
124 125 126

                                 # - empty string : default size
                                 # - width x height
127 128 129 130 131
                                 # - subQCIF(128x96), QSIF(160x120),
                                 #   QCIF(176x144), SIF(320x240),
                                 #   CIF(352x288), VGA (640x480)
DeInterlace   = "0"
Compression   = "mpeg4"	         # mpeg1 or mpeg4 [experimental]
132
Bitrate       = "500"            # Bitrate (approx.) in kbps
133
Quality       = "1.0"            # 1.0 (good) to 31.0 (bad)
134

135 136 137 138 139
AudioDevice   = "/dev/audio1"    # Sound device (try /dev/dsp<X>
AudioCompression = "mp2"         # mp2, mp3 or ogg
AudioBitrate  = "64"             # Audio bitrate in kbps
AudioFreq     = "16000"          # 16000, 22050, 24000, 32000, 44100, 48000
AudioChannel  = "2"              # 1=mono, 2=stereo
140 141 142
END

# Video For Linux (V4L) configuration
143
BEGIN "tuner"
144
# --- Example:
145
Device        = "/dev/video"     # Video4linux device (default is /dev/video)
146
Channel       = "0"              # Channel Source: Webcam often 0
147 148
                                 # For TV Card, may be Tuner(0), Composite(1),
                                 # Svideo(2)
149
# Frequency     = "7668"           # Frequency (Mhz) * 16
150 151
Norm          = "0"              # PAL=0, NTSC=1, SECAM=2
Size          = ""               # Size possibilities 
152 153 154

                                 # - empty string : default size
                                 # - width x height
155 156 157 158 159
                                 # - subQCIF(128x96), QSIF(160x120),
                                 #   QCIF(176x144), SIF(320x240),
                                 #   CIF(352x288), VGA (640x480)
DeInterlace   = "0"
Compression   = "mpeg4"	         # mpeg1 or mpeg4 [experimental]
160
Bitrate       = "500"            # Bitrate (approx.) in kbps
161 162 163 164
Quality       = "1.0"            # 1.0 (good) to 31.0 (bad)

AudioDevice   = "/dev/dsp"       # Sound device (try /dev/dsp<X>
AudioCompression = "mp2"         # mp2, mp3 or ogg
165
AudioBitrate  = "64"             # Audio bitrate in kbps
166 167
AudioFreq     = "16000"          # 16000, 22050, 24000, 32000, 44100, 48000
AudioChannel  = "2"              # 1=mono, 2=stereo
168 169
END

170 171 172 173 174
# Channel (outputs) declaration
BEGIN "Channels"
# --- Format:
# ChannelName   = "Type"
# --- Example:
175 176
  localhost     = "network"
#  client1       = "network"
177
#  client2       = "network"
178 179
#  multicast1    = "network"
#  multicast2    = "network"
180
#  localfile     = "file"
181 182
END

183
# Channels configuration
184
BEGIN "localhost"         # The client is on the same host as the server
185
  DstHost = "127.0.0.1"
186
  DstPort = "1234"
187 188
END

189
#BEGIN "client1"                          # unicast example
190
#  DstHost = "192.168.1.2"                # destination IP address
191 192
#  DstPort = "1234"                       # destination port
#END
193

194
#BEGIN "client2"                          # unicast IPv6 example
195
#  Domain  = "inet6"
196
#  DstHost = "3ffe:ffff::2:12:42"         # destination IPv6 address
197
#  DstPort = "1234"                       # destination port
198
#END
199

200
#BEGIN "multicast1"                       # multicast example
201 202 203 204 205
#  Type    = "multicast"
#  TTL     = "1"                          # Time To Live
#  DstHost = "239.2.12.42"                # multicast address
#  DstPort = "1234"                       # destination port
#END
206

207 208 209 210 211 212 213 214
#BEGIN "multicast2"                       # multicast IPv6 example
#  Domain  = "inet6"
#  Type    = "multicast"
#  TTL     = "1"                          # Time To Live
#  DstHost = "ff08::2"                    # multicast IPv6 address
#  DstPort = "1234"                       # destination port
#END

215 216 217 218
#BEGIN "localfile"                        # file output example
#  FileName = "stream.ts"
#  Append   = "no"                        # rewrite the file if it exists
#END
219

220

221 222 223
# Commands automatically lanched on Startup
# Commands shall be like they would be typed in a telnet console.
BEGIN "LaunchOnStartUp"
224
#  command1 = "start dolby localhost local1 --loop"
225
#  command2 = "start 28009 client1 dvb"
226
#  command3 = "start video localhost webcam"
227
END