Async mp4

An mp4 muxer demuxer for mp4, made to work in WASM and async contexts.

State

Why not mp4-rust ?

Usage

```rust let ftyp = FtypBox { majorbrand: *b"iso5", minorversion: 1, compatiblebrands: vec![*b"isom", *b"avc1", *b"iso2", *b"iso5"], }; let moov: MoovBox = Moov { mvhd: Some(Default::default()), mvex: Some(Mvex { trex: traks.iter().map(|trak| { Trex { trackid: trak.tkhd.asref().map(|it|it.trackid).unwrapor(0), defaultsampledescriptionindex: 1, defaultsampleduration: 0, defaultsamplesize: 0, defaultsampleflags: Default::default(), }.into() }).collect(), }.into()), traks: vec![Trak { /* trak info... */ }.into()], }.into();

let mut buf = std::io::Cursor::new(vec![]); ftyp.write(&mut buf)?; moov.write(&mut buf)?; return buf.into_inner(); ```

Todo