edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | #!/usr/bin/env bash |
| 2 | # gen-mp4-parity-corpus.sh: write the generated mp4/mov cases that the ec-mp4 parity |
| 3 | # test (crates/ec-mp4/tests/it/edith_parity.rs) compares against ffprobe. |
| 4 | # |
| 5 | # Usage: scripts/gen-mp4-parity-corpus.sh <out-dir> |
| 6 | # |
| 7 | # Each case isolates one thing the demuxer must read the way edith does: |
| 8 | # bframes.mp4 B-frames: ctts v0 offsets, a sample order that differs from display order |
| 9 | # negcts.mp4 negative composition offsets (ctts v1), -movflags negative_cts_offsets |
| 10 | # rot90.mp4 tkhd display matrix of a quarter turn (copied from tests/data) |
| 11 | # rot270.mp4 the other quarter turn (copied from tests/data) |
| 12 | # qt.mov QuickTime container (-f mov): mp4a in a sound description |
| 13 | # emptyedit.mp4 an audio track delayed by 0.5 s: an empty edit ahead of the media |
| 14 | # aac-prime.mp4 AAC audio alone: the encoder delay is an edit list (elst) of its own |
| 15 | # mp3.mp4 an mp4a entry carrying MP3 |
| 16 | # |
| 17 | # Needs ffmpeg with libx264. Output is deterministic for a given ffmpeg build. |
| 18 | |
| 19 | out= |
| 20 | here= |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | # The display matrices: stream copies of the committed rotation clips, whose tkhd |
| 30 | # matrix ffmpeg wrote with -display_rotation (crates/ec-mp4/tests/data/gen.sh). |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 |