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

3 4 5 6 7 8
# application wide settings
begin "global"
  logfile       = "vls.log"             # log file
  screenlog     = "enable"              # log to the console
  systemlog     = "enable"             # log to the systemlog
end
Benoit Steiner's avatar
Benoit Steiner committed
9

10
# security informations :
11
#
12 13 14 15 16
# 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"
# --- format: 
17
# groupname     = "cmd1|cmd2|..."
18
# --- example:
19
  monitor       = "help|browse|logout"
20
  master        = "cd|ls|help|browse|start|broadcast_resume|broadcast_suspend|broadcast_stop|shutdown|logout|config|program|input|channel|show|broadcast_ls|broadcast_add|broadcast_del|channel_add|broadcast_start|channel_add|channel_del"
21
end
22

23 24 25 26
# the section "users" describes each user
# use "mkpasswd" to generate the encrypted password.
begin "users"
# --- format: 
27
# username      = "encryptedpassword:group"
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
# --- example:
  monitor       = "3bckwoiqn0vi6:monitor"       # password is 'monitor'
  bozo          = "jkg2tpperilnw:master"        # password is 'bozo'
end

begin "interfaces"
# domain        = "inet6"               # inet4 or inet6
  telnet        = "telnet"              # port to use for that purpose
end


# telnet administration
begin "telnet"
# domain        = "inet6"               # inet4 or inet6
  localport     = "9999"                # port to use for that purpose
  use = "true"
end

# streams sources declaration
begin "inputs"
# --- format:
# inputname     = "type"
# --- example:
#  local1       = "local"               # local input example
#  kfir         = "video"               # video input example (mpeg encoder)
Tristan Leteurtre's avatar
Tristan Leteurtre committed
53 54
#  pvr          = "video"               # video input example (mpeg encoder)
#  dvb          = "dvb"                 # dvb input example (dvb card)
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
#  webcam       = "v4l"                 # video for linux example (webcam)
#  tuner        = "v4l"                 # video for linux example (composite)
end

begin "input"
  programcount = "1"
  trickplay = "normal"
end

# --- 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 = "/media/films/dolby_canyon.vob"
#  type     = "mpeg2-ps"
#end

#begin "2"     # another file
#  name     = "canyon"
#  filename = "dolby_canyon.vob"
#  type     = "mpeg2-ps"
#end
Tristan Leteurtre's avatar
Tristan Leteurtre committed
84
#
85 86
#begin "3"     # dvd
#  name       = "film"
Loïc Minier's avatar
Loïc Minier committed
87
#  device     = "/dev/cdrom" # probably /dev/rdisk1 under MacOSX
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
#  type       = "dvd"
#  dvdtitle   = "1"   # start title
#  dvdchapter = "1"   # start chapter
#end

#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
#end

# video input configuration
begin "kfir"
# --- example:
Tristan Leteurtre's avatar
Tristan Leteurtre committed
104 105
# cardtype      = "kfir"           # kfir (BMK mpeg boards) or
                                   # pvr (Hauppauge PVR)
106 107 108 109
# device        = "/dev/video"     # video4linux device (default is /dev/video)
# type          = "mpeg2-ps"       # stream type (default is "mpeg2-ps")
end

Tristan Leteurtre's avatar
Tristan Leteurtre committed
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
# video input configuration
begin "pvr"
# --- example:
# cardtype      = "pvr"          # kfir (BMK mpeg boards) or
                                 # pvr (Hauppauge PVR)
# device        = "/dev/video"   # video4linux device (default is /dev/video)
# type          = "mpeg2-ps"     # stream type (default is "mpeg2-ps")
# norm          = "pal"          # pal, secam, ntsc
# framerate     = "25"           # 25 (pal,secam) or 30 (ntsc)
# frequency     = ""
# size          = ""             # size possibilities 
                                 # - empty string : default size
                                 # - width x height
                                 # - subqcif(128x96), qsif(160x120),
                                 #   qcif(176x144), sif(320x240),
                                 #   cif(352x288), vga (640x480)
# bitrate       = "3000"         # in kbps
# maxbitrate    = "4000"         # in kbps
128
# bitratemode   = "cbr"          # cbr (Constant Bitrate)
Tristan Leteurtre's avatar
Tristan Leteurtre committed
129
                                 # or vbr (Variable Bitrate)
130 131
#inputnumber    = "0"            # 0 (Composite on S-video plug),
                                 # 4 (Tuner) or 6 (S-video)
