Skip to content

feat: add MP4 (mp4a/mp4v) codec string support - #13

Merged
irbisadm merged 1 commit into
mainfrom
feat/mp4
Jul 14, 2026
Merged

feat: add MP4 (mp4a/mp4v) codec string support#13
irbisadm merged 1 commit into
mainfrom
feat/mp4

Conversation

@irbisadm

Copy link
Copy Markdown
Owner

Adds the RFC 6381 ObjectTypeIndication scheme (mp4a/mp4v), which covers a whole family of MPEG codecs with one parser: AAC (mp4a.40.2), MP3 (mp4a.69, mp4a.6B, mp4a.40.34), MPEG-4 Visual (mp4v.20.9), MPEG-2 video/audio, DTS, etc.

Format verified against RFC 6381 §3.3 (OTI = two hex digits, optional decimal third element) and the mp4ra object-type registry. Mp4Info decodes the OTI and AAC audio object types to names; output normalized to uppercase hex. 29 tests; full suite 254 passing.

feat: → minor bump (0.8.0).

Parse and generate the RFC 6381 ObjectTypeIndication codec strings shared by a whole family of MPEG codecs: mp4a.<OTI>[.<audio object type>] and mp4v.<OTI>[.<profile-level>], e.g. mp4a.40.2 (AAC-LC), mp4a.69/mp4a.6B (MP3), mp4v.20.9 (MPEG-4 Visual), mp4v.61 (MPEG-2 Video). OTI is normalized to two uppercase hex digits; the OTI and AAC audio object types are decoded to names in toHumanReadable(). Wired into codecInfoFactory via the mp4a/mp4v prefixes.
@irbisadm
irbisadm merged commit d73ef9f into main Jul 14, 2026
6 checks passed
@irbisadm
irbisadm deleted the feat/mp4 branch July 14, 2026 19:45
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant