From a7907367ee91863c830f96ba5ac73a2ba6b7476f Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 30 Aug 2015 15:18:23 +0000 Subject: [PATCH] mplayer command line compatibility with older versions svn path=/trunk/; revision=86 --- helpers/genmeta.sh | 2 +- helpers/genthumb.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helpers/genmeta.sh b/helpers/genmeta.sh index 77d3ebf..f028d77 100755 --- a/helpers/genmeta.sh +++ b/helpers/genmeta.sh @@ -8,7 +8,7 @@ if [ -r "$meta" ]; then description="$(sed -n '3,$p' "$meta")" fi -echo '' |mplayer --input=nodefault-bindings -nosound -vo null -identify -frames 0 "$video" \ +echo '' |mplayer -input nodefault-bindings -nosound -vo null -identify -frames 0 "$video" \ | sort \ | sed -rn 's:ID_LENGTH=(.*)(\..*)$:\1:p; s:ID_VIDEO_HEIGHT=(.*):\1:p; diff --git a/helpers/genthumb.sh b/helpers/genthumb.sh index 7db8478..9eec8f3 100755 --- a/helpers/genthumb.sh +++ b/helpers/genthumb.sh @@ -4,7 +4,7 @@ video="$1" thumb="$2" if [ -e "$video" -a \! -e "$thumb" ]; then - echo '' |mplayer --input=nodefault-bindings -nosound -vo null -frames 0 -identify "$video" \ + echo '' |mplayer -input nodefault-bindings -nosound -vo null -frames 0 -identify "$video" \ | sort \ | sed -rn 's:^.*ID_LENGTH=(.*)(\..*)$:\1:p; s:^.*ID_VIDEO_HEIGHT=(.*)$:\1:p; @@ -19,7 +19,7 @@ if [ -e "$video" -a \! -e "$thumb" ]; then tmp="$(mktemp -d)" for cnt in 1 2 3 4; do - echo '' |mplayer --input=nodefault-bindings -nosound -vo jpeg:outdir="$tmp" -frames 1 \ + echo '' |mplayer -input nodefault-bindings -nosound -vo jpeg:outdir="$tmp" -frames 1 \ --benchmark -vf framestep=I,scale="$width":-2 -ss "$(($cnt*$chunk))" "$video" mv "$tmp/00000001.jpg" "${tmp}/_${cnt}.jpg" done -- 2.39.2