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
Merge branch 'master' of ssh://repo.or.cz/srv/git/recordtv
[recordtv.git]
/
scripts
/
thumbnail.sh
blob
0955ea4d5db3963a37b4c8477a4d75b275f7c18c
1
#!/bin/bash
2
3
function
thumbnail
()
4
{
5
INPUT
=
"
$1
"
6
START
=
"
$2
"
7
NUM
=
"
$3
"
8
SIZE
=
240
x176
9
10
avconv
-loglevel
quiet
-ss
"
$START
"
-i
"
$INPUT
"
-s
"
$SIZE
"
-vframes
1
"
$INPUT
-
$NUM
.png"
11
}
12
13
thumbnail
"
$1
"
300 1
14
thumbnail
"
$1
"
600 2
15
thumbnail
"
$1
"
1200 3
16