From 0e7d01bc8a75d903e27f17ff2b89f41794d8ffea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 4 Oct 2021 22:09:35 +0200 Subject: [PATCH] more reliable video meta data check (duration) --- page_video.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page_video.sh b/page_video.sh index 6d3a8eb..9f21409 100644 --- a/page_video.sh +++ b/page_video.sh @@ -37,7 +37,7 @@ update_video(){ esac; done if [ -f "$video" -a -r "$video" ]; then - arg="$(echo; ffprobe -show_entries stream=width,height,duration "$video" 2>&-)" + arg="$(echo; ffprobe -show_entries format=duration:stream=width,height "$video" 2>&-)" resx="${arg#*width=}"; resx="${resx%%${BR}*}" resy="${arg#*height=}"; resy="${resy%%${BR}*}" length="${arg#*duration=}"; length="${length%%${BR}*}" -- 2.39.2