Repository navigation
Recipes, part 5: a short video in each step - #97
Merged
Merged
Conversation
Each preparation step can carry one short MP4 clip (at most 60 s, 21 MiB). The clip is rewritten from an allowlist of boxes before it is encrypted: location, title, encoder, times and non audio/video tracks are dropped. The app records or picks a clip, plays it from a private temporary file that is wiped on close and at startup (in memory on the web), and shows it in cooking mode. Publishing sends step videos to serv.pub, which renders them in the recipe page and serves media with Range requests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rvr6HJwgZKVC2FvU1Tmgyp
A TLS connect error on downloads.xiph.org failed the verify job before any test ran. curl now retries up to five times; the hash is still compared exactly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rvr6HJwgZKVC2FvU1Tmgyp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 5 of 6 of the recipes plan: each preparation step can carry one short MP4 clip.
What changes
schema_dynamic_content):PreparationStep.video. On the wire a step stays flat,[text, blob, caption, ..., video?], where an odd trailing element is the video. A step that is only a video is valid, and a blob counts once across pictures and videos.blob_storage_media):VideoProbeaccepts only non-fragmented MP4, up to 21 MiB, 61 s and 8192 px.VideoScrubberrewrites the file from an allowlist of boxes. It keeps only the vide and soun tracks, zeroes the samples of every other track (text or GPS tracks), zeroes the times and rewrites the stco/co64 offsets. It is idempotent and gives the same output whether moov comes before or after mdat.VideoStorageseals the clip and re-probes it on open.RecordedNoteis codec v6, with videos.MediaType::Mp4andStep.video, renders<video controls playsinline preload="metadata">, and answers Range requests on media (206 and 416), which Safari needs to play video.Tests
flutter test) andflutter analyzeis clean.Known limits
Generated by Claude Code