return
if subprocess.Popen(["which", cmd], stdout=open("/dev/null", "w")).wait() != 0:
raise FatalException("Command '%s' is required" % cmd)
+
+ def check_no_file(self, path):
+ if os.path.exists(path):
+ raise FatalException("Output file '%s' exists." % path)
def do_exec(self, args):
if self.opts.dump:
def check(self):
self.check_command("mencoder")
self.check_command("MP4Box")
+ self.check_no_file(self.opts.output + ".mp4")
def run(self):
p = self.profile
def check(self):
self.check_command("mencoder")
+ self.check_no_file(self.opts.output + ".avi")
def run(self):
self.do_exec(self.pass1())