Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
mod support;
use std::{fs, path::Path};
use support::parse_boxes;
#[test]
fn golden_minimal_contains_expected_boxes() -> Result<(), Box<dyn std::error::Error>> {
let fixture = Path::new(env!("CARGO_MANIFEST_DIR")).join("fixtures/minimal.mp4");
let data = fs::read(fixture)?;
let boxes = parse_boxes(&data);
assert!(boxes.len() >= 2, "expected at least two top-level boxes");
assert_eq!(boxes[0].typ, *b"ftyp");
assert_eq!(boxes[1].typ, *b"moov");
let moov = boxes.iter().find(|b| b.typ == *b"moov").unwrap();
let moov_payload = moov.payload(&data);
let child_boxes = parse_boxes(moov_payload);
assert!(child_boxes.iter().any(|b| b.typ == *b"mvhd"));
Ok(())
}