Media playback: slidecraft-media (probe, audio decode, H.264/HEVC/VP9/AV1 video, mixer and clock), cpal output, editor control bar, slide show playback, media.* commands

- crates/media: probe (duration, rate/channels, size/fps; WMA/WMV recognised), audio decode to
  f32 PCM (MP3, AAC M4A/ADTS, ALAC, WAV, AIFF, CAF, FLAC, Vorbis via symphonia; Opus with our
  decoder in Ogg/WebM/MKV), video decode (MP4/MOV/WebM/MKV) with YUV->RGBA, poster frames,
  trim/fade/volume, Player mixer + per-voice clock (device-clocked or wall-clocked), VideoFeed.
- Codec crates ported from FilmCraft: bitstream, h264, hevc, vp9, av1, isobmff, matroska, ogg, opus.
- insert.audio/insert.video probe and store duration/size and a poster frame; unplayable media
  is embedded with a warning. New media.play/pause/toggle/stop/seek/info/posterFrame.
- UI: MediaHost (cpal output injected by the desktop app), control bar under media, video frames
  on canvas and in the show; autoplay, click to play, loop, rewind, across slides, hide, full screen.
- Tests with in-code WAV/AIFF and CC0 self-generated fixtures (make.sh, ATTRIBUTION.md rows).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-06 01:35:09 -04:00
co-authored by Claude Opus 5.5
parent 56f31158c7
commit 4375fe7b89
165 changed files with 63235 additions and 46 deletions
+11
View File
@@ -25,6 +25,17 @@ slidecraft-anim = { path = "crates/anim" }
slidecraft-engine = { path = "crates/engine" }
slidecraft-mcp = { path = "crates/mcp" }
slidecraft-ui-egui = { path = "crates/ui-egui" }
slidecraft-media = { path = "crates/media" }
# codecs (ported from FilmCraft, same owner and licence)
slidecraft-bitstream = { path = "crates/bitstream" }
slidecraft-h264 = { path = "crates/h264" }
slidecraft-hevc = { path = "crates/hevc" }
slidecraft-vp9 = { path = "crates/vp9" }
slidecraft-av1 = { path = "crates/av1" }
slidecraft-isobmff = { path = "crates/isobmff" }
slidecraft-matroska = { path = "crates/matroska" }
slidecraft-ogg = { path = "crates/ogg" }
slidecraft-opus = { path = "crates/opus" }
# foundation
kurbo = { version = "0.13", features = ["serde"] }