]> code.delx.au - transcoding/blobdiff - encode.py
Use linear blend deinterlacing, it looks much better
[transcoding] / encode.py
index cdc733cf8bc989a6d8bfaf82cd4dda79b3445a32..29daa9577881f32caeda37f5f9f4b25306a12b44 100755 (executable)
--- a/encode.py
+++ b/encode.py
@@ -80,7 +80,7 @@ class Mencoder(Command):
                                cmd.append(opt)
                                cmd.append(var)
                if self.opts.deinterlace:
-                       cmd += ["-vf-add", "pp=ci"]
+                       cmd += ["-vf-add", "pp=lb"]
                try_opt("-ss", self.opts.startpos)
                try_opt("-endpos", self.opts.endpos)
                try_opt("-dvd-device", self.opts.dvd)
@@ -205,6 +205,34 @@ profiles = {
                aopts="br=%(abitrate)d:mpeg=4:object=2",
                extra=["-vf-add", "scale=320:-10"],
        ),
+
+       "n97xvid" :
+       Profile(
+               commands=[Mencoder, MP4Box],
+               default_opts={
+                       "vbitrate": 1000,
+                       "abitrate": 96,
+               },
+               vcodec="xvid",
+               vopts="pass=%(vpass)d:bitrate=%(vbitrate)d:vhq=4:autoaspect:max_bframes=0",
+               acodec="faac",
+               aopts="br=%(abitrate)d:mpeg=4:object=2",
+               extra=["-vf-add", "scale=640:-10"],
+       ),
+
+       "n97x264" :
+       Profile(
+               commands=[Mencoder, MP4Box],
+               default_opts={
+                       "vbitrate": 1000,
+                       "abitrate": 96,
+               },
+               vcodec="x264",
+               vopts="pass=%(vpass)d:bitrate=%(vbitrate)d:vbv_maxrate=2000:vbv_bufsize=2000:nocabac:me=umh:partitions=all:trellis=1:subq=7:bframes=0:direct_pred=auto:level_idc=20",
+               acodec="faac",
+               aopts="br=%(abitrate)d:mpeg=4:object=2",
+               extra=["-vf-add", "scale=640:-10"],
+       ),
 }