From d136eddbc773923fba9e6ce63cb8f8da84e2eddb Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 7 Aug 2016 16:10:42 +0200 Subject: raise the buffer-limit for mix_out to 10000 buffers and make this configurable --- voctocore/lib/avrawoutput.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'voctocore/lib') diff --git a/voctocore/lib/avrawoutput.py b/voctocore/lib/avrawoutput.py index 4603c30..5523a66 100644 --- a/voctocore/lib/avrawoutput.py +++ b/voctocore/lib/avrawoutput.py @@ -30,13 +30,17 @@ class AVRawOutput(TCPMultiConnection): multifdsink blocksize=1048576 - buffers-max=500 + buffers-max={buffers_max} sync-method=next-keyframe name=fd """.format( channel=self.channel, acaps=Config.get('mix', 'audiocaps'), - vcaps=Config.get('mix', 'videocaps') + vcaps=Config.get('mix', 'videocaps'), + buffers_max= + Config.get('output-buffers', channel) + if Config.has_option('output-buffers', channel) + else 500, ) self.log.debug('Creating Output-Pipeline:\n%s', pipeline) self.outputPipeline = Gst.parse_launch(pipeline) -- cgit v1.2.3