r6211 - flumotion/branches/wizard-pluggable-http-consumers/flumotion/wizard

flumotion-commit at lists.fluendo.com flumotion-commit at lists.fluendo.com
Wed Feb 13 11:22:14 CET 2008


Author: jdahlin
Date: Wed Feb 13 11:22:14 2008
New Revision: 6211

Log:
Export the muxer/audio/encoding format selected

Modified:
   flumotion/branches/wizard-pluggable-http-consumers/flumotion/wizard/conversionsteps.py

Modified: flumotion/branches/wizard-pluggable-http-consumers/flumotion/wizard/conversionsteps.py
==============================================================================
--- flumotion/branches/wizard-pluggable-http-consumers/flumotion/wizard/conversionsteps.py	(original)
+++ flumotion/branches/wizard-pluggable-http-consumers/flumotion/wizard/conversionsteps.py	Wed Feb 13 11:22:14 2008
@@ -81,6 +81,32 @@
         entry = self.muxer.get_selected()
         return entry.component_type
 
+    def get_muxer_format(self):
+        """Returns the format of the muxer, such as "ogg".
+        @returns: the muxer format
+        @rtype: string
+        """
+        entry = self.muxer.get_selected()
+        return entry.getProvidedMediaTypes()[0]
+
+    def get_audio_format(self):
+        """Returns the format of the audio encoder, such as "vorbis"
+        @returns: the audio format
+        @rtype: string
+        """
+        if self._audio_encoder:
+            entry = self.audio.get_selected()
+            return entry.getProvidedMediaTypes()[0]
+
+    def get_video_format(self):
+        """Returns the format of the video encoder, such as "theora"
+        @returns: the video format
+        @rtype: string
+        """
+        if self._video_encoder:
+            entry = self.video.get_selected()
+            return entry.getProvidedMediaTypes()[0]
+
     # WizardStep
 
     def get_next(self):


More information about the flumotion-commit mailing list