From 279e26ed3147e1c55ff8d731624e3764735ecb42 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 13 Apr 2015 16:37:09 +0200 Subject: [PATCH] Snapshots for TS-Files --- make-snapshots.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/make-snapshots.sh b/make-snapshots.sh index bf0e77f..c9c65d8 100755 --- a/make-snapshots.sh +++ b/make-snapshots.sh @@ -1,6 +1,6 @@ #!/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." + echo "call with a project-name, eg. './make-snapshots sotmeu14' after you rendered your dv/ts-files." exit 1 fi @@ -11,10 +11,16 @@ if [ -z $ss ]; then fi for dv in *.dv; do - png="snapshot-$(basename $dv .dv).png" + png="$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 +for ts in *.ts; do + png="$ts.png" + echo "$ts @ second $ss -> $png" + avconv -loglevel error -i $ts -ss $ss -frames:v 1 -vf scale='iw*sar:ih' -f image2 -c png $png; +done + popd >/dev/null 2>&1