]> code.delx.au - transcoding/commitdiff
Initial attempt at encoding for an ipod
authorGreg Darke <greg+asuna@tsukasa.net.au>
Tue, 2 Sep 2008 06:41:32 +0000 (16:41 +1000)
committerGreg Darke <greg+asuna@tsukasa.net.au>
Tue, 2 Sep 2008 06:41:32 +0000 (16:41 +1000)
encipod.py [new symlink]
encode.py

diff --git a/encipod.py b/encipod.py
new file mode 120000 (symlink)
index 0000000..482c483
--- /dev/null
@@ -0,0 +1 @@
+encode.py
\ No newline at end of file
index 2dc94a647a61f61b762b6a8631f92ce156ca34b2..b074a2cdcb50c8e6b30c50ae9ddd9ec9f9b3873e 100755 (executable)
--- a/encode.py
+++ b/encode.py
@@ -11,6 +11,14 @@ codecs = {
        "-oac", "faac", "-faacopts", "br=%(abitrate)d:mpeg=4:object=2", "-channels", "2", "-srate", "48000",
 ],
 
+"ipod":
+[
+       "mencoder", "%(input)s", "-o", "%(output)s",
+       "-vf", "%(filters)s",
+       "-ovc", "x264", "-x264encopts", "pass=%(pass)d:bitrate=%(vbitrate)d:me=umh:threads=auto:partitions=all:trellis=1:subq=7:bframes=1:direct_pred=auto",
+       "-oac", "faac", "-faacopts", "br=%(abitrate)d:mpeg=4:object=2", "-channels", "2", "-srate", "48000",
+],
+
 "xvid":
 [
        "mencoder", "%(input)s", "-o", "%(output)s",