scripting on the VLC telnet interface

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
cat6man
New Cone
New Cone
Posts: 6
Joined: 11 Feb 2006 02:33

scripting on the VLC telnet interface

Postby cat6man » 20 Nov 2006 22:17

I found a nice way to automate some functions by using a telnet scripting program for VLM control


download the telnet scripting program tst10.exe from this link
http://www.winsite.com/bin/Info?500000000873


and example of a start and stop script:

tst10 /r:start-hdhr0-tst.txt
tst10 /r:stop-hdhr0-tst.txt

where

start-hdhr0-tst.txt
{
192.168.0.100 4212
WAIT "Password:"
SEND "admin\m"
WAIT ">"
SEND "new hdhr0 broadcast enabled\m"
WAIT ">"
SEND "setup hdhr0 input udp://@:5002\m"
WAIT ">"
SEND "setup hdhr0 output #standard{access=file,mux=ts,dst="udp0-out.ts"}\m"
WAIT ">"
SEND "control hdhr0 play\m"
WAIT ">"
SEND "quit\m"
}

stop-hdhr0-tst.txt
{
192.168.0.100 4212
WAIT "Password:"
SEND "admin\m"
WAIT ">"
SEND "control hdhr0 stop\m"
WAIT ">"
SEND "del hdhr0\m"
WAIT ">"
SEND "quit\m"
}

rajbits
New Cone
New Cone
Posts: 2
Joined: 18 Nov 2006 11:09
Location: Hyderabad
Contact:

Postby rajbits » 21 Nov 2006 08:02

Thanks for sharing it !

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 21 Nov 2006 22:17

Feel free to write a howto page on the wiki! http://wiki.videolan.org
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 4 guests