[transmageddon] Re-enable remuxing



commit 83fa1e778ef8cf4cd1187697db81656127501968
Author: Christian Fredrik Kalager Schaller <christian schaller collabora co uk>
Date:   Sun May 29 14:29:46 2011 +0100

    Re-enable remuxing

 src/transcoder_engine.py |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index 8384210..c57e6d7 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -168,26 +168,26 @@ class Transcoder(gobject.GObject):
            self.colorspaceconversion.set_state(gst.STATE_PAUSED)
            self.videoflipper.set_state(gst.STATE_PAUSED)
 
-       #self.remuxcaps = gst.Caps()
-       #if self.audiopasstoggle:
-       #   self.remuxcaps.append(self.audiocaps)
-       #if self.videopasstoggle:
-       #   self.remuxcaps.append(self.videocaps)
-       #if self.audiopasstoggle and not self.videopasstoggle:
-       #   self.remuxcaps.append_structure(gst.Structure("video/x-raw-rgb"))
-       #   self.remuxcaps.append_structure(gst.Structure("video/x-raw-yuv"))
-       #if self.videopasstoggle and not self.audiopasstoggle:
-       #   self.remuxcaps.append_structure(gst.Structure("audio/x-raw-float"))
-       #   self.remuxcaps.append_structure(gst.Structure("audio/x-raw-int"))
-       #if self.videocaps=="novid":
-       #   if self.inputvideocaps != None:
-       #       self.remuxcaps.append(self.inputvideocaps)
-       #       self.remuxcaps.append_structure(gst.Structure("audio/x-raw-float"))
-       #       self.remuxcaps.append_structure(gst.Structure("audio/x-raw-int"))
-
-
-       #if (self.audiopasstoggle) or (self.videopasstoggle) or (self.videocaps=="novid"):
-       #    self.uridecoder.set_property("caps", self.remuxcaps)
+       self.remuxcaps = gst.Caps()
+       if self.audiopasstoggle:
+          self.remuxcaps.append(self.audiocaps)
+       if self.videopasstoggle:
+          self.remuxcaps.append(self.videocaps)
+       if self.audiopasstoggle and not self.videopasstoggle:
+          self.remuxcaps.append_structure(gst.Structure("video/x-raw-rgb"))
+          self.remuxcaps.append_structure(gst.Structure("video/x-raw-yuv"))
+       if self.videopasstoggle and not self.audiopasstoggle:
+          self.remuxcaps.append_structure(gst.Structure("audio/x-raw-float"))
+          self.remuxcaps.append_structure(gst.Structure("audio/x-raw-int"))
+       if self.videocaps=="novid":
+          if self.inputvideocaps != None:
+              self.remuxcaps.append(self.inputvideocaps)
+              self.remuxcaps.append_structure(gst.Structure("audio/x-raw-float"))
+              self.remuxcaps.append_structure(gst.Structure("audio/x-raw-int"))
+
+
+       if (self.audiopasstoggle) or (self.videopasstoggle) or (self.videocaps=="novid"):
+           self.uridecoder.set_property("caps", self.remuxcaps)
  
        self.pipeline.add(self.uridecoder)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]