diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-03-06 17:08:26 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-03-06 17:08:26 +0100 |
| commit | d6287e2f54bd3ad22f970c0a3fe5230be00a592e (patch) | |
| tree | b4363deda59a1434f9126f8f56ae29cc46973f58 /remuxer/src/muxers | |
| parent | 711f56963c114565a2be8848a6070b28a168c5ff (diff) | |
| download | jellything-d6287e2f54bd3ad22f970c0a3fe5230be00a592e.tar jellything-d6287e2f54bd3ad22f970c0a3fe5230be00a592e.tar.bz2 jellything-d6287e2f54bd3ad22f970c0a3fe5230be00a592e.tar.zst | |
pasp and colr boxes for sample entry
Diffstat (limited to 'remuxer/src/muxers')
| -rw-r--r-- | remuxer/src/muxers/mp4.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/remuxer/src/muxers/mp4.rs b/remuxer/src/muxers/mp4.rs index bd36789..bb89563 100644 --- a/remuxer/src/muxers/mp4.rs +++ b/remuxer/src/muxers/mp4.rs @@ -37,6 +37,11 @@ impl FragmentMuxer for MP4FragmentMuxer { // edts.write(EditList(&[])); // })); trak.write(Media(|mdia| { + mdia.write(MediaHeader { + duration: 0, + timescale: 1_000_000_000, + ..Default::default() + }); mdia.write(Handler { handler_type: match track.track_type { TrackType::Video => *b"vide", @@ -68,6 +73,16 @@ impl FragmentMuxer for MP4FragmentMuxer { }, width: video.pixel_width as u16, height: video.pixel_height as u16, + pasp: Some(PixelAspectRatio { + h_spacing: 1, + v_spacing: 1, + }), + colr: Some(ColourInformation::OnScreenColours { + colour_primaries: 1, + transfer_charateristics: 1, + matrix_coefficients: 1, + full_range: false, + }), ..Default::default() }, config: AVCConfiguration( |