Add MPEG-4 Part 2 (ASP) video codec support #156
Open
wiedymi wants to merge 2 commits intoVanilagy:mainfrom
Open
Add MPEG-4 Part 2 (ASP) video codec support #156wiedymi wants to merge 2 commits intoVanilagy:mainfrom
wiedymi wants to merge 2 commits intoVanilagy:mainfrom
Conversation
10aecb2 to
8a229d8
Compare
Implements reading and writing of AVI (Audio Video Interleave) files, a RIFF-based container format. Features: - Full AVI demuxer with support for multiple video and audio codecs - AVI muxer with RF64 support for large files (>4GB) - Codec mapping for common fourCC codes (H.264, HEVC, VP8, VP9, AV1, etc.) - Audio codec support (AAC, MP3, Vorbis, FLAC, PCM variants, μ-law, A-law) - Index (idx1) generation for seeking - Proper timestamp and duration handling Files added: - src/avi/avi-demuxer.ts - AVI file parser - src/avi/avi-muxer.ts - AVI file writer - src/avi/avi-misc.ts - Codec mappings and utilities - src/avi/riff-writer.ts - RIFF chunk writing utility Integration: - Added AviInputFormat and AviOutputFormat classes - Exported AVI singleton in ALL_FORMATS - Test suite with 7 tests covering format detection, muxing, and demuxing
Implements MPEG-4 Part 2 Advanced Simple Profile video codec using Xvid for encoding/decoding. Features: - Full MPEG-4 Part 2 ASP encoder and decoder - WASM-based implementation using Xvid library - Worker-based processing for non-blocking operation - Support across all containers (AVI, MP4, MOV, MKV) - VOP coding type detection for keyframe identification Package structure: - packages/mpeg4/ - Standalone codec package - Uses Emscripten-compiled Xvid for WebAssembly Codec integration: - Added 'mpeg4' to VIDEO_CODECS list - Codec string mapping (mp4v.20.9 for encoding, mp4v for extraction) - Packet type detection via VOP headers (0x000001B6) Container support: - AVI: XVID/DX50/FMP4/MP4V fourCC mapping - ISOBMFF (MP4/MOV): mp4v sample entry with esds box - Matroska: V_MPEG4/ISO/ASP codec string Tests: - 4 new test suites for AVI, MP4, MOV, MKV with mpeg4 samples - Total 8 tests validating mpeg4 codec support
8a229d8 to
e26fcce
Compare
Author
|
@Vanilagy I also rebased this one. But I will double check on everything later, it were done so long ago, so I am not sure anymore, lol |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Features:
Package structure:
Codec integration:
Container support:
Tests: