/minimp4.rs

A minimp4 Rust binding, h264/h265 stream muxer

Primary LanguageCMozilla Public License 2.0MPL-2.0

minimp4.rs

A minimp4 Rust binding.

Features

  • H264 stream mux
  • H265 stream mux
  • set track title
  • set comment

Usage

    let mut mp4muxer = Mp4Muxer::new(File::create("1.mp4").unwrap());
    let mut buf = Vec::new();
    File::open("1.264").unwrap().read_to_end(&mut buf).unwrap();
    mp4muxer.init_video(316, 342, false, "title");
    mp4muxer.write_video(&buf);
    mp4muxer.close();

TODO

  • Support hevc mux
  • Support multiple track
  • Support audio track
  • Support set track title
  • Support set metadata
  • Better error handling

Contributing

Pull request :)