[transmageddon] Small cleanups, we don't decode subtitles now for instance
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon] Small cleanups, we don't decode subtitles now for instance
- Date: Fri, 29 Nov 2013 12:53:32 +0000 (UTC)
commit 4f02bf4773cddd16cc8ddcee4d60dd02ff6542cd
Author: Christian Fredrik Kalager Schaller <uraeus linuxrising org>
Date: Fri Nov 29 13:53:09 2013 +0100
Small cleanups, we don't decode subtitles now for instance
src/transcoder_engine.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index 4796492..9dcf8ef 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -373,14 +373,10 @@ class Transcoder(GObject.GObject):
# bother with the video pad.
c = origin.to_string()
if not c.startswith("text/"):
- print("not text")
if not (c.startswith("video/") and (self.videodata[0]['outputvideocaps'] == False)):
- print("output is not false")
if self.passcounter == int(0):
if not c.startswith("audio/"):
- print("not audio")
self.sinkpad = self.encodebin.emit("request-pad", origin)
- print("got sinkpad" + str(self.sinkpad))
if c.startswith("audio/"):
if self.passcounter == int(0):
src_pad.add_probe(Gst.PadProbeType.EVENT_DOWNSTREAM, self.padprobe, None)
@@ -412,6 +408,9 @@ class Transcoder(GObject.GObject):
if streamid ==self.videodata[0]['streamid']:
if self.videodata[0]['dopassthrough'] == True:
self.remuxreturnvalue = False
+ capsvalue=caps.to_string()
+ if capsvalue.startswith("subtitle/"): # this is to avoid wasting resources on decoding subtitles
+ self.remuxreturnvalue =False
if self.remuxreturnvalue == False:
return False
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]