r2768 - people/bmsleight/autotesting
bmsleight-guest at alioth.debian.org
bmsleight-guest at alioth.debian.org
Wed Aug 15 20:45:42 UTC 2007
Author: bmsleight-guest
Date: 2007-08-15 20:45:42 +0000 (Wed, 15 Aug 2007)
New Revision: 2768
Modified:
people/bmsleight/autotesting/video-qemu-booting-iso.sh
Log:
ffmpeg2theora --videoquality 10 gives a high file size, now using fault of 5 which can be overridden using -v (0-10)
Modified: people/bmsleight/autotesting/video-qemu-booting-iso.sh
===================================================================
--- people/bmsleight/autotesting/video-qemu-booting-iso.sh 2007-08-15 16:32:00 UTC (rev 2767)
+++ people/bmsleight/autotesting/video-qemu-booting-iso.sh 2007-08-15 20:45:42 UTC (rev 2768)
@@ -11,8 +11,8 @@
# /usr/share/common-licenses/GPL #
# #
# Required packages/applications :- #
-# bash, expect, ffmpeg2thoera, imagemagick, mencoder, #
-# qemu, vncrec, vncserver #
+# bash, expect, ffmpeg2thoera, imagemagick, #
+# twibright-vnc, qemu, vncserver #
# #
# Requires /etc/vnc.conf to be ammended. #
# #
@@ -64,10 +64,10 @@
FFMPEG_DIM_SCALE=$(echo "$CONVERT_DIM" | sed s/x/\ -y\ /g)
FFMPEG_DIM_SCALE="-x $FFMPEG_DIM_SCALE"
if [ "$TIME_Q" = "" ]; then
- TIME_Q="60"
+ TIME_Q="600"
fi
-if [ "$LOGO" = "" ]; then
- LOGO="/home/morph/webconverger/openlogo-75.png"
+if [ "$VQUALITY" = "" ]; then
+ VQUALITY="5"
fi
if [ "$QEMU_BIN" = "" ]; then
QEMU_BIN="qemu"
@@ -164,7 +164,7 @@
gen_video ()
{
#Need to runs some tests to ensure vncrec -movie does temriante at end of session.
-vncrec -movie $TMP_DIR/qemu.1.vnc | ffmpeg2theora $FFMPEG_DIM_SCALE --videoquality 10 --inputfps 40 --artist "AutoTesting" --title "Video of Qemu booting $ISO" --date "$TODAY" -o $VIDEO -
+vncrec -movie $TMP_DIR/qemu.1.vnc | ffmpeg2theora $FFMPEG_DIM_SCALE --videoquality $VQUALITY --inputfps 40 --artist "AutoTesting" --title "Video of Qemu booting $ISO" --date "$TODAY" -o $VIDEO -
}
clean_up ()
@@ -176,7 +176,7 @@
}
-while getopts s:p:g:d:t:l:q: opt
+while getopts s:p:g:d:t:v:q: opt
do
case "$opt" in
s) SENDKEYS="$OPTARG";;
@@ -184,20 +184,20 @@
g) GEOMETRY="$OPTARG";;
d) CONVERT_DIM="$OPTARG";;
t) TIME_Q="$OPTARG";;
- l) LOGO="$OPTARG";;
+ v) VQUALITY="$OPTARG";;
q) QEMU_BIN="$OPTARG";;
\?) # unknown flag
echo >&2 \
- "usage: $0 [-s \"keys,to,send,to,qemu\"] [-p port_number for qemu-monitor] [-g geometry of vncsession] [-d dimensions of video] [-t time to run qemu] [-l logo] [-q alternative qemu binary name] IsoToTest.iso Video.ogg "
+ "usage: $0 [-s \"keys,to,send,to,qemu\"] [-p port_number for qemu-monitor] [-g geometry of vncsession] [-d dimensions of video] [-t time to run qemu] [-v (0 to 10) encoding quality for video] [-q alternative qemu binary name] IsoToTest.iso Video.ogg "
exit 1;;
esac
done
shift `expr $OPTIND - 1`
if [ -z "$1" -a -z "$2" ]; then
- echo "usage: $0 [-s \"keys,to,send,to,qemu\"] [-p port_number for qemu-monitor] [-g geometry of vncsession] [-d dimensions of video] [-t time to run qemu] [-l logo] IsoToTest.iso Video.ogg "
+ echo "usage: $0 [-s \"keys,to,send,to,qemu\"] [-p port_number for qemu-monitor] [-g geometry of vncsession] [-d dimensions of video] [-t time to run qemu] [-v (0 to 10) encoding quality for video] [-q alternative qemu binary name] IsoToTest.iso Video.ogg "
echo
echo " This script boots a livecd using qemu and records a video of the process. "
echo
More information about the debian-live-changes
mailing list