[transmageddon] Fix issue with audio only encode
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon] Fix issue with audio only encode
- Date: Thu, 24 Apr 2014 10:00:31 +0000 (UTC)
commit 65fa2738d57a1c832f75545f87cc4e9f4059b498
Author: Christian Fredrik Kalager Schaller <uraeus linuxrising org>
Date: Thu Apr 24 12:00:14 2014 +0200
Fix issue with audio only encode
src/transcoder_engine.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index fa0a4b2..cff954e 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -128,10 +128,10 @@ class Transcoder(GObject.GObject):
x=0
while x < len(self.audiodata):
if self.audiodata[x]['outputaudiocaps'] != (False or "noaud"):
+ audiopreset=None
if self.streamdata['container']==False:
self.encodebinprofile = GstPbutils.EncodingAudioProfile.new
(self.audiodata[x]['outputaudiocaps'], audiopreset, Gst.Caps.new_any(), 0)
else:
- audiopreset=None
audioprofile = GstPbutils.EncodingAudioProfile.new(self.audiodata[x]['outputaudiocaps'],
audiopreset, Gst.Caps.new_any(), 0)
audioprofile.set_name("audioprofilename"+str(x))
self.encodebinprofile.add_profile(audioprofile)
@@ -425,6 +425,7 @@ class Transcoder(GObject.GObject):
#print("is audio encoder")
#taglist=Gst.TagList.new_empty()
if self.audiodata[0]['languagecode'] != 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:
taglistbob.add_value(Gst.TagMergeMode.APPEND, Gst.TAG_LANGUAGE_NAME,
self.audiodata[0]['language'])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]