summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-04-03 20:09:58 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-04-03 20:09:58 +0200
commita6c7659651aae7379c91ba72e10cc3be8681286b (patch)
tree446b7a44193102c16e5363c8ebcf470858eb01c8
initial
-rwxr-xr-xbin/fuze-img8
-rwxr-xr-xbin/fuze-vid23
2 files changed, 31 insertions, 0 deletions
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 <derf@derf.homelinux.org>
+## License: WTFPL <http://sam.zoy.org/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 <derf@derf.homelinux.org>
+## License: WTFPL <http://sam.zoy.org/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}"