This is an mp4 track metadata parser.
Our primary interest is writing a pure-rust replacement for the track metadata parser needed by Firefox.
mp4parse
is a parser for ISO base media file format (mp4) written in rust.
mp4parse-capi
is a C API that exposes the functionality of mp4parse
. The C
API is intended to wrap the rust parser. As such, features should primarily
be implemented in the rust parser and exposed via the C API, rather than the C
API implementing features on its own.
test_ffi
builds and links test_ffi/src/test.cc
into a small Rust test
harness in test_ffi/src/main.rs
that verifies the C API against the
generated mp4parse.h
.
Test coverage comes from several sources:
- Conventional tests exist in
mp4parse/src/lib.rs
andmp4parse_capi/src/lib.rs
as well as undermp4parse/tests
andmp4parse_capi/tests
. These tests can be run viacargo test
. - Examples are included under
mp4parse_capi/examples
. These programs should continue to build and run after changes are made. Note, these programs are not typically run bycargo test
, so manual verification is required.