add snapshot helper tool
This commit is contained in:
parent
64d19d0bb5
commit
52c7239b6c
1 changed files with 20 additions and 0 deletions
20
make-snapshots.sh
Executable file
20
make-snapshots.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
if ! pushd $1 >/dev/null 2>&1; then
|
||||
echo "call with a project-name, eg. './make-snapshots sotmeu14' after you rendered your dv-files."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ss=$2
|
||||
if [ -z $ss ]; then
|
||||
# three seconds
|
||||
ss=3
|
||||
fi
|
||||
|
||||
for dv in *.dv; do
|
||||
png="$(basename $dv .dv).png"
|
||||
echo "$dv @ second $ss -> $png"
|
||||
avconv -loglevel error -i $dv -ss $ss -frames:v 1 -vf scale='iw*sar:ih' -f image2 -c png $png;
|
||||
done
|
||||
|
||||
popd >/dev/null 2>&1
|
||||
|
Loading…
Add table
Reference in a new issue