diff -r 6620b7037407 -r 823dad73a2c2 gmyth-stream/server/0.3/plugins/transcoders/mencoder.py --- a/gmyth-stream/server/0.3/plugins/transcoders/mencoder.py Tue Jun 26 14:32:33 2007 +0100 +++ b/gmyth-stream/server/0.3/plugins/transcoders/mencoder.py Sat Jun 30 14:16:59 2007 +0100 @@ -23,6 +23,8 @@ __all__ = ("TranscoderMencoder",) +buffer_size = 1024 * 64 + class TranscoderMencoder(transcoder.Transcoder): """Transcoder class that implements a transcoder using Mencoder""" mencoder_path = utils.which("mencoder") @@ -118,8 +120,6 @@ self._arg_append(args, "-slang %s" % self.args["subtitle"]) self._arg_append(args, "-subfps %s" % self.args["fps"]) - self._arg_append(args, "-idx") - self._arg_append(args, "-cache 1024") self._arg_append(args, self._setup_audio()) self._arg_append(args, self._setup_video()) @@ -198,7 +198,7 @@ try: return open(self.args["outfile"]) except: - os.write(stdw, _stdin.read(1024)) + os.write(stdw, _stdin.read(buffer_size)) # _check_opened_file @@ -262,7 +262,7 @@ try: while self.proc and self.proc.poll() == None: - d = self.proc.stdout.read(1024) + d = self.proc.stdout.read(buffer_size) outfd.write(d) except Exception, e: self.log.error(self.tid, "Error: %s" % e)