gmyth-stream/server/0.3/lib/transcoder.py
branchtrunk
changeset 814 8a6b143057d7
parent 718 3fbcd3d9b2d1
     1.1 --- a/gmyth-stream/server/0.3/lib/transcoder.py	Tue May 29 21:24:48 2007 +0100
     1.2 +++ b/gmyth-stream/server/0.3/lib/transcoder.py	Tue Aug 21 16:02:24 2007 +0100
     1.3 @@ -20,7 +20,6 @@
     1.4          self.params = params
     1.5      # __init__()
     1.6  
     1.7 -
     1.8      def params_first(self, key, default=None):
     1.9          if default is None:
    1.10              return self.params[key][0]
    1.11 @@ -31,26 +30,25 @@
    1.12                  return default
    1.13      # params_first()
    1.14  
    1.15 -
    1.16      def get_mimetype(self):
    1.17 -        mux = self.params_first("mux", "mpg")
    1.18 -
    1.19 -        if mux == "mpeg":
    1.20 -            return "video/mpeg"
    1.21 -        elif mux == "avi":
    1.22 -            return "video/x-msvideo"
    1.23 -        else:
    1.24 -            return "application/octet-stream"
    1.25 +        return "application/octet-stream"
    1.26      # get_mimetype()
    1.27  
    1.28      def start(self, outfile):
    1.29 -        return True
    1.30 +        pass
    1.31      # start()
    1.32  
    1.33 +    def stop(self):
    1.34 +        pass
    1.35 +    # stop()
    1.36  
    1.37 -    def stop(self):
    1.38 -        return True
    1.39 -    # stop()
    1.40 +    def get_legth (self):
    1.41 +        pass
    1.42 +    # get_leght ()
    1.43 +
    1.44 +    def get_progress (self):
    1.45 +        pass
    1.46 +    # get_progress ()
    1.47  
    1.48      def __str__(self):
    1.49          return '%s: %s( params=%s ) - Status: %s%%' % \