Skip to content

darkskygit/minimp4.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :)