1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2024-12-22 12:06:33 +00:00
🎥 MP4 reader and writer library in Rust! 🦀
Find a file
Nathan Fiedler 958304a9b2
Make the example tolerant of videos missing parts (#5)
* Make the example tolerant of videos missing parts

Some videos are missing certain parts that the example was assuming would be
present. This change makes all such access conditional on the parts being
present. Also added the display of the box version and the creation time in
a human-readable format. This serves to demonstrate the logic for converting
the MP4 epoch (1904-01-01) to Unix epoch (1970-01-01).

* Show creation time as Unix time only
2020-06-04 23:10:33 -07:00
examples Make the example tolerant of videos missing parts (#5) 2020-06-04 23:10:33 -07:00
src Skip over unknown boxes (#4) 2020-05-27 18:29:41 -07:00
.gitignore Sample boxes and mp4info example updates (#1) 2020-01-27 21:32:53 -08:00
Cargo.lock Add skip fn for skipping remaining bytes in a box. 2020-02-05 20:22:08 -08:00
Cargo.toml Add skip fn for skipping remaining bytes in a box. 2020-02-05 20:22:08 -08:00
LICENSE Change main.rs to lib.rs and create example mp4info project. Update readme and license. 2020-01-12 19:33:26 -08:00
README.md 0.3.0 2020-02-03 21:56:55 -08:00

mp4rs

MP4 Reader in Rust

ISO/IEC 14496-12 - ISO Base Media File Format (QuickTime, MPEG-4, etc)

Crates.io Crates.io

Development

Requirements

Build

cargo build

Run Examples

  • mp4info
cargo run --example mp4info <movie.mp4>

Resources

Thanks to the following resources used when learning Rust:

License

MIT