return
do_opt = partial(append_cmd, cmd)
-
- if o.deinterlace:
- cmd += ["-vf-pre", "yadif"]
- if o.detelecine:
- cmd += ["-vf-pre", "pullup,softskip", "-ofps", "24000/1001"]
- if o.noskip:
- cmd += ["-noskip"]
- if o.skipkb:
- cmd += ["-sb", str(o.skipkb * 1024)]
-
do_opt("-mc", o.mc)
do_opt("-ss", o.startpos)
do_opt("-endpos", o.endpos)
do_opt("-vf", o.vfilters)
do_opt("-af", o.afilters)
+ if o.deinterlace:
+ cmd += ["-vf-pre", "yadif"]
+ if o.detelecine:
+ cmd += ["-vf-pre", "pullup,softskip", "-ofps", "24000/1001"]
+ if o.noskip:
+ cmd += ["-noskip"]
+ if o.skipkb:
+ cmd += ["-sb", str(o.skipkb * 1024)]
+
class Command(object):
def __init__(self, profile, opts):
parser.add_option("--dvd", action="store", dest="dvd")
parser.add_option("--deinterlace", action="store_true", dest="deinterlace")
parser.add_option("--detelecine", action="store_true", dest="detelecine")
- parser.add_option("--mc", action="store", dest="mc", type="int")
+ parser.add_option("--mc", action="store", dest="mc", type="float")
parser.add_option("--noskip", action="store_true", dest="noskip")
parser.add_option("--vfilters", action="store", dest="vfilters")
parser.add_option("--afilters", action="store", dest="afilters")