pitivi r1315 - in trunk: . pitivi



Author: edwardrv
Date: Sat Oct 11 11:53:28 2008
New Revision: 1315
URL: http://svn.gnome.org/viewvc/pitivi?rev=1315&view=rev

Log:
	* pitivi/settings.py:
	Filter out muxers for which we can't sink audio or video.
	Fixes #547095

Modified:
   trunk/ChangeLog
   trunk/pitivi/settings.py

Modified: trunk/pitivi/settings.py
==============================================================================
--- trunk/pitivi/settings.py	(original)
+++ trunk/pitivi/settings.py	Sat Oct 11 11:53:28 2008
@@ -164,6 +164,7 @@
         self.muxers = available_muxers()
         self.vencoders = available_video_encoders()
         self.aencoders = available_audio_encoders()
+        self.muxers = available_combinations(self.muxers, self.vencoders, self.aencoders)
 
     def __str__(self):
         msg = _("Export Settings\n")
@@ -389,3 +390,11 @@
 def muxer_can_sink_raw_video(muxer):
     return my_can_sink_caps(muxer, gst.Caps("video/x-raw-yuv;video/x-raw-rgb"))
 
+def available_combinations(muxers, vencoders, aencoders):
+    res = []
+    for mux in muxers:
+        noaudio = (encoders_muxer_compatible(aencoders, mux) == []) and not muxer_can_sink_raw_audio(mux)
+        novideo = (encoders_muxer_compatible(vencoders, mux) == []) and not muxer_can_sink_raw_video(mux)
+        if (noaudio == False) and (novideo == False):
+            res.append(mux)
+    return res



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