From 3f5db9197df403999bbee6b822c0a8b660d9cf8f Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 13 Feb 2014 23:39:59 +0100 Subject: [PATCH] GstEncoder : fix appsrc blocking against the new pipe streamer threading arch --- tests/sandbox/test_lolevel_streaming_threaded.py | 4 ++++ timeside/encoder/core.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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() -- 2.39.5