Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ serde = { version = "1", features = ["derive"], optional = true }
tokio = ["dep:tokio"]
bytes = ["dep:bytes"]
serde = ["dep:serde", "bytes/serde"]
strict = []

[dev-dependencies]
anyhow = "1"
Expand Down
1 change: 1 addition & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

export RUST_BACKTRACE := "1"
export RUST_LOG := "info"
export MP4ATOM_STRICT := "1"

# List all of the available commands.
default:
Expand Down
1 change: 1 addition & 0 deletions src/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ any! {
Tfhd,
Tfdt,
Trun,
Senc,
Mdat,
Free,
],
Expand Down
9 changes: 6 additions & 3 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ pub type Result<T> = std::result::Result<T, Error>;

/// Either logs or returns an error depending on the environment/flag.
pub(crate) fn decode_unknown(atom: &Any, parent: FourCC) -> Result<()> {
// TODO return an error when the `strict` feature flag is enabled.
// TODO return an error when run as a unit test, after fixing them.
tracing::warn!(kind = %atom.kind(), parent = %parent, "unexpected box");
if std::env::var("MP4ATOM_STRICT").is_ok() || cfg!(feature = "strict") {
tracing::error!(kind = %atom.kind(), parent = %parent, "unexpected box");
return Err(Error::UnexpectedBox(atom.kind()));
} else {
tracing::warn!(kind = %atom.kind(), parent = %parent, "unexpected box");
}
Ok(())
}
3 changes: 2 additions & 1 deletion src/moof/traf/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub struct Traf {
pub saiz: Vec<Saiz>,
pub saio: Vec<Saio>,
pub meta: Option<Meta>,
pub senc: Option<Senc>,
pub udta: Option<Udta>,
}

Expand All @@ -28,7 +29,7 @@ impl Atom for Traf {

nested! {
required: [ Tfhd ],
optional: [ Tfdt, Meta, Udta ],
optional: [ Tfdt, Meta, Senc, Udta ],
multiple: [ Trun, Sbgp, Sgpd, Subs, Saiz, Saio ],
}
}
1 change: 1 addition & 0 deletions src/moov/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ mod test {
}
}
},
senc: None,
udta: None
}],
udta: None,
Expand Down
5 changes: 4 additions & 1 deletion src/moov/trak/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
mod edts;
mod mdia;
mod senc;
mod tkhd;

pub use edts::*;
pub use mdia::*;
pub use senc::*;
pub use tkhd::*;

use crate::*;
Expand All @@ -15,6 +17,7 @@ pub struct Trak {
pub edts: Option<Edts>,
pub meta: Option<Meta>, // TODO is this suppose to be here?
pub mdia: Mdia,
pub senc: Option<Senc>,
pub udta: Option<Udta>,
}

Expand All @@ -23,7 +26,7 @@ impl Atom for Trak {

nested! {
required: [ Tkhd, Mdia ],
optional: [ Edts, Meta, Udta ],
optional: [ Edts, Meta, Senc, Udta ],
multiple: [],
}
}
154 changes: 154 additions & 0 deletions src/moov/trak/senc.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
use crate::{ext, AtomExt, Buf, BufMut, Encode, Error, Ext, FourCC, Result};

// SampleEncryptionBox (`senc`).
// From ISO/IEC 23007-7:2023 (Common Encryption), Section 7.2.1

// This can't really be parsed here, because it requires Per_sample_IV_Size,
// so unfortunately you just get a vector to work out yourself.

ext! {
name: Senc,
versions: [0, 1, 2],
flags: {senc_use_subsamples = 1,}
}

#[derive(Debug, Clone, PartialEq, Eq, Default)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Senc {
pub data: Vec<u8>,
}

impl AtomExt for Senc {
const KIND_EXT: FourCC = FourCC::new(b"senc");

type Ext = SencExt;

fn decode_body_ext<B: Buf>(buf: &mut B, _ext: SencExt) -> Result<Self> {
let bytes_remaining = buf.remaining();
let bytes = buf.slice(bytes_remaining).to_vec();
buf.advance(bytes_remaining);
Ok(Senc { data: bytes })
}

fn encode_body_ext<B: BufMut>(&self, buf: &mut B) -> Result<SencExt> {
self.data.encode(buf)?;
Ok(SencExt {
version: SencVersion::V0,
senc_use_subsamples: false,
})
}
}

