give the snapshots a unique name and ignore generated snapshots

This commit is contained in:
MaZderMind 2014-06-02 13:54:45 +02:00
parent 52c7239b6c
commit b8c537413c
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@
schedule.de.xml
.frames
.gen.svg
snapshot-*.png

View file

@ -11,7 +11,7 @@ if [ -z $ss ]; then
fi
for dv in *.dv; do
png="$(basename $dv .dv).png"
png="snapshot-$(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