# HG changeset patch # User morphbr # Date 1180707874 -3600 # Node ID 293e6c9546e5ad4d726b0b23965056f1cefa9b69 # Parent fe8df7fd5229b8bc435eaf7de7408db026d2b6f7 [svn r744] one more test for tv 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