[svn r608] fixed bugs on gmencoder trunk
authorrenatofilho
Thu Apr 26 22:35:25 2007 +0100 (2007-04-26)
branchtrunk
changeset 6024b0b8c58b532
parent 601 a3252ef8e61b
child 603 22964d32dcdb
[svn r608] fixed bugs on gmencoder
gmyth-stream/server/0.2/plugins/transcoders/gmencoder.py
     1.1 --- a/gmyth-stream/server/0.2/plugins/transcoders/gmencoder.py	Thu Apr 26 22:34:37 2007 +0100
     1.2 +++ b/gmyth-stream/server/0.2/plugins/transcoders/gmencoder.py	Thu Apr 26 22:35:25 2007 +0100
     1.3 @@ -27,23 +27,19 @@
     1.4      def _parser_params (self):
     1.5          self._insert_param("-i", \
     1.6              "%s://%s" % (self.params_first("uri_prefix", "file"), self.params_first("uri_path", "")))
     1.7 -
     1.8 -        #self._insert_param("-i", self.params_first("uri", ""))
     1.9 -
    1.10          self._insert_param("--video-encode", self.params_first("ve", ""))
    1.11          self._insert_param("--video-opts", "bitrate=200,pass=2,quantizer=5")
    1.12          self._insert_param("--video-fps", self.params_first("fps", ""))
    1.13          self._insert_param("--video-width", self.params_first("width", ""))
    1.14          self._insert_param("--video-height", self.params_first("height", ""))
    1.15 +        self._insert_param("--audio-rate", "32000")
    1.16          self._insert_param("--audio-encode", self.params_first("ae", ""))
    1.17 -        self._insert_param("--output-element", "fdsink")
    1.18      # _parse_params
    1.19  
    1.20      def start(self, outfd):
    1.21          self.opts.append (self.gmencoder_path)
    1.22          self._parser_params ()
    1.23 -        self.opts.append ("--output-opts")
    1.24 -        self.opts.append ("fd=%d" % outfd.fileno())
    1.25 +        self._insert_param ("-o", "fd://%d" % outfd.fileno())
    1.26  
    1.27          cmd = " ".join(self.opts)
    1.28          self.log.info ("GMencoder: %s", cmd)