#!/bin/sh
if [ $# = 0 ]; then
echo "Usage: mplayer2 movie sub1 sub2 [margin] [extra-params]"
exit 0
fi
movie="$1"
extension=".${movie##*.}"
dirname=`dirname "$1"`
basename=`basename "$1" $extension`
sub_1="$2"
sub_2="$3"
if [ x${4} = x ]; then
margin=0
else
margin=$4
fi
if [ x${5} = x ]; then
extra_params=''
else
extra_params="$5"
fi
merge2ass.sh "$movie" "$sub_1" "$sub_2"
mplayer "$movie" -sub "${dirname}/${basename}-bilingual.ass" -ass -ass-use-margins -ass-bottom-margin $margin -ass-top-margin $margin $extra_params
Wyszukiwarka
Podobne podstrony:
MPlayer MinGW HowtoKompilacja mplayeramplayer mistakeswięcej podobnych podstron