diff options
author | Daniel Drake <dsd@laptop.org> | 2010-05-06 20:55:25 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2010-05-06 20:55:25 (GMT) |
commit | a9432aeadf5c0bb33947990aee4d89a761008021 (patch) | |
tree | 2dc0996380953e70fd024921b5f6b8b921a6d8b4 /glive.py | |
parent | de73b9176a06040cb679dedbac6084dfe5bf047e (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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |