vls.cfg 4.58 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
  LocalPort     = "9999"                # Port to use for that purpose
37
  Use = "true"
38 39
END

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

51 52 53 54
BEGIN "Input"
  ProgramCount = "4"
END

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

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

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

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

Tristan Leteurtre's avatar
Tristan Leteurtre committed
103 104 105 106 107 108 109
# Video For Linux (V4L) configuration
BEGIN "webcam"
# --- Example:
Device        = "/dev/video"     # Video4linux device (default is /dev/video)
# Type          = "Mpeg2-PS"       # Stream type (default is "Mpeg2-PS")
END

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

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

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

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

139 140 141 142 143 144
#BEGIN "multicast"                        # multicast example
#  Type    = "multicast"
#  TTL     = "1"                          # Time To Live
#  DstHost = "239.2.12.42"                # multicast address
#  DstPort = "1234"                       # destination port
#END
145

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

151 152 153
# Commands automatically lanched on Startup
# Commands shall be like they would be typed in a telnet console.
BEGIN "LaunchOnStartUp"
154
#  command1 = "start dolby localhost local1 --loop"
155
#  command2 = "start 28009 client1 dvb"
Tristan Leteurtre's avatar
Tristan Leteurtre committed
156
#  command3 = "start video localhost webcam"
Damien Lucas's avatar
Damien Lucas committed
157
END