Rev 20 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/bin/sh
[ $# -lt 3 ] && {
echo >&2 "${0##*/} [-g GREY_VALUE] [-p PREFIX] [-s SUFFIX] START SID\
TITLES..."
exit 1
}
[ "$1" = '-g' ] &&
{
shift
user_grey=$1
[ "$1" == '-' ] && user_grey=255,0,255,255
user_grey="-g $user_grey"
shift
}
[ "$1" = '-p' ] &&
{
shift
prefix=$1
shift
}
[ "$1" = '-s' ] &&
{
shift
suffix=$1
shift
}
start=$1
subtitle=$2
shift 2
sudo dc stop
i=$(($start))
while [ $# -gt 0 ]
do
echo
dvdsubtitles -t $i -s $subtitle $user_grey -o "$prefix$1$suffix"
let i++
shift
done
sudo dc start