diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-12-14 04:03:14 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-12-14 04:03:14 (GMT) |
commit | f706c43145128d40f8c639059800fe7282abe063 (patch) | |
tree | 9be98c6f44599722a4469fd08349a9c03d23197d /glive.py | |
parent | 24abbc6129ac8b3b24eb30aa474fe5792239c817 (diff) |
46 has correct rainbow tmp directories
git-svn-id: http://mediamods.com/public-svn/camera-activity/tags/46@973 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'glive.py')
-rw-r--r-- | glive.py | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -171,11 +171,11 @@ class Glive: movieQueue = pipeline.get_by_name("movieQueue_"+n) movieFilesink = pipeline.get_by_name("movieFilesink_"+n) - movieFilepath = os.path.join(Instance.instancePath, "output.ogg" ) #ogv + movieFilepath = os.path.join(Instance.tmpPath, "output.ogg" ) #ogv movieFilesink.set_property("location", movieFilepath ) audioFilesink = pipeline.get_by_name('audioFilesink_'+n) - audioFilepath = os.path.join(Instance.instancePath, "output.wav") + audioFilepath = os.path.join(Instance.tmpPath, "output.wav") audioFilesink.set_property("location", audioFilepath ) audioTee = pipeline.get_by_name('audioTee_'+n) audioWavenc = pipeline.get_by_name('audioWavenc_'+n) @@ -207,7 +207,7 @@ class Glive: videoTee.unlink(picQueue) audioFilesink = pipeline.get_by_name('audioFilesink_'+n) - audioFilepath = os.path.join(Instance.instancePath, "output.wav") + audioFilepath = os.path.join(Instance.tmpPath, "output.wav") audioFilesink.set_property("location", audioFilepath ) elif (self._PIPETYPE == self.PIPETYPE_SUGAR_JHBUILD): @@ -243,7 +243,7 @@ class Glive: n = str(len(self.thumbPipes)-1) thumbline.get_by_name( "thumbFakesink_"+n ).disconnect( self.THUMB_HANDOFF ) - oggFilepath = os.path.join(Instance.instancePath, "output.ogg" ) #ogv + oggFilepath = os.path.join(Instance.tmpPath, "output.ogg" ) #ogv if (not os.path.exists(oggFilepath)): self.record = False self.ca.m.cannotSaveVideo() @@ -274,7 +274,7 @@ class Glive: def stoppedRecordingAudio( self ): record.Record.log.debug("stoppedRecordingAudio") if (self.audioPixbuf != None): - audioFilepath = os.path.join(Instance.instancePath, "output.wav")#self.el("audioFilesink").get_property("location") + audioFilepath = os.path.join(Instance.tmpPath, "output.wav")#self.el("audioFilesink").get_property("location") if (not os.path.exists(audioFilepath)): self.record = False self.audio = False @@ -302,7 +302,7 @@ class Glive: vorbisEnc.merge_tags(taglist, gst.TAG_MERGE_KEEP) audioFilesink = audioline.get_by_name('audioFilesink_'+n) - audioOggFilepath = os.path.join(Instance.instancePath, "output.ogg") + audioOggFilepath = os.path.join(Instance.tmpPath, "output.ogg") audioFilesink.set_property("location", audioOggFilepath ) record.Record.log.debug("post audioFilesink") @@ -401,13 +401,13 @@ class Glive: del pic self.thumbEl('thumbTee').unlink(self.thumbEl('thumbQueue')) - oggFilepath = os.path.join(Instance.instancePath, "output.ogg") #ogv + oggFilepath = os.path.join(Instance.tmpPath, "output.ogg") #ogv if (self.audio): self.ca.ui.setPostProcessPixBuf(self.thumbBuf) - wavFilepath = os.path.join(Instance.instancePath, "output.wav") - muxFilepath = os.path.join(Instance.instancePath, "mux.ogg") #ogv + wavFilepath = os.path.join(Instance.tmpPath, "output.wav") + muxFilepath = os.path.join(Instance.tmpPath, "mux.ogg") #ogv n = str(len(self.muxPipes)) muxline = gst.parse_launch('filesrc location=' + str(oggFilepath) + ' name=muxVideoFilesrc_'+n+' ! oggdemux name=muxOggdemux_'+n+' ! theoradec name=muxTheoradec_'+n+' ! theoraenc name=muxTheoraenc_'+n+' ! oggmux name=muxOggmux_'+n+' ! filesink location=' + str(muxFilepath) + ' name=muxFilesink_'+n+' filesrc location=' + str(wavFilepath) + ' name=muxAudioFilesrc_'+n+' ! wavparse name=muxWavparse_'+n+' ! audioconvert name=muxAudioconvert_'+n+' ! vorbisenc name=muxVorbisenc_'+n+' ! muxOggmux_'+n+'.') @@ -465,9 +465,9 @@ class Glive: pipe.get_bus().disable_sync_message_emission() pipe.get_bus().remove_signal_watch() - wavFilepath = os.path.join(Instance.instancePath, "output.wav") - oggFilepath = os.path.join(Instance.instancePath, "output.ogg") #ogv - muxFilepath = os.path.join(Instance.instancePath, "mux.ogg") #ogv + wavFilepath = os.path.join(Instance.tmpPath, "output.wav") + oggFilepath = os.path.join(Instance.tmpPath, "output.ogg") #ogv + muxFilepath = os.path.join(Instance.tmpPath, "mux.ogg") #ogv os.remove( wavFilepath ) os.remove( oggFilepath ) self.ca.m.saveVideo(self.thumbBuf, str(muxFilepath), self.VIDEO_WIDTH_SMALL, self.VIDEO_HEIGHT_SMALL) @@ -492,8 +492,8 @@ class Glive: pipe.get_bus().disable_sync_message_emission() pipe.get_bus().remove_signal_watch() - wavFilepath = os.path.join(Instance.instancePath, "output.wav") - oggFilepath = os.path.join(Instance.instancePath, "output.ogg") + wavFilepath = os.path.join(Instance.tmpPath, "output.wav") + oggFilepath = os.path.join(Instance.tmpPath, "output.ogg") os.remove( wavFilepath ) self.ca.m.saveAudio(oggFilepath, self.audioPixbuf) return False |