edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiB2e2ed69Tahinli3 months ago69 commits
| 1 | #!/usr/bin/env bash |
| 2 | # Regenerates the gitignored test fixtures under assets/. |
| 3 | # Needs the ffmpeg CLI (dev tool only — the app itself never uses ffmpeg). |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 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 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 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 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | # Multi-audio fixture: one video and three audio streams, so stream selection |
| 29 | # has something to select. Stream 0 is AAC 44.1k stereo (440 Hz left, 880 Hz |
| 30 | # right), stream 1 is AAC 22.05k mono 220 Hz tagged French — different rate, |
| 31 | # layout and content, so a test can tell which stream it was handed — and |
| 32 | # stream 2 is AC-3, the codec we cannot decode and must still list. |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | # Unsupported-audio fixture: an AC-3 track, which we cannot decode at all. The |
| 46 | # file plays as picture with silence, and the point is that it says so. |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | # Multi-language fixture: the shape real media has — one video and two AAC |
| 52 | # streams that *agree* on rate and layout (44.1k stereo) and differ only in |
| 53 | # language and content, 440/880 Hz undefined and 220/330 Hz French. One |
| 54 | # timeline means one set of audio parameters, so this is the file where the |
| 55 | # second stream can actually be put on the timeline; test_multiaudio.mp4 is the |
| 56 | # file where it cannot, and both cases have to be shown. |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | # Mismatch fixture: different resolution and no audio track at all, so import |
| 69 | # has something concrete to refuse. |
| 70 | |
| 71 | |
| 72 |