mp4e-1.0.2 has been yanked.
mp4e
A simple MP4 muxer library for pure Rust.
Introduction
mp4e is a simple MP4 muxing library that allows you to create standard MP4 files and fragmented MP4 (fMP4) files. It supports both H.264/AVC and H.265/HEVC video codecs as well as AAC and Opus audio codecs.
Implementation Reference
This library's implementation is partially inspired by minimp4.
License
This project is licensed under the MIT License.
Usage Examples
Add this to your Cargo.toml:
[]
= "1.0"
Creating a Standard MP4 File
use File;
use BufWriter;
use ;
Creating a Fragmented MP4 File (fMP4)
use File;
use BufWriter;
use ;
Supported Codecs
Video Codecs
- H.264/AVC
- H.265/HEVC
Limitations
The current version of mp4e only supports the following track configuration:
- Up to 1 video track
- Up to 1 audio track (optional)
Audio Codecs
- AAC-LC
- AAC-Main
- AAC-SSR
- AAC-LTP
- HE-AAC
- HE-AAC-v2
- Opus