]> git.plutz.net Git - serve0/commitdiff
bugfix: ffprobe invocation
authorPaul Hänsch <paul@plutz.net>
Tue, 5 Oct 2021 13:29:03 +0000 (15:29 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 5 Oct 2021 13:29:03 +0000 (15:29 +0200)
indexmeta.sh

index 1cd3ff13fb099dd2a226802c940b2767c1322658..7b3720990a9d2a58e3e4a6db94e3ec07490a26c2 100644 (file)
@@ -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}*}"