mp4 mvhd syntax

This commit is contained in:
Muaz Ahmad 2023-10-17 16:06:48 +05:00
parent f287cc2d64
commit 1e5bf0d21d
2 changed files with 35 additions and 0 deletions

View file

@ -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;

View file

@ -1,4 +1,5 @@
mod mp4muxer; mod mp4muxer;
mod atoms;
use std::sync::{mpsc, Arc}; use std::sync::{mpsc, Arc};
use std::error::Error; use std::error::Error;