Autostart Script VIC

Mbone tools are based on Tcl/Tk programming language, hence they are highly programmable. As an example we will describe in detail the procedure for auto-activation of VIC.

If we start VIC as

vic -u start.tcl IP/port

where start.tcl is the following script:

# Set bandwidth to 40 (the '50' is a Tcl priority number)
option add Vic.bandwidth 40 50
# Set framerate to 5
option add Vic.framerate 5 50
# Set brightness to 42
option add Vic.brightness 42 50
# Set contrast to 30
option add Vic.contrast 30 50
# Set saturation to 120
option add Vic.saturation 120 50
# Set image quality to 5
option add Vic.quality 85 50
#
# The procedure named 'user_hook' is called when vic starts up;
# this version of the procedure starts transmission.
#
proc user_hook {} {
   global transmitButton transmitButtonState portButton
   global inputPort inputDeviceList videoDevice

after 100 { if { ![winfo exists .menu] } { build.menu }

# select the xil Osprey device foreach v $inputDeviceList { if { [$v nickname] == "name_of_your_video_card"} { ## replace name here!! ## set videoDevice $v select_device $v } }

# select the composite port set inputPort composite-2 grabber port composite-2

# start transmitting if { [$transmitButton cget -state] != "disabled" } { set transmitButtonState 1 transmit } } } # # end of script

vic will automatically start transmitting (in default format, H.261) to a chosen IP address and port. (Note: in Windows one can make a shortcut file that points to vic with the similar parameters)

Open_Source_Streaming_Platform

Server_Side
_Darwin_Streaming_Server
_Icecast_Streaming_Server
_RTPTOOLS

Content_Production_Side
_Mbone_-_OpenMash_Tools
_Autostart_Script_VIC
_Live_Encoding_-_Mbone_Tools
_MPEG_4_IP
_MP3_Live_Streaming
_SMIL

Dynamic_Relaying_of_RTSP_Servers
_Dynamic_Relay_-_Flow
_Dynamic_Relay_-_Code
_Dynamic_Relay_&_MP3_alias

OSSA_Streaming_Protocol
_SDP_Exchange_&_Public_Keys
_Stream_Scanner

Logfile_Analyzer