From: paul Date: Sun, 19 Oct 2014 13:17:07 +0000 (+0000) Subject: removed fake wmv generation, as decoders are incompatible anyway X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=053e825dde0d4646490e943074b4e0a685562611;p=serve0 removed fake wmv generation, as decoders are incompatible anyway svn path=/trunk/; revision=22 --- diff --git a/pages/videoview.sh b/pages/videoview.sh index 0cc3e7a..fe70493 100755 --- a/pages/videoview.sh +++ b/pages/videoview.sh @@ -86,16 +86,13 @@ _printVideo(){ # reenc="${_DATA}/vp8/$(sed -r 's:^(.*)\.[a-zA-Z0-9]{3,4}$:\1:' <<<"$info" )" mpfake="${_DATA}/mp4/$(sed -r 's:^(.*)\.[a-zA-Z0-9]{3,4}$:\1.mp4:' <<<"$info" )" - mvfake="${_DATA}/mp4/$(sed -r 's:^(.*)\.[a-zA-Z0-9]{3,4}$:\1.wmv:' <<<"$info" )" # [ -f "$reenc.mp4" ] && reenc="$reenc.mp4" || reenc="$reenc.mkv" [ -r "$meta" ] || ". ${_EXEC}/helpers/genmeta.sh" "$video" "$meta" [ -r "$thumb" ] || ". ${_EXEC}/helpers/genthumb.sh" "$video" "$thumb" [ -L "$mpfake" ] || ln -s "../videos/$info" "$mpfake" - [ -L "$mvfake" ] || ln -s "../videos/$info" "$mvfake" video="$(echo "videos/$info" |sed 's/\?/\%6F/g')" thumb="$(echo "thumbs/$info.jpg" |sed 's/\?/%6F/g')" mpfake="$(echo "$info" |sed -r 's:^(.*)\.[a-zA-Z0-9]{3,4}$:mp4/\1.mp4:' |sed 's/\?/%6F/g')" - mvfake="$(echo "$info" |sed -r 's:^(.*)\.[a-zA-Z0-9]{3,4}$:mp4/\1.wmv:' |sed 's/\?/%6F/g')" [ "$(($length % 60))" -lt 10 ] &&\ minutes="$(($length / 60)):0$(($length % 60))" ||\ @@ -110,7 +107,6 @@ _printVideo(){ $info fake-mp4 - fake-wmv ${minutes}min ${width}x${height}