2 # written by jan gerber <j@v2v.cc>
3 # profiles added by Dan Dennedy
8 echo "Title: Ogg Theora Export (ffmpeg2theora)"
11 which ffmpeg2theora
> /dev
/null
12 [ $?
-eq 0 ] && echo Status
: Active ||
echo Status
: Inactive
15 echo Flags
: single-pass file-producer
18 echo "Profile: High Quality (640x480)"
19 echo "Profile: Medium Quality (320x240)"
20 echo "Profile: Broadband Quality (320x240)"
21 echo "Profile: Low Quality (160x128)"
31 [ "x$file" = "x" ] && file="kino_export_"`date +%Y-%m-%d_%H.%M.%S`
33 # Determine info arguments
34 size
=`[ "$normalisation" = "pal" ] && echo 352x288 || echo 352x240`
40 "0" ) ffmpeg2theora
-f dv
-x 640 -y 480 -d -v 7 -a 3 -H 48000 -o "$file".ogv
- ;;
41 "1" ) ffmpeg2theora
-f dv
-x 320 -y 240 -d -v 7 -a 3 -H 48000 -o "$file".ogv
- ;;
42 "2" ) ffmpeg2theora
-f dv
-x 320 -y 240 -d -v 5 -a 0 -H 44100 -o "$file".ogv
- ;;
43 "3" ) ffmpeg2theora
-f dv
-x 160 -y 128 -d -v 3 -a 0 -H 22000 -o "$file".ogv
- ;;
47 [ "$1" = "--usage" ] ||
[ -z "$1" ] && usage
"$@" || execute
"$@"