[xiph-commits] r8295 - trunk/ffmpeg2theora/kino_export

j at motherfish-iii.xiph.org j at motherfish-iii.xiph.org
Sun Nov 28 09:54:01 PST 2004


Author: j
Date: 2004-11-28 09:54:01 -0800 (Sun, 28 Nov 2004)
New Revision: 8295

Modified:
   trunk/ffmpeg2theora/kino_export/ffmpeg2theora.sh
Log:
update profiles

Modified: trunk/ffmpeg2theora/kino_export/ffmpeg2theora.sh
===================================================================
--- trunk/ffmpeg2theora/kino_export/ffmpeg2theora.sh	2004-11-27 08:13:54 UTC (rev 8294)
+++ trunk/ffmpeg2theora/kino_export/ffmpeg2theora.sh	2004-11-28 17:54:01 UTC (rev 8295)
@@ -1,23 +1,24 @@
 #!/bin/sh
-#
-# place this script in /usr/share/kino/scripts/exports
-# and make sure ffmpeg2theora is in $PATH
-#
-#
+# written by jan gerber <j at v2v.cc>
+# profiles added by Dan Dennedy
+
 usage()
 {
 	# Title
-	echo "Title: Ogg Theora Export"
+	echo "Title: Ogg Theora Export (ffmpeg2theora)"
 
 	# Usable?
-	command -v ffmpeg2theora  2>&1 > /dev/null
+	which ffmpeg2theora > /dev/null
 	[ $? -eq 0 ] && echo Status: Active || echo Status: Inactive
 
 	# Type
 	echo Flags: single-pass file-producer
-
-	echo Profile: v2v Preview
-	echo Profile: v2v Pro
+	
+	# Profiles
+	echo "Profile: High Quality (640x480)"
+	echo "Profile: Medium Quality (320x240)"
+	echo "Profile: Broadband Quality (320x240)"
+	echo "Profile: Low Quality (160x128)"
 }
 
 execute()
@@ -27,19 +28,20 @@
 	length="$2"
 	profile="$3"
 	file="$4"
-	case "$profile" in
-		"0" )
-			preset="preview";;
-		"1" )
-			preset="pro";;
+	[ "x$file" = "x" ] && file="kino_export_"`date +%Y-%m-%d_%H.%M.%S`
+
 	# Determine info arguments
 	size=`[ "$normalisation" = "pal" ] && echo 352x288 || echo 352x240`
 	video_bitrate=1152
 	audio_bitrate=224
 
 	# Run the command
-	[ "x$file" = "x" ] && file="kino_export_"`date +%Y-%m-%d_%H.%M.%S`
-	ffmpeg2theora -f dv -p $preset -o "$file".ogg -
+	case "$profile" in 
+		"0" ) 	ffmpeg2theora -f dv -x 640 -y 480 -d -v 7 -a 3 -H 48000 -o "$file".ogg - ;;
+		"1" ) 	ffmpeg2theora -f dv -x 320 -y 240 -d -v 7 -a 3 -H 48000 -o "$file".ogg - ;;
+		"2" ) 	ffmpeg2theora -f dv -x 320 -y 240 -d -v 5 -a 0 -H 44100 -o "$file".ogg - ;;
+		"3" ) 	ffmpeg2theora -f dv -x 160 -y 128 -d -v 3 -a 0 -H 22000 -o "$file".ogg - ;;
+	esac
 }
 
 [ "$1" = "--usage" ] || [ -z "$1" ] && usage "$@" || execute "$@"



More information about the commits mailing list