diff -r fe8df7fd5229 -r 293e6c9546e5 gmyth-stream/server/0.3/plugins/transcoders/mencoder.py --- a/gmyth-stream/server/0.3/plugins/transcoders/mencoder.py Fri Jun 01 15:01:43 2007 +0100 +++ b/gmyth-stream/server/0.3/plugins/transcoders/mencoder.py Fri Jun 01 15:24:34 2007 +0100 @@ -162,14 +162,14 @@ outfmt = self.params_first("outfmt", "yuy2") vdev = self.params_first("vdev", "/dev/video0") adev = self.params_first("adev", "/dev/dsp") - print "teste1" - self.args["input"] = "tv:// -v -tv driver=%s:norm=%s:channel=%s:" \ - "chanlist=%s:width=%s:height=%s:outfmt=%s:" \ - "device=%s:adevice=%s" % (driver, norm, - channel, chanlist, - self.args["width"], - self.args["height"], - outfmt, vdev, adev) + tv = "tv:// -v -tv driver=%s:norm=%s:channel=%s:" \ + "chanlist=%s:width=%s:height=%s:outfmt=%s:" \ + "device=%s:adevice=%s" % (driver, norm, + channel, chanlist, + self.args["width"], + self.args["height"], + outfmt, vdev, adev) + self.args["input"] = tv.split(" ") # _setup_filename() @@ -266,11 +266,10 @@ return True # _start() - def _run_mencoder(self, input=None, output=None, error=os.devnull): + def _run_mencoder(self, input=None, output=None): try: self.proc = subprocess.Popen(self.mencoder_opts, stdin=input, - stdout=output, stderr=error, - close_fds=True) + stdout=output, close_fds=True) except Exception, e: self.log.error(self.tid, "Error: Mencoder: %s" % e) return False