Hi,
I trunk new version for VLS, but I don't know how to config the vls.cfg.
The follow config don't work. Can you share yours to me? thanks a lot.
# vls configuration file (example)
# application wide settings
begin "global"
logfile = "vls.log" # log file
screenlog = "enable" # log to the console
systemlog = "enable" # log to the systemlog
end
# 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"
# --- format:
# groupname = "cmd1|cmd2|..."
# --- example:
monitor = "help|logout"
# 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"
master = "cd|ls|help|broadcast_help|broadcast_resume|broadcast_suspend|broadcast_forward|broadcast_rewind|broadcast_stop|shutdown|logout|config|broadcast_ls|broadcast_add|broadcast_del|broadcast_start|channel_ls|channel_add|channel_del|program_ls"
end
# the section "users" describes each user
# use "mkpasswd" to generate the encrypted password.
begin "users"
# --- format:
# username = "encryptedpassword:group"
# --- example:
monitor = "3bckwoiqn0vi6:monitor" # password is 'monitor'
bozo = "jkg2tpperilnw:master" # password is 'bozo'
# admin = "42BKiCguFAL/c:master" # password is 'Vir4Gv5S'
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)
# pvr = "video" # video input example (mpeg encoder)
# dvb = "dvb" # dvb input example (dvb card)
# webcam = "v4l" # video for linux example (webcam)
# tuner = "v4l" # video for linux example (composite)
end
BEGIN "Local1"
ProgramCount = "20000"
TrickPlay = "normal"
END
BEGIN "local1"
Device = "/"
Type = "Mpeg1-PS"
END
begin "input"
FilesPath = "/"
programcount = "10"
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 "1" # another file
Name = "kids.mpe"
FileName = "kids.mpe"
Type = "Mpeg1-PS"
END
#begin "2" # another file
# name = "canyon"
# filename = "dolby_canyon.vob"
# type = "mpeg2-ps"
#end
#
#begin "3" # dvd
# name = "film"
# device = "/dev/cdrom" # probably /dev/rdisk1 under MacOSX
# 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:
# cardtype = "kfir" # 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")
end
# 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
# bitratemode = "cbr" # cbr (Constant Bitrate)
# or vbr (Variable Bitrate)
#inputnumber = "0" # 0 (Composite on S-video plug),
# 4 (Tuner) or 6 (S-video)
end
# dvb 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
# - empty string : default size
# - width x height
# - 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
# - empty string : default size
# - width x height
# - 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:
localhost = "network"
client1 = "network"
# client2 = "network"
# multicast1 = "network"
# multicast2 = "network"
# localfile = "file"
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 = "127.0.0.1" # 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
# streamtype = "multicast"
# ttl = "1" # time to live
# dsthost = "239.2.12.42" # multicast address
# dstport = "1234" # destination port
#end
#begin "multicast2" # multicast ipv6 example
# domain = "inet6"
# streamtype = "multicast"
# ttl = "1" # time to live
# dsthost = "ff08::2" # multicast ipv6 address
# dstport = "1234" # destination port
#end
#begin "localfile" # file output example
# filename = "stream.ts"
# append = "no" # rewrite the file if it exists
#end
# commands automatically lanched on startup
# commands shall be like they would be typed in a telnet console.
begin "launchonstartup"
# command1 = "start kids.mpe localhost local1 --loop"
# command2 = "start 28009 client1 dvb"
# command3 = "start video localhost webcam"
# command4 = "start video localhost pvr"
end