Fixtures for multi-file import (test_av2, test_mismatch)
Browse files at this commite994c12ade83a52c5798ff54a15daaa5b1610385Parent: f973b71- chore
- fixtures for multi-file import (test_av2, test_mismatch)
1 changed file +13 -0
- scripts/gen_fixtures.sh +13 -0
scripts/gen_fixtures.shmodified+13 -0
| @@ -16,4 +16,17 @@ ffmpeg -y -f lavfi -i testsrc2=size=1280x720:rate=30:duration=5 \ | ||
| 16 | 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 | 17 | -map 0:v -map "[a]" -c:v libx264 -profile:v baseline -pix_fmt yuv420p \ |
| 18 | 18 | -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 | |
| 19 | 32 | echo "fixtures written to assets/" |