svn path=/trunk/; revision=86
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;
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;
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