From dbe84010f35eed9ddac9103974111e448dae178a Mon Sep 17 00:00:00 2001 From: Janne Mareike Koschinski <mail@justjanne.de> Date: Wed, 8 Jan 2025 16:42:07 +0100 Subject: [PATCH] reduce playout latency --- scripts/playout-fb.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/playout-fb.sh b/scripts/playout-fb.sh index 1bd643f..52badb4 100755 --- a/scripts/playout-fb.sh +++ b/scripts/playout-fb.sh @@ -1,5 +1,4 @@ #!/bin/bash -#!/bin/sh port=$1 @@ -10,5 +9,11 @@ export SDL_AUDIODRIVER="alsa" export AUDIODEV="hdmi:CARD=PCH,DEV=0" ffplay \ -v verbose \ - -analyzeduration 1000 \ - -i tcp://localhost:${port} + -fflags nobuffer \ + -flags low_delay \ + -probesize 32 \ + -analyzeduration 50 \ + -framedrop \ + -f matroska \ + -i tcp://localhost:${port} \ + -vf "setpts=0" -- GitLab