forge
Explore
Log in

Don't you dare go Hollow

Fixtures for multi-file import (test_av2, test_mismatch)

Browse files at this commit

e994c12ade83a52c5798ff54a15daaa5b1610385Ahmet Kaan GümüşParent: f973b71
  • chore
    • fixtures for multi-file import (test_av2, test_mismatch)
Show full message
🔧 chore: fixtures for multi-file import (test_av2, test_mismatch)
scripts/gen_fixtures.shmodified+13 -0
@@ -16,4 +16,17 @@ ffmpeg -y -f lavfi -i testsrc2=size=1280x720:rate=30:duration=5 \
1616 -filter_complex "[1:a][2:a]join=inputs=2:channel_layout=stereo,volume='0.5+0.5*sin(2*PI*t)':eval=frame[a]" \
1717 -map 0:v -map "[a]" -c:v libx264 -profile:v baseline -pix_fmt yuv420p \
1818 -c:a aac -b:a 128k assets/test_av.mp4
19+# Second A/V fixture for multi-file import: same properties as test_av.mp4
20+# (1280x720@30 baseline, AAC-LC 44.1k stereo) but plainly different content —
21+# testsrc pattern, 4 s, an octave up (660/1320 Hz) with the same 1 Hz pulse.
22+ffmpeg -y -f lavfi -i testsrc=size=1280x720:rate=30:duration=4 \
23+ -f lavfi -i "sine=frequency=660:duration=4" \
24+ -f lavfi -i "sine=frequency=1320:duration=4" \
25+ -filter_complex "[1:a][2:a]join=inputs=2:channel_layout=stereo,volume='0.5+0.5*sin(2*PI*t)':eval=frame[a]" \
26+ -map 0:v -map "[a]" -c:v libx264 -profile:v baseline -pix_fmt yuv420p \
27+ -c:a aac -b:a 128k assets/test_av2.mp4
28+# Mismatch fixture: different resolution and no audio track at all, so import
29+# has something concrete to refuse.
30+ffmpeg -y -f lavfi -i testsrc2=size=640x360:rate=30:duration=2 \
31+ -an -c:v libx264 -profile:v baseline -pix_fmt yuv420p assets/test_mismatch.mp4
1932 echo "fixtures written to assets/"