30 releases

0.10.1 Mar 23, 2018
0.9.1 Nov 27, 2017
0.8.0 Apr 6, 2017
0.7.1 Mar 7, 2017
0.0.9 Jul 1, 2015

#2 in Video

Download history 129/week @ 2018-09-18 164/week @ 2018-09-25 244/week @ 2018-10-02 264/week @ 2018-10-09 260/week @ 2018-10-16 66/week @ 2018-10-23 8/week @ 2018-10-30 171/week @ 2018-11-06 70/week @ 2018-11-13 69/week @ 2018-11-20 67/week @ 2018-11-27 267/week @ 2018-12-04 32/week @ 2018-12-11

603 downloads per month
Used in 4 crates

MPL-2.0 license

129KB
3K SLoC

This is an mp4 track metadata parser.

Latest crate version Travis build status

Our primary interest is writing a pure-rust replacement for the track metadata parser needed by Firefox.

API documentation

Project structure

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.

Tests

Test coverage comes from several sources:

  • Conventional tests exist in mp4parse/src/lib.rs and mp4parse_capi/src/lib.rs as well as under mp4parse/tests and mp4parse_capi/tests. These tests can be run via cargo 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 by cargo test, so manual verification is required. However, test.cc is used to test the foreign function interface via build_ffi_test.rs on non-Windows platforms and will be run by cargo test.
    • Examples with afl related names are for use with the american fuzzy lop fuzzer. These examples can be run without afl, but they can be built specifically to receive input from afl via by setting the fuzz feature when building. E.g. cargo build --features fuzz would build the examples with fuzzing options.

Dependencies

~1MB