3 # This script is called from VDR to start MPlayer
5 # argument 1: the file to play
6 # argument 2: (optional) the phrase SLAVE if SlaveMode is enabled
7 # argument 3: (optional) the phrase AID x to select audio stream x
9 # where to find mplayer
12 # mplayer options, -vc will be added below
13 # add "-lircconf <lircrc>" to enable LIRC support
15 if [ "aa$DVB_DEVICE" != "aa" ]; then
16 OPTS="-vo mpegpes:card=$DVB_DEVICE -ao mpegpes:card=$DVB_DEVICE"
19 # mplayer options for SlaveMode
20 SLAVE="-slave -quiet -nolirc"
28 first=`grep -v -m1 "^#" $FILE`
37 if [ "$1" = "SLAVE" ]; then
39 elif [ "$1" = "AID" ]; then
53 echo "Unknown video file format $type"
54 echo "Edit mplayer.sh to support this file type"
59 exec $MPLAYER $OPTS -vc $VC $sopt $aopt $popt "$FILE"