X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=helpers%2Fgenthumb.sh;h=9eec8f358f0dab8c85ad44f8ba9d24a63e61df54;hb=a7907367ee91863c830f96ba5ac73a2ba6b7476f;hp=7db84782c82165d5d8b1da48b35706c50148ed12;hpb=f5de72a64ced97eda77921bd3207a17a5e9a28f5;p=serve0 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