From fc06b758a767c52dedfba77773d00a73a8c0f118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 9 Aug 2026 06:24:07 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20add=20A/V=20test=20fixt?= =?UTF-8?q?ure=20to=20gen=5Ffixtures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stereo AAC with distinct L/R frequencies (440/880 Hz) so channel mapping mistakes are audible; 1 Hz volume pulse makes A/V drift visible against the burned-in frame counter. --- scripts/gen_fixtures.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/gen_fixtures.sh b/scripts/gen_fixtures.sh index 87ca78e..3f034db 100755 --- a/scripts/gen_fixtures.sh +++ b/scripts/gen_fixtures.sh @@ -8,4 +8,12 @@ ffmpeg -y -f lavfi -i testsrc2=size=1280x720:rate=30:duration=5 \ -c:v libx264 -profile:v baseline -pix_fmt yuv420p assets/test_baseline.mp4 ffmpeg -y -f lavfi -i testsrc2=size=1280x720:rate=30:duration=5 \ -c:v libx264 -profile:v high -pix_fmt yuv420p assets/test_high.mp4 +# A/V fixture: video + stereo AAC. Left channel 440 Hz, right 880 Hz, so +# channel mapping mistakes are audible; 1 Hz volume pulse makes drift visible. +ffmpeg -y -f lavfi -i testsrc2=size=1280x720:rate=30:duration=5 \ + -f lavfi -i "sine=frequency=440:duration=5" \ + -f lavfi -i "sine=frequency=880:duration=5" \ + -filter_complex "[1:a][2:a]join=inputs=2:channel_layout=stereo,volume='0.5+0.5*sin(2*PI*t)':eval=frame[a]" \ + -map 0:v -map "[a]" -c:v libx264 -profile:v baseline -pix_fmt yuv420p \ + -c:a aac -b:a 128k assets/test_av.mp4 echo "fixtures written to assets/"