1.1 --- a/gmyth-stream/server/0.3/plugins/transcoders/mencoder.py Tue Jun 26 14:32:33 2007 +0100
1.2 +++ b/gmyth-stream/server/0.3/plugins/transcoders/mencoder.py Sat Jun 30 14:16:59 2007 +0100
1.3 @@ -23,6 +23,8 @@
1.4
1.5 __all__ = ("TranscoderMencoder",)
1.6
1.7 +buffer_size = 1024 * 64
1.8 +
1.9 class TranscoderMencoder(transcoder.Transcoder):
1.10 """Transcoder class that implements a transcoder using Mencoder"""
1.11 mencoder_path = utils.which("mencoder")
1.12 @@ -118,8 +120,6 @@
1.13 self._arg_append(args, "-slang %s" % self.args["subtitle"])
1.14 self._arg_append(args, "-subfps %s" % self.args["fps"])
1.15
1.16 - self._arg_append(args, "-idx")
1.17 - self._arg_append(args, "-cache 1024")
1.18 self._arg_append(args, self._setup_audio())
1.19 self._arg_append(args, self._setup_video())
1.20
1.21 @@ -198,7 +198,7 @@
1.22 try:
1.23 return open(self.args["outfile"])
1.24 except:
1.25 - os.write(stdw, _stdin.read(1024))
1.26 + os.write(stdw, _stdin.read(buffer_size))
1.27 # _check_opened_file
1.28
1.29
1.30 @@ -262,7 +262,7 @@
1.31
1.32 try:
1.33 while self.proc and self.proc.poll() == None:
1.34 - d = self.proc.stdout.read(1024)
1.35 + d = self.proc.stdout.read(buffer_size)
1.36 outfd.write(d)
1.37 except Exception, e:
1.38 self.log.error(self.tid, "Error: %s" % e)