diff -r 5c5cff842d57 -r 65eaca328e22 gmyth-stream/server/0.2/plugins/transcoders/gmencoder.py --- a/gmyth-stream/server/0.2/plugins/transcoders/gmencoder.py Wed Apr 25 15:53:19 2007 +0100 +++ b/gmyth-stream/server/0.2/plugins/transcoders/gmencoder.py Tue May 08 14:54:37 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)