edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching·0 forks·Rust·370.3 MiB·9b67700·Tahinli·3 days ago·4021 commits
| 1 | # Edith findings relevant to edith_codecs — 2026-09-19 |
| 2 | |
| 3 | From a four-bug fix batch in edith (user-reported import/audio/export defects). |
| 4 | Verdict from all three investigations: **no ec-* codec crate is defective.** The |
| 5 | bugs were edith-side: extension routing, audio-session state, VA-API plugin NAL |
| 6 | framing, container metadata. ec-h264 and ec-aac decoded every test input |
| 7 | correctly (sink output matched ffmpeg volume to 0.1 dB). |
| 8 | |
| 9 | ## Knowledge items (not bugs, no action required) |
| 10 | |
| 11 | 1. **ec-mp4 does not read the tkhd display matrix** (`crates/ec-mp4/src/demux.rs`, |
| 12 | `b"tkhd"` arm in `read_trak`, ~line 326 reads only the trailing display size). |
| 13 | edith worked around this by reading the matrix through the vendored `mp4` |
| 14 | crate. If ec-mp4 should know rotation, the change is additive: parse the 3x3 |
| 15 | matrix in the tkhd arm and surface a `rotation` field on |
| 16 | `ec_core::registry::StreamInfo` (~14 literal sites). Deferred — cross-repo |
| 17 | public-API change, no consumer needs it today. |
| 18 | |
| 19 | 2. **edith builds symphonia's mp3 bundle without `mp1`/`mp2` features**, so |
| 20 | MPEG audio layer I/II files are refused ("unsupported audio codec"). This is |
| 21 | an edith Cargo-feature question, not an ec-* matter; noted here only because |
| 22 | it is the one audio-codec gap found during the batch. |
| 23 | |
| 24 | ## Context (what was fixed in edith) |
| 25 | |
| 26 | - `.mpeg`/`.mpg` (mp3 with embedded cover) now routes to the audio import path. |
| 27 | - Timeline audio no longer pins to the first imported source; a sounding file |
| 28 | can join a session that started silent (add/remove/add sequence fixed). |
| 29 | - VA-API plugin (`crates/engine-hw`) no longer dies on H.264 samples with |
| 30 | trailing `cabac_zero_word` zero bytes (Android MediaCodec output); export |
| 31 | falls back to ec-h264 software decode if hw fails before the first frame. |
| 32 | - 90°/180°/270° display-matrix rotation is now honored in preview and export |
| 33 | (baked into pixels); other angles refused by name. |