[transmageddon] Fix directory choice when outputting just audio from a video file
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon] Fix directory choice when outputting just audio from a video file
- Date: Sat, 15 Oct 2011 14:56:48 +0000 (UTC)
commit 8db22903c9906eabb284ff883b394193f9c0690f
Author: Christian Fredrik Kalager Schaller <christian schaller collabora co uk>
Date: Sat Oct 15 15:56:10 2011 +0100
Fix directory choice when outputting just audio from a video file
src/transmageddon.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/transmageddon.py b/src/transmageddon.py
index dd49d1c..099263a 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -552,6 +552,7 @@ class TransmageddonUI:
audiostreams.append( \
gst.pbutils.get_codec_description(inputaudiocaps[audiostreamcounter]))
audiotags.append(i.get_tags())
+ test=i.get_channels()
audiochannels.append(i.get_channels())
samplerate.append(i.get_sample_rate())
self.haveaudio=True
@@ -652,6 +653,7 @@ class TransmageddonUI:
if audiointersect == ("EMPTY"):
audiointersect = sourcecaps.intersect(self.audiodata['audiotype'])
if audiointersect != ("EMPTY"):
+ print "audiointersect is " + str(audiointersect)
self.asourcecaps = audiointersect
if videointersect != ("EMPTY"):
self.videopass=True
@@ -690,7 +692,7 @@ class TransmageddonUI:
def _start_transcoding(self):
filechoice = self.builder.get_object ("FileChooser").get_uri()
self.filename = self.builder.get_object ("FileChooser").get_filename()
- if self.havevideo:
+ if (self.havevideo and (self.VideoCodec != "novid")):
vheight = self.videodata['videoheight']
vwidth = self.videodata['videowidth']
ratenum = self.videodata['fratenum']
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]