{"id":15495675,"url":"https://github.com/probablykasper/redlux","last_synced_at":"2025-04-22T21:04:53.270Z","repository":{"id":42445471,"uuid":"334543387","full_name":"probablykasper/redlux","owner":"probablykasper","description":"AAC decoder for MPEG-4 and AAC files, with rodio support","archived":false,"fork":false,"pushed_at":"2024-02-15T06:32:15.000Z","size":309,"stargazers_count":18,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T21:02:49.393Z","etag":null,"topics":["aac","audio","decoder","mp4","package"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/probablykasper.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-31T00:45:32.000Z","updated_at":"2024-07-07T11:42:05.000Z","dependencies_parsed_at":"2023-02-18T15:15:48.067Z","dependency_job_id":"dfb91621-960e-4cad-b57f-622c69efc986","html_url":"https://github.com/probablykasper/redlux","commit_stats":{"total_commits":27,"total_committers":3,"mean_commits":9.0,"dds":"0.11111111111111116","last_synced_commit":"dff0730086eef7ba40215637657aa10c788a3bcb"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probablykasper%2Fredlux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probablykasper%2Fredlux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probablykasper%2Fredlux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probablykasper%2Fredlux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/probablykasper","download_url":"https://codeload.github.com/probablykasper/redlux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250324687,"owners_count":21411943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aac","audio","decoder","mp4","package"],"created_at":"2024-10-02T08:18:29.525Z","updated_at":"2025-04-22T21:04:53.246Z","avatar_url":"https://github.com/probablykasper.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redlux\n\n[![Crates.io](https://img.shields.io/crates/v/redlux.svg)](https://crates.io/crates/redlux)\n[![Documentation](https://docs.rs/redlux/badge.svg)](https://docs.rs/redlux)\n\nAAC decoder for MPEG-4 (MP4, M4A etc) and AAC files, with rodio support\n\nReads MPEG-4 containers using [rust-mp4](https://crates.io/crates/mp4), and then constructs ADTS headers for it. Decodes AAC to PCM using [fdk-aac c-bindings](https://crates.io/crates/fdk-aac). Check the examples for usage with [rodio](https://crates.io/crates/rodio).\n\nSupports AAC-LC, HE-AAC v1 (SBR) and HE-AAC v2 (PS).\n\n## Caveats\nWould appreciate any help with figuring these out:\n1. It only decodes the first AAC track it finds in an MPEG-4 container.\n2. MPEG files with CRC are probably not supported.\n3. According to [this MultimediaWiki page](https://wiki.multimedia.cx/index.php/ADTS), 13 bits of the ADTS header is for specifying the frame length, and this number must include the ADTS header itself. For 8 channel audio, I would assume the frame length could be 8192 bytes, and if we add the header bytes on top of that, it would exceed what 13 bits can carry. Is this a potential issue?\n4. Not sure about the licensing situation. Is fdk-aac free to use? Are AAC patent licenses needed?\n\n## Dev instructions\n\n### Get started\n\nInstall [Rust](https://www.rust-lang.org).\n\nRun tests:\n```\ncargo test\n```\n\nBuild:\n```\ncargo build\n```\n\n### Releasing a new version\n\n1. Update `CHANGELOG.md`\n2. Bump the version number in `Cargo.toml`\n3. Run `cargo test`\n4. Run `cargo publish`\n5. Create a git tag in format `v#.#.#`\n6. Create GitHub release with release notes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobablykasper%2Fredlux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprobablykasper%2Fredlux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobablykasper%2Fredlux/lists"}