vls.cfg 7.88 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
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 53 54 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
# --- 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)
#  dvb          = "dvb"                 # video input example (dvb card)
#  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
83
#
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
#begin "3"     # dvd
#  name       = "film"
#  device     = "/dev/cdrom"
#  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:
# device        = "/dev/video"     # video4linux device (default is /dev/video)
# type          = "mpeg2-ps"       # stream type (default is "mpeg2-ps")
end

# video input (dvb) configuration
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
size          = ""               # size possibilities 
124 125 126

                                 # - empty string : default size
                                 # - width x height
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
                                 # - 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 
153 154 155

                                 # - empty string : default size
                                 # - width x height
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
                                 # - 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:
177 178
  localhost     = "network"
#  client1       = "network"
179
#  client2       = "network"
180 181
#  multicast1    = "network"
#  multicast2    = "network"
182
#  localfile     = "file"
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
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
203
#  streamtype = "multicast"
204 205 206 207
#  ttl        = "1"                       # time to live
#  dsthost    = "239.2.12.42"             # multicast address
#  dstport    = "1234"                    # destination port
#end
208

209 210
#begin "multicast2"                       # multicast ipv6 example
#  domain     = "inet6"
211
#  streamtype = "multicast"
212 213 214 215
#  ttl        = "1"                       # time to live
#  dsthost    = "ff08::2"                 # multicast ipv6 address
#  dstport    = "1234"                    # destination port
#end
216

217 218 219 220
#begin "localfile"                        # file output example
#  filename = "stream.ts"
#  append   = "no"                        # rewrite the file if it exists
#end
221

222

223 224 225
# commands automatically lanched on startup
# commands shall be like they would be typed in a telnet console.
begin "launchonstartup"
226
#  command1 = "start dolby localhost local1 --loop"
227
#  command2 = "start 28009 client1 dvb"
228
#  command3 = "start video localhost webcam"
229
end