Tristan Leteurtre's avatar
Tristan Leteurtre committed
132 133 134
end

# dvb input (dvb) configuration
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
begin "dvb"
# --- example:
#  devicenumber = "0"                   # /dev/dvb/adapter<i>
#  sendmethod   = "0"                   # 0 - send all pids
                                        # 1 - send only mpeg2 datas 
end

# video for linux (v4l) configuration
begin "webcam"
# --- example:
device        = "/dev/video"     # video4linux device (default is /dev/video)
channel       = "0"              # channel source: webcam often 0
                                 # for tv card, may be tuner(0), composite(1),
                                 # svideo(2)
norm          = "0"              # pal=0, ntsc=1, secam=2
150
size          = ""               # size possibilities
Tristan Leteurtre's avatar
Tristan Leteurtre committed
151 152 153

                                 # - empty string : default size
                                 # - width x height
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
                                 # - subqcif(128x96), qsif(160x120),
                                 #   qcif(176x144), sif(320x240),
                                 #   cif(352x288), vga (640x480)
deinterlace   = "0"
compression   = "mpeg4"	         # mpeg1 or mpeg4 [experimental]
bitrate       = "500"            # bitrate (approx.) in kbps
quality       = "1.0"            # 1.0 (good) to 31.0 (bad)

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
audiomute     = "false"
end

# video for linux (v4l) configuration
begin "tuner"
# --- example:
device        = "/dev/video"     # video4linux device (default is /dev/video)
channel       = "0"              # channel source: webcam often 0
                                 # for tv card, may be tuner(0), composite(1),
                                 # svideo(2)
# frequency     = "7668"           # frequency (mhz) * 16
norm          = "0"              # pal=0, ntsc=1, secam=2
size          = ""               # size possibilities 
Tristan Leteurtre's avatar
Tristan Leteurtre committed
180 181 182

                                 # - empty string : default size
                                 # - width x height
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
                                 # - subqcif(128x96), qsif(160x120),
                                 #   qcif(176x144), sif(320x240),
                                 #   cif(352x288), vga (640x480)
deinterlace   = "0"
compression   = "mpeg4"	         # mpeg1 or mpeg4 [experimental]
bitrate       = "500"            # bitrate (approx.) in kbps
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
audiobitrate  = "64"             # audio bitrate in kbps
audiofreq     = "16000"          # 16000, 22050, 24000, 32000, 44100, 48000
audiochannel  = "2"              # 1=mono, 2=stereo
audiomute     = "false"
end

# channel (outputs) declaration
begin "channels"
# --- format:
# channelname   = "type"
# --- example:
204 205
  localhost     = "network"
#  client1       = "network"
206
#  client2       = "network"
207 208
#  multicast1    = "network"
#  multicast2    = "network"
209
#  localfile     = "file"
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
end

# channels configuration
begin "localhost"         # the client is on the same host as the server
  dsthost = "127.0.0.1"
  dstport = "1234"
end

#begin "client1"                          # unicast example
#  dsthost = "192.168.1.2"                # destination ip address
#  dstport = "1234"                       # destination port
#end

#begin "client2"                          # unicast ipv6 example
#  domain  = "inet6"
#  dsthost = "3ffe:ffff::2:12:42"         # destination ipv6 address
#  dstport = "1234"                       # destination port
#end

#begin "multicast1"                       # multicast example
230
#  streamtype = "multicast"
231 232 233 234
#  ttl        = "1"                       # time to live
#  dsthost    = "239.2.12.42"             # multicast address
#  dstport    = "1234"                    # destination port
#end
235

236 237
#begin "multicast2"                       # multicast ipv6 example
#  domain     = "inet6"
238
#  streamtype = "multicast"
239 240 241 242
#  ttl        = "1"                       # time to live
#  dsthost    = "ff08::2"                 # multicast ipv6 address
#  dstport    = "1234"                    # destination port
#end
243

244 245 246 247
#begin "localfile"                        # file output example
#  filename = "stream.ts"
#  append   = "no"                        # rewrite the file if it exists
#end
248

249

250 251 252
# commands automatically lanched on startup
# commands shall be like they would be typed in a telnet console.
begin "launchonstartup"
253
#  command1 = "start dolby localhost local1 --loop"
254
#  command2 = "start 28009 client1 dvb"
Tristan Leteurtre's avatar
Tristan Leteurtre committed
255
#  command3 = "start video localhost webcam"
Tristan Leteurtre's avatar
Tristan Leteurtre committed
256
#  command4 = "start video localhost pvr"
257
end