A script to generate image thumbnails of videos
[recordtv.git] / scripts / thumbnail.sh
blob322181e7dd3d96c36c5020b72d4c3aaa26179588
1 #!/bin/bash
3 INPUT="$1"
5 OUTPUT="$2"
7 SIZE=240x176
9 function thumbnail()
11 START="$1"
12 NUM="$2"
14 avconv -loglevel quiet -ss "$START" -i "$INPUT" -s "$SIZE" -vframes 1 "$OUTPUT-$NUM.png"
17 thumbnail 300 1
18 thumbnail 600 2
19 thumbnail 1200 3