Merge branch 'master' of ssh://repo.or.cz/srv/git/recordtv
[recordtv.git] / scripts / thumbnail.sh
blob0955ea4d5db3963a37b4c8477a4d75b275f7c18c
1 #!/bin/bash
3 function thumbnail()
5 INPUT="$1"
6 START="$2"
7 NUM="$3"
8 SIZE=240x176
10 avconv -loglevel quiet -ss "$START" -i "$INPUT" -s "$SIZE" -vframes 1 "$INPUT-$NUM.png"
13 thumbnail "$1" 300 1
14 thumbnail "$1" 600 2
15 thumbnail "$1" 1200 3