[SCM] morituri/master: start with a one frame interval until we know more
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:10:14 UTC 2014
The following commit has been merged in the master branch:
commit fc282df8a6155dcac4fdb794e599ef02259a7c4c
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Thu Aug 29 19:50:03 2013 +0200
start with a one frame interval until we know more
if it's say four frames, we get to paused without eos, but then
hit eos without level message
diff --git a/morituri/common/encode.py b/morituri/common/encode.py
index 4dfdc32..27cce8f 100644
--- a/morituri/common/encode.py
+++ b/morituri/common/encode.py
@@ -179,14 +179,19 @@ class EncodeTask(ctask.GstPipelineTask):
cgstreamer.removeAudioParsers()
def getPipelineDesc(self):
+ # start with an emit interval of one frame, because we end up setting
+ # the final interval after paused and after processing some samples
+ # already, which is too late
+ interval = int(self.gst.SECOND / 75.0)
return '''
filesrc location="%s" !
decodebin name=decoder !
audio/x-raw-int,width=16,depth=16,channels=2 !
- level name=level !
+ level name=level interval=%d !
%s ! identity name=identity !
filesink location="%s" name=sink''' % (
gstreamer.quoteParse(self._inpath).encode('utf-8'),
+ interval,
self._profile.pipeline,
gstreamer.quoteParse(self._outpath).encode('utf-8'))
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list