mp4 mvhd syntax
This commit is contained in:
parent
f287cc2d64
commit
1e5bf0d21d
2 changed files with 35 additions and 0 deletions
|
@ -0,0 +1,34 @@
|
|||
struct WindowMatrix {
|
||||
A: u32,
|
||||
B: u32,
|
||||
U: u32,
|
||||
C: u32,
|
||||
D: u32,
|
||||
V: u32,
|
||||
X: u32,
|
||||
Y: u32,
|
||||
W: u32,
|
||||
}
|
||||
|
||||
struct MOOV {
|
||||
mvhd: MVHD,
|
||||
traks: [TRAK; 2],
|
||||
mvex: MVEX,
|
||||
}
|
||||
|
||||
struct MVHD {
|
||||
version: u8,
|
||||
flags: u32,
|
||||
create_time: u64,
|
||||
modify_time: u64,
|
||||
time_scale: u32,
|
||||
duration: u64,
|
||||
playrate: u32,
|
||||
volume: u16,
|
||||
matrix: WindowMatrix,
|
||||
next_track_id: u32,
|
||||
}
|
||||
|
||||
struct TRAK;
|
||||
|
||||
struct MVEX;
|
|
@ -1,4 +1,5 @@
|
|||
mod mp4muxer;
|
||||
mod atoms;
|
||||
|
||||
use std::sync::{mpsc, Arc};
|
||||
use std::error::Error;
|
||||
|
|
Loading…
Reference in a new issue