From a6c7659651aae7379c91ba72e10cc3be8681286b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 3 Apr 2010 20:09:58 +0200 Subject: initial --- bin/fuze-img | 8 ++++++++ bin/fuze-vid | 23 +++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100755 bin/fuze-img create mode 100755 bin/fuze-vid diff --git a/bin/fuze-img b/bin/fuze-img new file mode 100755 index 0000000..da91b60 --- /dev/null +++ b/bin/fuze-img @@ -0,0 +1,8 @@ +#!/bin/sh +## Copyright © 2010 by Daniel Friesel +## License: WTFPL + +INPUT="${1}" +OUTPUT="/tmp/fuze/$(basename ${1}).jpg" + +convert -resize 220x176 -quality 100 "${INPUT}" "${OUTPUT}" diff --git a/bin/fuze-vid b/bin/fuze-vid new file mode 100755 index 0000000..775fbf1 --- /dev/null +++ b/bin/fuze-vid @@ -0,0 +1,23 @@ +#!/bin/sh +## Copyright © 2010 by Daniel Friesel +## License: WTFPL + +INPUT="${1}" +TMPOUT="/tmp/fuze/${1}.tmp" +OUTPUT='/tmp/fuze/$(basename ${1}).avi" + +mkdir -p /tmp/fuze + +mencoder -msglevel all=0:statusline=5 -ffourcc DX50 -ofps 20 -vf \ +pp=li,expand=:::::224/176,scale=224:176,harddup -ovc lavc -lavcopts \ +vcodec=mpeg4:vbitrate=683:vmax_b_frames=0:keyint=15:turbo:vpass=1 \ +-srate 44100 -af resample=44100:0:1,format=s16le -oac mp3lame \ +-lameopts cbr:br=128 "${INPUT}" -o "${TMPOUT}" + +mencoder -msglevel all=0:statusline=5 -ffourcc DX50 -ofps 20 -vf \ +pp=li,expand=:::::224/176,scale=224:176,harddup -ovc lavc -lavcopts \ +vcodec=mpeg4:vbitrate=683:vmax_b_frames=0:keyint=15:vpass=2 -srate 44100 \ +-af resample=44100:0:1,format=s16le -oac mp3lame -lameopts cbr:br=128 \ +"${INPUT}" -o "${TMPOUT}" + +fuzemux "${TMPOUT}" "${OUTPUT}" -- cgit v1.2.3