repo.or.cz
/
recordtv.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
A script to generate image thumbnails of videos
[recordtv.git]
/
scripts
/
thumbnail.sh
blob
322181e7dd3d96c36c5020b72d4c3aaa26179588
1
#!/bin/bash
2
3
INPUT
=
"
$1
"
4
5
OUTPUT
=
"
$2
"
6
7
SIZE
=
240
x176
8
9
function
thumbnail
()
10
{
11
START
=
"
$1
"
12
NUM
=
"
$2
"
13
14
avconv
-loglevel
quiet
-ss
"
$START
"
-i
"
$INPUT
"
-s
"
$SIZE
"
-vframes
1
"
$OUTPUT
-
$NUM
.png"
15
}
16
17
thumbnail
300 1
18
thumbnail
600 2
19
thumbnail
1200 3
20