video

garnet-video

Frame-accurate video playback for Garnet:

  • ISO-BMFF / MP4 container parser (Video::Mp4Reader): parses ftyp, moov, mvhd, trak, tkhd, mdia, mdhd, stbl, stsd, stts, stsz, stco/co64, and mdat boxes in pure Crystal, with Mp4Writer.build_raw_mp4 for test fixtures.
  • Color conversion (Video::ColorConvert): pure-Crystal BT.709 / BT.601 YUV420p to RGBA8 conversion.
  • Pluggable decoders (Video::Decoder, Video::MemoryDecoder, Video::Mp4Decoder): decodes raw RGBA/YUV420 MP4 tracks natively, with a FrameCodec / host decoder hook for H.264 (avc1) streams.
  • Playback (Video::Player & Video::PlayerComponent): play, pause, stop, seek, advance, looping=, playback_rate=, uploading decoded RGBA8 frames straight into Garnet::Graphics::StreamingTexture and synchronized stereo PCM into Video::AudioRing.
Repository

video

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 3
  • about 1 hour ago
  • December 3, 2026
License

Links
Synced at

Thu, 03 Dec 2026 20:10:12 GMT

Languages