Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/glive.py
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2010-05-06 20:55:25 (GMT)
committer Daniel Drake <dsd@laptop.org>2010-05-06 20:55:25 (GMT)
commita9432aeadf5c0bb33947990aee4d89a761008021 (patch)
tree2dc0996380953e70fd024921b5f6b8b921a6d8b4 /glive.py
parentde73b9176a06040cb679dedbac6084dfe5bf047e (diff)
Don't encode video twice
Speeds up saving, theoretically improves quality, and maybe even helps synchronization?
Diffstat (limited to 'glive.py')
-rw-r--r--glive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glive.py b/glive.py
index 87aff84..b864cba 100644
--- a/glive.py
+++ b/glive.py
@@ -478,7 +478,7 @@ class Glive:
wavFilepath = os.path.join(Instance.instancePath, "output.wav")
muxFilepath = os.path.join(Instance.instancePath, "mux.ogg") #ogv
- muxline = gst.parse_launch('filesrc location=' + str(oggFilepath) + ' name=muxVideoFilesrc ! oggdemux name=muxOggdemux ! theoradec name=muxTheoradec ! theoraenc name=muxTheoraenc ! oggmux name=muxOggmux ! filesink location=' + str(muxFilepath) + ' name=muxFilesink filesrc location=' + str(wavFilepath) + ' name=muxAudioFilesrc ! wavparse name=muxWavparse ! audioconvert name=muxAudioconvert ! vorbisenc name=muxVorbisenc ! muxOggmux.')
+ muxline = gst.parse_launch('filesrc location=' + str(oggFilepath) + ' name=muxVideoFilesrc ! oggdemux name=muxOggdemux ! theoraparse ! oggmux name=muxOggmux ! filesink location=' + str(muxFilepath) + ' name=muxFilesink filesrc location=' + str(wavFilepath) + ' name=muxAudioFilesrc ! wavparse name=muxWavparse ! audioconvert name=muxAudioconvert ! vorbisenc name=muxVorbisenc ! muxOggmux.')
taglist = self.getTags(Constants.TYPE_VIDEO)
vorbisEnc = muxline.get_by_name('muxVorbisenc')
vorbisEnc.merge_tags(taglist, gst.TAG_MERGE_REPLACE_ALL)