OUT-2: Opus (CELT) encoder (effectcraft-opusenc)

New L0 crate effectcraft-opusenc: clean-room RFC 6716 CELT-only encoder
(fullband 48 kHz, 20 ms packets, mono/stereo as dual L/R stereo, constant
packet size from the bitrate) with the RFC 7845 OpusHead and pre-skip.
Forward low-overlap MDCT, inter/intra coarse energy, fine/final energy,
the decoder's exact allocation, recursive band splitting, PVQ search and
codeword indexing, silence frames.

crates/export depends on it; filmcraft-opus (dev) is the round-trip oracle
in tests/opus_roundtrip.rs, with ffmpeg reading an in-test Ogg Opus file
as a second oracle when installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-02 21:41:29 -04:00
co-authored by Claude Opus 5.5
parent e911cc5c93
commit b936ed0055
15 changed files with 2911 additions and 0 deletions
Generated
+6
View File
@@ -1218,6 +1218,7 @@ version = "0.1.0"
dependencies = [
"effectcraft-color",
"effectcraft-media",
"effectcraft-opusenc",
"effectcraft-project",
"effectcraft-raster",
"effectcraft-render",
@@ -1225,6 +1226,7 @@ dependencies = [
"filmcraft-aac",
"filmcraft-h264enc",
"filmcraft-isobmff",
"filmcraft-opus",
"filmcraft-prores",
"gif",
"image",
@@ -1338,6 +1340,10 @@ dependencies = [
"thiserror 2.0.21",
]
[[package]]
name = "effectcraft-opusenc"
version = "0.1.0"
[[package]]
name = "effectcraft-path"
version = "0.1.0"