From: Paul Hänsch Date: Tue, 5 Oct 2021 13:29:03 +0000 (+0200) Subject: bugfix: ffprobe invocation X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=f97b078b5e7fde01e2cbe97585ed58a4f8773fc9;hp=d8e753abbb6d59aa1dd9c5ee1f071014dfd20eac;p=serve0 bugfix: ffprobe invocation --- diff --git a/indexmeta.sh b/indexmeta.sh index 1cd3ff1..7b37209 100644 --- a/indexmeta.sh +++ b/indexmeta.sh @@ -17,7 +17,7 @@ meta_line() { video="$1" [ "${video%.part}" = "$video" -a -s "$video" ] || return 0 - meta="$(printf \\n; ffprobe -show_entries format=duration:stream=width,height 2>&-)" + probe="$(printf \\n; ffprobe -show_entries format=duration:stream=width,height "$video" 2>&-)" l="${probe#*duration=}" l="${l%%${BR}*}" l="${l%.*}" w="${probe#*width=}" w="${w%%${BR}*}" h="${probe#*height=}" h="${h%%${BR}*}"