From aa998c2160d600cb5f0c3f1bd619ae0d75847be8 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 29 Feb 2012 16:32:59 +0000 Subject: [PATCH] --- fluidbook/tools/webvideo | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/fluidbook/tools/webvideo b/fluidbook/tools/webvideo index ef04f92e1..d0c24fdaa 100644 --- a/fluidbook/tools/webvideo +++ b/fluidbook/tools/webvideo @@ -4,10 +4,19 @@ filename=$(basename $1) extension=${filename##*.} filename=${filename%.*} +echo 'making jpg' +echo +echo /usr/local/bin/ffmpeg -i $1 -y -r 1 -ss 00:00:04 -t 00:00:01 -f image2 $2/$filename.jpg + + + if [ extension != "mp4" ] then +echo 'making mp4' +echo +echo /usr/bin/ffmpeg -i $1 \ -y \ -acodec aac \ @@ -37,5 +46,11 @@ then -r 13 \ $2/$filename.mp4 fi +echo 'making ogv' +echo +echo /usr/local/bin/ffmpeg2theora $1 -o $2/$filename.ogv +echo 'making webm' +echo +echo /usr/local/bin/ffmpeg -i $1 -keyint_min 0 -g 250 -skip_threshold 0 -qmin 1 -qmax 51 -vcodec libvpx -b 614400 -acodec libvorbis -y $2/$filename.webm \ No newline at end of file -- 2.39.5