[transmageddon] Fix video only encoding fully
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon] Fix video only encoding fully
- Date: Mon, 3 Nov 2014 02:18:07 +0000 (UTC)
commit e22133094e9bca7c46d01cd0a7a6e38f1f6fc085
Author: Christian Fredrik Kalager Schaller <uraeus linuxrising org>
Date: Sun Nov 2 21:17:46 2014 -0500
Fix video only encoding fully
src/transcoder_engine.py | 4 ++--
src/transmageddon.py | 4 +---
2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index 339ef71..4a18a24 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -95,7 +95,7 @@ class Transcoder(GObject.GObject):
if not (self.audiodata[x]['outputaudiocaps'].intersect(Gst.caps_from_string("audio/mpeg,
mpegversion=1, layer=3"))).is_empty():
self.streamdata['container']=Gst.caps_from_string("application/x-id3")
x=x+1
- else:
+ else:
self.encodebinprofile = GstPbutils.EncodingContainerProfile.new("containerformat", None ,
self.streamdata['container'], None)
# What to do if we are not doing video passthrough (we only support video inside a
@@ -420,7 +420,7 @@ class Transcoder(GObject.GObject):
if tagyes ==True:
taglistbob=Gst.TagList.new_empty()
taglistbob.add_value(Gst.TagMergeMode.APPEND, Gst.TAG_APPLICATION_NAME, "Transmageddon
transcoder")
- if self.audiodata[0]['languagecode'] != False:
+ if self.audiodata[0]['languagecode'] != False and self.audiodata[0]['outputaudiocaps'] !=
False:
if self.audiodata[0]['languagecode'] != None:
taglistbob.add_value(Gst.TagMergeMode.APPEND, Gst.TAG_LANGUAGE_CODE,
self.audiodata[0]['languagecode']) # FIXME: Currently only doing 1 stream
if self.audiodata[0]['language'] != False:
diff --git a/src/transmageddon.py b/src/transmageddon.py
index 97e5ea8..2703db0 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -1114,9 +1114,6 @@ class TransmageddonUI(Gtk.ApplicationWindow):
else: # No audio track(s) found
- print("hitting the else")
- #if self.houseclean==False:
- # print("setting sensitive false")
self.audiorows[0].set_sensitive(False)
# fill in with video
@@ -1141,6 +1138,7 @@ class TransmageddonUI(Gtk.ApplicationWindow):
self.videorows[0].append_text("xvid")
else:
self.videorows[0].append_text(GstPbutils.pb_utils_get_codec_description(c))
+ self.houseclean=False
self.videorows[0].set_sensitive(True)
self.videorows[0].set_active(0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]