From: Guillaume Pellerin Date: Thu, 13 Feb 2014 22:39:59 +0000 (+0100) Subject: GstEncoder : fix appsrc blocking against the new pipe streamer threading arch X-Git-Tag: 0.5.4~6^2~7 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3f5db9197df403999bbee6b822c0a8b660d9cf8f;p=timeside.git GstEncoder : fix appsrc blocking against the new pipe streamer threading arch --- diff --git a/tests/sandbox/test_lolevel_streaming_threaded.py b/tests/sandbox/test_lolevel_streaming_threaded.py index 2fa1451..c0bcffa 100644 --- a/tests/sandbox/test_lolevel_streaming_threaded.py +++ b/tests/sandbox/test_lolevel_streaming_threaded.py @@ -52,3 +52,7 @@ assert os.path.getsize(dest1) == os.path.getsize(dest2) # Appsink file is always 1 buffer longer than filesink # TODO : Try to transcode with a pure gstreamer pipe to see the file length # maybe appsink is fine but filesink not ? just to be checked + +# INFO : sweep.mp3 transcoded with pure gst from sweep.flac with the same parameters +# as in the timeside mp3 encoder gives 70535 bytes + diff --git a/timeside/encoder/core.py b/timeside/encoder/core.py index dac9286..d5e73d2 100644 --- a/timeside/encoder/core.py +++ b/timeside/encoder/core.py @@ -105,7 +105,7 @@ class GstEncoder(Processor): self.src.set_property("caps", srccaps) self.src.set_property('emit-signals', True) self.src.set_property('num-buffers', -1) - self.src.set_property('block', True) + self.src.set_property('block', False) self.src.set_property('do-timestamp', True) self.bus = self.pipeline.get_bus()