Scripts related to creating and distributing talks and media files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
talk-scripts/make-thumbs.sh

22 lines
480 B

V_BIT_RATE=768kb
A_BIT_RATE=128kb
#No logging for this script
#LOG=`mktemp`
#TIC=`date +%s`
ffmpeg -itsoffset -20 -i $1 -y -v -1 \
-f rawvideo \
-vcodec mjpeg -vframes 1 -s 90x60 \
-an \
"encodes/$2-thumb-small.jpg" 2> /dev/null
ffmpeg -itsoffset -20 -i $1 -y -v -1 \
-f rawvideo \
-vcodec mjpeg -vframes 1 -s 720x480 \
-an \
"encodes/$2-thumb-large.jpg" 2> /dev/null
#TOC=`date +%s`
#echo "`expr $TOC - $TIC`" >> $LOG