]> code.delx.au - transcoding/commitdiff
Added another version of tomp4 (this one works for xvid)
authorGreg Darke <greg+pc-3w14-0@tsukasa.net.au>
Tue, 2 Sep 2008 10:11:28 +0000 (20:11 +1000)
committerGreg Darke <greg+pc-3w14-0@tsukasa.net.au>
Tue, 2 Sep 2008 10:11:28 +0000 (20:11 +1000)
ipod_tomp4.sh [new file with mode: 0755]

diff --git a/ipod_tomp4.sh b/ipod_tomp4.sh
new file mode 100755 (executable)
index 0000000..78a1416
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+OUTPUT="$(basename "$1" .avi).mp4"
+
+mencoder "$1" -ovc copy -oac copy -of rawaudio -o tmp.aac
+rm -f "${OUTPUT}"
+MP4Box -add "$1#video" -add tmp.aac "${OUTPUT}"
+rm -f tmp.acc