vls.cfg 5.44 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 7
  ScreenLog     = "enable"              # log to the console
  SystemLog     = "disable"             # log to the systemlog
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
  Use           = "true"
36
#  Domain        = "Inet6"              # Inet4 or Inet6
37 38 39
  LocalPort     = "9999"                # Port to use for that purpose
END

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

50 51 52
# Video input configuration
BEGIN "kfir"
# --- Example:
53 54
# 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
55
END
56

57 58 59


# Video input (DVB-S) configuration
60 61
BEGIN "dvb"
# --- Example:
62 63
#  DvbType      = "sat"                 # sat, cable or ter
#  DeviceType   = "nova"                # nova for 'lowbudget cards' dvb-s for others
64
#  DeviceNumber	= "0"			# /dev/ost/dvr<i>
65

66
#  Frequency	= "12553000"		# Frequency in kHz of the transponder
67
#  Polarization	= "0"			# 0(V) or 1(H)
68
#  SymbolRate	= "27500000"		# Symbol rate
69

70 71 72 73
#  DiSEqC	= "0"			# DiSEqC address of the used LNB
#  LNB_Lof1	= "9750000"		# Local frequency of lower LNB band
#  LNB_Lof2	= "10600000"		# Local frequency of upper LNB band
#  LNB_SLof	= "11700000"		# Switch frequency of LNB
74 75 76
#  FecInner     = "AUTO"
#  SendMethod   = "0"                   # 0/1 - Send (All/only MPEG2) Pids
END
77

78 79 80 81 82 83 84 85 86 87
# Video input (DVB-C) configuration
BEGIN "dvb"
# --- Example:
#  DvbType      = "cable"

#  DeviceNumber	= "2"			# /dev/ost/dvr<i>
#  Frequency	= "12553000"		# Frequency in kHz of the transponder
#  FecInner     = "AUTO"
#  Modulation   = "QPSK"                # QAM_8, QAM_16, ...
#  SendMethod   = "0"                   # 0/1 - Send (All/only MPEG2) Pids
88 89
END

90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
# Video input (DVB-T) configuration
BEGIN "dvb"
# --- Example:
#  DvbType      = "ter"

#  DeviceNumber	 = "3"			# /dev/ost/dvr<i>
#  Frequency	 = "12553000"		# Frequency in kHz of the transponder
#  CodeRateHP    = "AUTO"
#  CodeRateLP    = "AUTO"
#  TransmitMode  = "2"                   # in K
#  BandWidth     = "6"                   # in MHz
#  Hierarchy     = "0"
#  GuardInterval = "1/32"   
#  Modulation    = "QPSK"                # QAM_8, QAM_16, ...
#  SendMethod    = "0"                   # 0/1 - Send (All/only MPEG2) Pids
END


108 109 110 111 112
# Channel (outputs) declaration
BEGIN "Channels"
# --- Format:
# ChannelName   = "Type"
# --- Example:
113
  multi3         = "network"
114 115 116 117 118 119
#  client1       = "network"
#  client2       = "network"
#  multicast     = "network"  
#  localfile     = "file"
END

120
# Channels configuration
121
BEGIN "localhost"         # The client is on the same host as the server
122
  DstHost = "127.0.0.1"
123
  DstPort = "1234"
124 125
END

126 127 128 129 130 131 132 133 134
#BEGIN "client1"                          # unicast example
#  DstHost = "192.168.1.2"                # destination host
#  DstPort = "1234"                       # destination port
#END

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

137 138 139 140 141 142
BEGIN "multi3"                        # multicast example
  Type    = "multicast"
  TTL     = "1"			  # Time To Live
  DstHost = "239.255.12.3"                # multicast address
  DstPort = "1234"                       # destination port
END
143 144 145 146 147

#BEGIN "localfile"                        # file output example
#  FileName = "stream.ts"
#  Append   = "no"                        # rewrite the file if it exists
#END
148

149 150 151
# Commands automatically lanched on Startup
# Commands shall be like they would be typed in a telnet console.
BEGIN "LaunchOnStartUp"
152 153 154 155 156 157 158
    command1 = "start stream1 multi3 local1 --loop"
END


# Main settings
BEGIN "Input"
  ProgramCount = "3"                     # number of programs
159
END
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187

# --- 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 /mnt/video/stream1.ts
  Name     = "stream1"
  FileName = "/mnt/video/stream1.ts"
  Type     = "Mpeg2-TS"
END

BEGIN "2"     # Dvd
  Name     = "film"
  Device   = "/dev/dvd"
  Type     = "Dvd"
END

BEGIN "3"     # Dvd stored on a hard disk
  Name     = "matrix"
  Device   = "/mnt/video/matrix/video_ts"
  Type     = "Dvd"
END