[theora] creating a thumbnail series
yorn at gmx.net
yorn at gmx.net
Wed Mar 11 07:39:55 PDT 2009
Hi all,
I wrote a tiny script to create a series of thumbnails from a theora file by using the OggVideoTools.
usage:
$> ./mkThumb videofile.ogm 10 "-s 0x100"
Creates 10 thumbnails from videofile.ogm. The pictures are set to a height of 100 pixel.
- Yorn
---- snip: mkThumb --------
#!/bin/sh
length=`oggLength $1`
timestring="0"
div=$(($2*1000))
for((i=1; i<$2; i++)) do
value=$(echo "scale=3; $i*$length/$div" | bc -q 2>/dev/null)
timestring="$timestring,$value"
done
oggThumb $3 -t$timestring $1
---- snip --------
More information about the theora
mailing list