# HG changeset patch # User renatofilho # Date 1177623325 -3600 # Node ID 4b0b8c58b532295f9ced64fed0d73eaf31a072ce # Parent a3252ef8e61bb67556436bc3bd8f4535afd36251 [svn r608] fixed bugs on gmencoder diff -r a3252ef8e61b -r 4b0b8c58b532 gmyth-stream/server/0.2/plugins/transcoders/gmencoder.py --- a/gmyth-stream/server/0.2/plugins/transcoders/gmencoder.py Thu Apr 26 22:34:37 2007 +0100 +++ b/gmyth-stream/server/0.2/plugins/transcoders/gmencoder.py Thu Apr 26 22:35:25 2007 +0100 @@ -27,23 +27,19 @@ def _parser_params (self): self._insert_param("-i", \ "%s://%s" % (self.params_first("uri_prefix", "file"), self.params_first("uri_path", ""))) - - #self._insert_param("-i", self.params_first("uri", "")) - self._insert_param("--video-encode", self.params_first("ve", "")) self._insert_param("--video-opts", "bitrate=200,pass=2,quantizer=5") self._insert_param("--video-fps", self.params_first("fps", "")) self._insert_param("--video-width", self.params_first("width", "")) self._insert_param("--video-height", self.params_first("height", "")) + self._insert_param("--audio-rate", "32000") self._insert_param("--audio-encode", self.params_first("ae", "")) - self._insert_param("--output-element", "fdsink") # _parse_params def start(self, outfd): self.opts.append (self.gmencoder_path) self._parser_params () - self.opts.append ("--output-opts") - self.opts.append ("fd=%d" % outfd.fileno()) + self._insert_param ("-o", "fd://%d" % outfd.fileno()) cmd = " ".join(self.opts) self.log.info ("GMencoder: %s", cmd)