From 1944b3ce8e7c26ee6d7dcc7798e5678f55197be7 Mon Sep 17 00:00:00 2001 From: DevBench Date: Fri, 6 Feb 2026 01:14:43 +0000 Subject: [PATCH] DAB: add 1MB pipe buffer (mbuffer) between dablin and ffmpeg to smooth dropouts --- Dockerfile.hotfix | 2 +- owrx/dab/dablin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.hotfix b/Dockerfile.hotfix index 3a7ac807..815ef604 100644 --- a/Dockerfile.hotfix +++ b/Dockerfile.hotfix @@ -17,7 +17,7 @@ FROM jketterl/openwebrx:latest # Install sox and runtime deps for dablin # libfaad2 is required. libmpg123-0 is likely required for new dablin. -RUN apt-get update && apt-get install -y sox ffmpeg libfaad2 libmpg123-0 libsdl2-2.0-0 && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y sox ffmpeg mbuffer libfaad2 libmpg123-0 libsdl2-2.0-0 && rm -rf /var/lib/apt/lists/* # Copy new dablin binary COPY --from=builder /src/dablin/build/src/dablin /usr/local/bin/dablin diff --git a/owrx/dab/dablin.py b/owrx/dab/dablin.py index 35cc7f2d..17d11c17 100644 --- a/owrx/dab/dablin.py +++ b/owrx/dab/dablin.py @@ -12,7 +12,7 @@ class DablinModule(ExecModule): ) def _buildArgs(self): - return ["bash", "-c", "dablin -u -s {:#06x} | ffmpeg -v error -i pipe:0 -f f32le -ar 48000 -ac 1 pipe:1".format(self.serviceId)] + return ["bash", "-c", "dablin -u -s {:#06x} | mbuffer -q -m 1M | ffmpeg -v error -i pipe:0 -f f32le -ar 48000 -ac 1 pipe:1".format(self.serviceId)] def setDabServiceId(self, serviceId: int) -> None: self.serviceId = serviceId