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

j at motherfish-iii.xiph.org j at motherfish-iii.xiph.org
Thu Sep 30 04:06:57 PDT 2004


Author: j
Date: 2004-09-30 04:06:56 -0700 (Thu, 30 Sep 2004)
New Revision: 7895

Modified:
   trunk/ffmpeg2theora/kino_export/ffmpeg2theora.sh
Log:
update kino plugin to expose presets

Modified: trunk/ffmpeg2theora/kino_export/ffmpeg2theora.sh
===================================================================
--- trunk/ffmpeg2theora/kino_export/ffmpeg2theora.sh	2004-09-30 11:03:25 UTC (rev 7894)
+++ trunk/ffmpeg2theora/kino_export/ffmpeg2theora.sh	2004-09-30 11:06:56 UTC (rev 7895)
@@ -3,14 +3,17 @@
 usage()
 {
 	# Title
-	echo "Title: OggTheora Export(ffmpeg2theora)"
+	echo "Title: Ogg Theora Export"
 
 	# Usable?
-	command -v ffmpeg2theora --help 2> /dev/null
+	command -v ffmpeg2theora  2>&1 > /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
 }
 
 execute()
@@ -20,16 +23,19 @@
 	length="$2"
 	profile="$3"
 	file="$4"
-
+	case "$profile" in
+		"0" )
+			preset="preview";;
+		"1" )
+			preset="pro";;
 	# Determine info arguments
 	size=`[ "$normalisation" = "pal" ] && echo 352x288 || echo 352x240`
 	video_bitrate=1152
 	audio_bitrate=224
 
 	# Run the command
-	#ffmpeg -f dv -i - -f vcd -deinterlace -r "$normalisation" -s "$size" -b "$video_bitrate" -acodec mp2 -ab "$audio_bitrate" -y "$file".mpeg
 	[ "x$file" = "x" ] && file="kino_export_"`date +%Y-%m-%d_%H.%M.%S`
-	ffmpeg2theora -f dv -o "$file".ogg -
+	ffmpeg2theora -f dv -p $preset -o "$file".ogg -
 }
 
 [ "$1" = "--usage" ] || [ -z "$1" ] && usage "$@" || execute "$@"



More information about the commits mailing list