From 52c7239b6cb87ee8976ca2b7ec5883315835d3ac Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 2 Jun 2014 13:44:03 +0200 Subject: [PATCH] add snapshot helper tool --- make-snapshots.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 make-snapshots.sh diff --git a/make-snapshots.sh b/make-snapshots.sh new file mode 100755 index 0000000..847a37b --- /dev/null +++ b/make-snapshots.sh @@ -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 +