[transmageddon] Finally actually fix multipass encoding, for real this time :)
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon] Finally actually fix multipass encoding, for real this time :)
- Date: Tue, 11 Sep 2012 20:34:14 +0000 (UTC)
commit af4d143b296279a5237c163a830add4780cb81ce
Author: Christian Fredrik Kalager Schaller <uraeus linuxrisin org>
Date: Tue Sep 11 22:33:50 2012 +0200
Finally actually fix multipass encoding, for real this time :)
src/transcoder_engine.py | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index abb314f..926c301 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -398,9 +398,12 @@ class Transcoder(GObject.GObject):
src_pad.link(sinkpad)
def SetCacheFileProperty(self, encodebin, element):
- print "element is " + str(element)
- # self.videoencoder.set_property("multipass-cache-file", self.cachefile)
- # self.videoencoder.set_property("multipass-cache-file", self.cachefile) #### NEEDS FIXING
+ factory=element.get_factory()
+ if factory != None:
+ if Gst.ElementFactory.list_is_type(factory, 2814749767106562):
+ print "we have a winner"
+ element.set_property("multipass-cache-file", self.cachefile)
+
# Grab element from encodebin which supports tagsetter interface and set app name
# to Transmageddon
#GstTagSetterType = GObject.type_from_name("GstTagSetter")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]