All pastes #848978 Raw Edit

Something

public text v1 · immutable
#848978 ·published 2008-01-10 03:56 UTC
rendered paste body
#!/bin/sh
#
# VLC startup script for Nokia 770, streaming video, no UI, kill exist$
# processes
#
# v0.0.1    Seppo Yliklaavu    2006-09-28
#
######################################################################$
#                      USER MODIFIABLE SECTION STARTS HERE            $
#             You can check VLCs manual for suitable parameters       $
######################################################################$
# Video codec
VCODEC=avi

# Video size
SIZE=qcif

# Video frame rate
FPS=12

# Video bit rate in kbps
VB=192

# Access method, udp/http
ACCESS=http

# Host where to stream to, only valid when ACCESS is equal to 'udp'
HOST=192.168.1.70


# Port where to stream to when ACCESS is equal to 'udp' or port which $
# server listens to when ACCESS is equal to 'http'
PORT=3402

######################################################################$
#                      USER MODIFIABLE SECTION ENDS HERE              $
#   !!! DO NOT TOUCH THE FOLLOWING UNLESS YOU KNOW WHAT YOU ARE DOING $
######################################################################$
PREFIX=

if [ "$ACCESS" == "udp" ]
then
        DST="dst=$HOST:$PORT"
else
        DST="url=0.0.0.0:$PORT"
fi

#echo Setting parameters > /tmp/vlc_startup.log
LD_LIBRARY_PATH=$PREFIX/usr/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
export LD_PRELOAD=/usr/lib/libosso-ic-preload.so

#echo Killing existing vlc processes >> /tmp/vlc_startup.log
killall -6 vlc >>/tmp/vlc_startup.log
#echo Starting VLC >> /tmp/vlc_startup.log

#echo $DST >> /tmp/vlc_startup.log