vls.cfg 4.25 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

33
# Telnet Administration
34
BEGIN "Telnet"
35
#  Domain        = "Inet6"              # Inet4 or Inet6
36 37 38
  LocalPort     = "9999"                # Port to use for that purpose
END

Michel Kaempf's avatar
Michel Kaempf committed
39
# Streams sources declaration
40
BEGIN "Inputs"
41
# --- Format:
42
# InputName     = "Type"
43
# --- Example:
44 45 46 47 48
  local1       = "local"                # Local input example
#  kfir         = "video"               # Video input example (mpeg encoder)
#  dvb          = "dvb"                 # Video input example (DVB card)
END

49 50 51 52
BEGIN "Input"
  ProgramCount = "4"
END

53
# --- Format:
54 55 56 57 58 59 60
# 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

61
# --- Example:
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
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

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"
Michel Kaempf's avatar
Michel Kaempf committed
84 85
END

86 87 88
# Video input configuration
BEGIN "kfir"
# --- Example:
89 90
# 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
91
END
Benoit Steiner's avatar
Benoit Steiner committed
92

93 94 95
# Video input (DVB) configuration
BEGIN "dvb"
# --- Example:
96
#  DeviceNumber = "0"                   # /dev/dvb/adapter<i>
97 98
#  SendMethod   = "0"                   # 0 - Send All Pids
                                        # 1 - Send only MPEG2 datas 
Damien Lucas's avatar
Damien Lucas committed
99 100
END

101 102 103 104 105
# Channel (outputs) declaration
BEGIN "Channels"
# --- Format:
# ChannelName   = "Type"
# --- Example:
106 107
  localhost     = "network"
#  client1       = "network"
108
#  client2       = "network"
109 110
#  multicast     = "network"
#  localfile     = "file"
111 112
END

113
# Channels configuration
114
BEGIN "localhost"         # The client is on the same host as the server
115
  DstHost = "127.0.0.1"
116
  DstPort = "1234"
117 118
END

119 120 121 122
#BEGIN "client1"                          # unicast example
#  DstHost = "192.168.1.2"                # destination host
#  DstPort = "1234"                       # destination port
#END
123 124 125 126 127

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

130 131 132 133 134 135
#BEGIN "multicast"                        # multicast example
#  Type    = "multicast"
#  TTL     = "1"                          # Time To Live
#  DstHost = "239.2.12.42"                # multicast address
#  DstPort = "1234"                       # destination port
#END
136

137 138 139 140
#BEGIN "localfile"                        # file output example
#  FileName = "stream.ts"
#  Append   = "no"                        # rewrite the file if it exists
#END
141

142 143 144
# Commands automatically lanched on Startup
# Commands shall be like they would be typed in a telnet console.
BEGIN "LaunchOnStartUp"
145
#  command1 = "start dolby localhost local1 --loop"
146
#  command2 = "start 28009 client1 dvb"
Damien Lucas's avatar
Damien Lucas committed
147
END