Introduction
Small Crate to infer various media containers. Works by reading Magic Bytes.
Supported Containers
- MKV
- ASF
- GXF
- WTV
- RCWT
- MP4
- TS
- M2TS
- PS
- Tivo PS
- MXF
Examples
Get Container type from starting bytes
let buf = ;
let kind = from_bytes;
assert_eq!;
#+end_src
** Get Container type from path to file
#+begin_src rust
use PathBuf;
let file_path = from;
let kind = from_file_path;
Get Container type from open file
use File;
let mut file = open.unwrap;
let kind = from_file;