Fix video only encoding fully

parent 09b3bd8b
......@@ -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:
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment