X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=pages%2Fview.sh;h=ec873bda530c1e03665cabf19a523e1a1cbafb21;hb=6b08e359a06ed38d25c1756e5600096c77417a9c;hp=689d6c1e3f8c8f2fc3ddb068dfbb7130c74db0ba;hpb=8d001b4467b644b462faabdf75d8f6af50c4e2ae;p=serve0 diff --git a/pages/view.sh b/pages/view.sh index 689d6c1..ec873bd 100755 --- a/pages/view.sh +++ b/pages/view.sh @@ -1,6 +1,6 @@ #!/bin/zsh -# Copyright 2014 - 2016 Paul Hänsch +# Copyright 2014 2016 Paul Hänsch # # This file is part of Serve0. # @@ -31,7 +31,7 @@ description="$(sed -n '3,$p' "$meta")" length=0; width=0; height=0; debug "Analysing video: $video" -echo '' |mplayer -input nodefault-bindings -nosound -vo null -identify -frames 0 "$video" \ +printf '' |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;