From fb2aef9b44d87c41765a51f54f5f382378ec44da Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Tue, 1 Sep 2026 21:42:48 -0400 Subject: [PATCH] =?UTF-8?q?rig:=20drop=20first=5Fpts=3D0=20=E2=80=94=20it?= =?UTF-8?q?=20made=20AV=5FOFFSET=20inert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit aresample first_pts=0 rebased the audio timeline to zero, cancelling both the wallclock alignment and the itsoffset shift, so the sync correction never reached the stream (audio stayed ~68ms early). Chain is aresample=async=1 now; measured baseline −68ms → AV_OFFSET bumped to 0.068 in both station envs and confirmed live in the encoder args. Claude-Session: https://claude.ai/code/session_01EaVptJ3ZhyeQ9ZZZNcp55T --- toolchain/tv/rig.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain/tv/rig.sh b/toolchain/tv/rig.sh index 754ed0c8fc..b401fb3b48 100755 --- a/toolchain/tv/rig.sh +++ b/toolchain/tv/rig.sh @@ -121,7 +121,7 @@ exec ffmpeg -hide_banner -loglevel warning \ -thread_queue_size 1024 -use_wallclock_as_timestamps 1 \ -itsoffset "${AV_OFFSET:-0}" -f pulse -fragment_size 1024 -i "${SINK}.monitor" \ $SCALE_ARGS \ - -af "aresample=async=1:first_pts=0" \ + -af "aresample=async=1" \ -fps_mode cfr \ -c:v libx264 -preset veryfast -tune zerolatency -pix_fmt yuv420p \ -b:v "$VBITRATE" -maxrate "$VBITRATE" -bufsize 9000k \ -- 2.51.2