#[cfg(test)]
mod tests {

use super::*;
use crate::Decode;

// From the audio_cbcs.mp4 sample in MPEG's file format conformance set
const ENCODED_SENC: &[u8] = &[
0x00, 0x00, 0x05, 0x80, 0x73, 0x65, 0x6e, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x57, 0x0a, 0x61, 0x06, 0x76, 0xcb, 0x88, 0xf3, 0x02, 0xd1, 0x0a, 0xc8, 0xbc, 0x66, 0xe0,
0x39, 0xed, 0xf9, 0xe3, 0x83, 0xca, 0x83, 0xd4, 0xa5, 0xe1, 0xe2, 0x74, 0xc5, 0x38, 0x9e,
0xd9, 0xa1, 0x0a, 0xf4, 0x79, 0xbc, 0xb4, 0x97, 0xe5, 0xa6, 0xeb, 0x06, 0xf8, 0x85, 0xa3,
0xe8, 0xf5, 0xa6, 0x2c, 0xe7, 0xd8, 0xdd, 0x62, 0x75, 0x6a, 0x71, 0x89, 0xb8, 0x82, 0xe6,
0xd6, 0x23, 0x3d, 0x40, 0x95, 0x1a, 0x50, 0x2b, 0x5f, 0xa4, 0xb1, 0x15, 0x6d, 0xa2, 0x48,
0xbe, 0x3f, 0x8b, 0xfb, 0x71, 0x8a, 0x85, 0xe6, 0xd6, 0x27, 0x02, 0xca, 0xee, 0xd0, 0x23,
0x6f, 0x72, 0x30, 0x62, 0x42, 0xdd, 0x9c, 0xb0, 0x03, 0xb0, 0x0f, 0xf6, 0x9c, 0x99, 0x6b,
0x56, 0x53, 0xf4, 0x02, 0xad, 0x89, 0x50, 0x61, 0xd0, 0xac, 0x12, 0x52, 0xa6, 0xc3, 0x88,
0xd9, 0xc2, 0x3a, 0x5b, 0x4b,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 0xcb,
0xaf, 0x76, 0x58, 0x6a, 0x5a, 0x84, 0xaf, 0xc6, 0xed, 0x2d, 0x1b, 0x67, 0xbd, 0xe1, 0x91,
0xd3, 0xde, 0x07, 0x56, 0x24, 0xa5, 0xca, 0xbf, 0x23, 0x55, 0x66, 0xe1, 0x98, 0x80, 0xec,
0xa7, 0x5f, 0x4a, 0x9d, 0x7a, 0x4e, 0x93, 0x14, 0x3e, 0x44, 0xb2, 0xbd, 0x33, 0x35, 0xef,
0x35, 0x17, 0x7f, 0xc7, 0x91, 0xb7, 0x42, 0x39, 0x33, 0x51, 0x72, 0xee, 0x0f, 0x2c, 0xf5,
0xc9, 0xed, 0xec, 0x16, 0x89, 0xd7, 0xa4, 0x36, 0x1f, 0xe5, 0xb9, 0xf5, 0xe8, 0xba, 0x60,
0x85, 0xf4, 0x2c, 0x25, 0xe7, 0x7b, 0x76, 0x20, 0x5a, 0xea, 0x59, 0x86, 0xd1, 0x55, 0x41,
0x20, 0x74, 0xfe, 0x7f, 0xda, 0xb2, 0xf3, 0xc2, 0x16, 0xb3, 0xd8, 0xa2, 0xf4, 0x45, 0x18,
0x11, 0xfc, 0xc1, 0xc5, 0x32, 0xa5, 0x95, 0x1e, 0x25, 0xcc, 0xdd, 0xf4, 0xc2, 0xe6, 0x04,
0xbd, 0x11, 0xee, 0x99, 0x91, 0x59, 0xde, 0x71, 0x7d, 0x9a, 0xac, 0x2c, 0xa3, 0x39, 0xe1,
0x81, 0x8f, 0x0a, 0x9c, 0x24, 0x74, 0x2b, 0xb3, 0x94, 0x95, 0x72, 0xb9, 0xef, 0xf3, 0x7b,
0xc7, 0xc4, 0x55, 0xd3, 0x2c, 0xf8, 0x6b, 0x31, 0x75, 0xbf, 0x2e, 0x36, 0xe0,
];

#[test]
fn test_senc_v0() {
let inbuf: &mut std::io::Cursor<&&[u8]> = &mut std::io::Cursor::new(&ENCODED_SENC);
let parse_result = Senc::decode(inbuf);
assert!(parse_result.is_ok());
let senc = parse_result.unwrap();
println!("{senc:?}");
}
}
2 changes: 2 additions & 0 deletions src/test/av1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ fn av1() {
}
}
},
senc: None,
udta: None,
}],
udta: Some(Udta {
Expand Down Expand Up @@ -309,6 +310,7 @@ fn av1() {
saiz: vec![],
saio: vec![],
meta: None,
senc: None,
udta: None,
}]
}
Expand Down
2 changes: 2 additions & 0 deletions src/test/bbb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ fn bbb() {
saiz: vec![],
saio: vec![],
meta: None,
senc: None,
udta: None,
}],
},
Expand Down Expand Up @@ -466,6 +467,7 @@ fn bbb() {
saiz: vec![],
saio: vec![],
meta: None,
senc: None,
udta: None,
}],
},
Expand Down
1 change: 1 addition & 0 deletions src/test/esds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ fn esds() {
saiz: vec![],
saio: vec![],
meta: None,
senc: None,
udta: None,
}],
},
Expand Down
1 change: 1 addition & 0 deletions src/test/flac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ fn flac() {
}
}
},
senc: None,
udta: None
}],
udta: None
Expand Down
Loading