forge
Explore
Log in

Don't you dare go Hollow

Add A/V test fixture to gen_fixtures

Browse files at this commit

fc06b758a767c52dedfba77773d00a73a8c0f118Ahmet Kaan GümüşParent: 0acbf8d
  • chore
    • add A/V test fixture to gen_fixtures
Show full message
🔧 chore: add A/V test fixture to gen_fixtures

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.shmodified+8 -0
@@ -8,4 +8,12 @@ ffmpeg -y -f lavfi -i testsrc2=size=1280x720:rate=30:duration=5 \
8 -c:v libx264 -profile:v baseline -pix_fmt yuv420p assets/test_baseline.mp48 -c:v libx264 -profile:v baseline -pix_fmt yuv420p assets/test_baseline.mp4
9 ffmpeg -y -f lavfi -i testsrc2=size=1280x720:rate=30:duration=5 \9 ffmpeg -y -f lavfi -i testsrc2=size=1280x720:rate=30:duration=5 \
10 -c:v libx264 -profile:v high -pix_fmt yuv420p assets/test_high.mp410 -c:v libx264 -profile:v high -pix_fmt yuv420p assets/test_high.mp4
11+# A/V fixture: video + stereo AAC. Left channel 440 Hz, right 880 Hz, so
12+# channel mapping mistakes are audible; 1 Hz volume pulse makes drift visible.
13+ffmpeg -y -f lavfi -i testsrc2=size=1280x720:rate=30:duration=5 \
14+ -f lavfi -i "sine=frequency=440:duration=5" \
15+ -f lavfi -i "sine=frequency=880:duration=5" \
16+ -filter_complex "[1:a][2:a]join=inputs=2:channel_layout=stereo,volume='0.5+0.5*sin(2*PI*t)':eval=frame[a]" \
17+ -map 0:v -map "[a]" -c:v libx264 -profile:v baseline -pix_fmt yuv420p \
18+ -c:a aac -b:a 128k assets/test_av.mp4
11 echo "fixtures written to assets/"19 echo "fixtures written to assets/"