gmyth-stream/server/0.2/plugins/transcoders/gmencoder.py
branchtrunk
changeset 607 cd48d7f0ca59
parent 595 5c5cff842d57
child 672 4e623a4274a1
     1.1 --- a/gmyth-stream/server/0.2/plugins/transcoders/gmencoder.py	Wed Apr 25 15:53:19 2007 +0100
     1.2 +++ b/gmyth-stream/server/0.2/plugins/transcoders/gmencoder.py	Mon Apr 30 23:20:15 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)