16 Commits
Author SHA1 Message Date
shinyobjectz c0d94f8f0c raea media share FILE -o OUT.mp4: a copy to send, held to a bitrate (2600 kbps unless --kbps), and raea ffmpeg reads the skill's -maxrate line as it (#219) 2026-11-24 23:46:55 -08:00
shinyobjectz c1eaaa37f1 raea media: one argument holding several file names is those files, so a shell that does not split a variable gets its sheet instead of "File name too long" (#218) 2026-11-24 23:46:55 -08:00
shinyobjectz 4dfe231d32 Windows reads a phone's or a camera's video: raea fetches FFmpeg the first time one needs it
On Windows raea's own decoders read H.264 without B-frames (openh264) and AV1, not what phones and cameras write:
H.264 with B-frames, HEVC, VP9. With no FFmpeg installed (as on nearly every Windows PC), raea media probe, raea
check and a render's <Video> refused such a clip ("no picture or sound raea can read"). Found testing 0.1.8-rc6's
raea.exe on Windows with orbit.mp4 (H.264 High, B-frames).

- raea_io_assets::ffmpeg_tool: ffmpeg or ffprobe from the PATH, else raea's own in $RAEA_TOOLS_CACHE/ffmpeg/bin.
  On Windows raea's own is fetched there once: GyanD's essentials build 9.0.2 (the one winget's
  Gyan.FFmpeg.Essentials installs) from its GitHub release, 114 MB, checked against GitHub's SHA-256 digest
  for it, unpacked by Windows' tar (ffmpeg.exe, ffprobe.exe and the LICENSE, ~210 MB). Nothing is bundled.
  Off Windows the error names the package manager's command.
- The fetch shares uv's code (fetch_archive, from fetch_uv), which now resumes across curl's tries
  (-C - --retry-all-errors, as #189 does for the models).
- The ffmpeg backend runs that binary everywhere. Only opening a file named as a video fetches; sound,
  encoding and asking what FFmpeg can do never do, so a silent clip tried on every backend, or an mp3, never
  downloads 114 MB.
- raea-app-media opens a video through every backend in order (raea_io_media::preferred), as renders already
  did, instead of the platform's alone: media probe, the change and picture commands, and raea check's
  native reader. probe's refusal now says what each backend said.

Checked on the Mac with no FFmpeg on PATH and the portable backend first: B-frame H.264 and HEVC probe
through VideoToolbox (they were refused before), and VP9 is refused with each backend's reason, ending in the
install line; VP9 probes once FFmpeg is on PATH. The zip's layout and extraction were checked with bsdtar.
The Windows fetch itself is proved on the release's raea.exe on Windows. Tests: raea-io-assets, raea-io-ffmpeg,
raea-app-media and raea-app-check-read (parity against FFmpeg) pass.
2026-11-18 18:03:37 -08:00
shane bb109cd6d1 Merge pull request #187 from shinyobjectz/check-native
raea check reads a video without FFmpeg (native readers, held to FFmpeg's answers)
2026-11-18 18:57:10 -05:00
shinyobjectz d8945089ed raea check reads a video without FFmpeg: raea's own decoders stand in where it isn't installed
0.1.7's raea check refused any video without a system ffprobe and ffmpeg, though raea media probe and loudness
never needed them; Windows never has FFmpeg. Every read check makes now has a native reader in a new crate,
apps/check/read (raea-app-check-read): the probe, each frame's light, the dark crops blotching scores, the flashing
screen's area- and point-sampled frames, the sound folded to mono, momentary loudness, freezes, integrated loudness
and true peak, and a caption's contrast. FFmpeg stays the reader where it's on the PATH (the reference the rules
were tuned on); RAEA_CHECK_NATIVE=1 forces the native readers.

tests/parity.rs holds each native read to FFmpeg's on a clip FFmpeg makes: crops, light, sound, meter, freeze and
loudness agree to within a hundredth; flash frames to 4.4 levels. raea check gives identical output with and
without FFmpeg on PATH for a moving clip with a freeze and loud sound, a render, and a strobe with stray frames.
2026-11-18 15:38:16 -08:00
shinyobjectz f858b78c3b Labels from the CLI: raea show --label/--detail/--labels, and raea media sheet writes OUT.labels.json (CO2b, CO2c)
raea show FILE --label "PLACE TAG" [--detail PARAGRAPH] sends the app's host each label as { place, text, detail? }; the
host (raea-feed labels, host/show.ts shownLabels) reads each place and refuses one that isn't, naming it. PLACE is
x0,y0,x1,y1 or x,y in the picture's 0-1, then #N, @T or @T-TO, or part=KEY. --labels FILE.json sends a list as feed_post
takes them (read by raea's own handler, index.ts, where the shell's files are). A --label with no tag, a --detail with
no --label before it or a second one, labels with no file shown, and --label with --labels are refused, saying what a
label is. The flags are in raea show's help line, the one list stray() reads.

raea media sheet writes OUT.labels.json beside OUT: each cell's box in the sheet's 0-1 and its time (0:03.2), or its
file's name for a sheet of several; raea show OUT.png takes it along with nothing more said. Tested: conformance 12/12
for show (bun), sheet_tests 2/2, and end to end against a stand-in host: a sheet of one film (four times) and of two
(their names), each flag's body as the host reads it, and the refusals.

docs/callouts.feature: status for 0.1.8; CO6 (the card's count) is built, so it's no longer 'Open'.
2026-11-18 10:22:56 -08:00
shinyobjectz e50c22064f RR3: in progress. A whole video made as shot segments and joined by stream copy, behind RAEA_SEGMENTS=1 until RR3's gates are measured. raea-runtime-segments: a new encoder run (unsigned) at each cut once the segment before holds a second of frames (split.rs), the whole wrapped by the signer so the export is one file with one watermark id, signed once after the join (encode.rs); the join reads the segments' MP4s with re_mp4 (H.264/HEVC to Annex B with their parameter sets ahead of each keyframe, AV1 OBUs as they are) and writes one with muxide, the sound laid under once from the backend's new Backend::sound (AAC on Apple, Opus on soft and av1) (join.rs). Cuts come from each frame of the fed render (an outermost Sequence's data-raea-start, raea-runtime-page shot_starts; the engine's camera cut, raea_sys_frame::shots::Cut set in pre_step) and the timeline's Shots up front. io-codec gains SoundTrack, remux::aac_track and hvcc_params; io-media backend_unsigned and a public sign::wrap. Benches: film.tsx's cut and cut-long compositions, pages.tsx, rr3.sh (segmented against one run: SSIM >= 0.999 and VMAF >= 99 per frame; join under 1 s on 3,600 frames). Tests: two segments joined are one video with one sound and the segments' own bytes; the encoder splits at cuts but not after a short shot 2026-11-17 19:52:34 -08:00
shinyobjectz f0e01210c2 PV3c: raea's help names media lod; two copied closures folded (L1 dupes) 2026-11-09 21:03:59 -08:00
shinyobjectz 551b2102bb PV1: the pick and the layer pass walk the drawn meshes through one function; the licence catalog follows meshopt
systems/frame layer.rs drawn(): every shown triangle-list mesh with its posed vertices and corners, which the layer
pass rasters and a pick's ray is cast against (pick.rs had the walk copied). A render's layers are byte-identical
before and after (shapes.tsx frame 10), and the live pick answers the same part. meshopt and float-cmp are in the
plain build now (raea media lod), so tools/licenses.sh takes them out of the catalog-only list in LICENSES/ and
NOTICE.
2026-11-09 21:03:59 -08:00
shinyobjectz 1bed45b774 PV3c: raea media lod, a model at a lower level of detail; the feature file says what is built
raea media lod MODEL.glb [--level N] [--texture PX] -o OUT.glb halves every mesh's triangles a level (meshoptimizer
on the mesh's own vertices: skins, morph targets, UVs and materials untouched, only the index lists replaced), makes
embedded pictures at most PX on their longer side, and drops what nothing uses. Checked: a skinned body, 27,420
triangles to 6,854 at level 2, rendered and looked at. 2 tests. Cargo.lock has raea-runtime-live's raea-sys-frame
edge too (the first PV1 commit left it out). docs/preview.feature: each rule's status and what isn't built.
2026-11-09 21:03:59 -08:00
shinyobjectz afb3eb6dc6 PV1: the live stage picks 3D parts, a free camera, and props set as it plays
stage.pick answers what is under a point of the stage, the page and its 3D as one picture: a 3D part (its layer key,
name, JSX props, box, the point hit and its distance; the nearest mesh along the pointer's ray, skinned meshes as
posed: systems/frame pick.rs) or the page's element, with the part behind it. stage.view draws the 3D from an orbit
until it is given back (systems/frame view.rs, FreeView). stage.props sets a composition's props over its defaults
as it plays (the entry's raea-props). What the stage opens is stamped, so every pick has its place in the code.
stage.seek (written 11-07 for the editor's Live, never committed) lands with it. raea media still takes --width.
Proof: raea play shapes.tsx --offscreen --seek 10 --pick 640,330 answers shape-2 at shapes.tsx:28:11#2 with its
props; --view 1.2,0.9,9 draws it from above. docs/preview.feature is the plan.
2026-11-09 21:03:59 -08:00
shinyobjectz 3e1efbab77 #32: an HTML page renders to PNGs, a folder (-o DIR, one frame-NNNNN.png a frame) or one still (-o OUT.png: frame 0, or the one --at names), and --alpha gives them a transparent canvas, as a TSX composition's do. The direct path wrote only video or hashes, so -o frames wrote an MP4 named frames, failed with "Is a directory" when the folder was there, and --alpha couldn't apply.
How: gpuview's direct render has an RGBA mode (GpuView.rgba): its three-deep readback ring copies the composite itself (RGBA8 premultiplied) instead of making NV12, so a PNG costs no extra pass. runtime/encode writes each frame straight-coloured (straight(), the engine path's un-premultiply, now shared). RenderOpts.alpha (apps/media's --alpha, refused for video) sets the page's canvas row to #00000000; the camera's clear colour was read as RGB with alpha forced to 255, so a clear canvas came out black. runtime/view's camera_bg reads #rrggbbaa, premultiplied, for gpuview and cpuview (one function where each had its own copy). The help and cli.md say OUT.png and --alpha for PAGE.html.

Check: bench/html-png/check.sh (a half-opaque red box sliding over an empty canvas): -o DIR --at 0,29 writes two PNGs, and the box moved between them; -o DIR into a folder that's there works; -o OUT.png --at 29 is byte-identical to the folder's frame 29, and -o OUT.png is frame 0; opaque, the canvas is white and the box pink (255,127,127); with --alpha the canvas is 0,0,0,0 and the box straight red at half alpha (255,0,0,128); --alpha to an MP4 is refused. It fails on the raea before this and passes on this one. bench/html-repeat, bench/frame-panic and bench/dropped-css still pass.

Video is unchanged: bench/html-repeat to .txt gives identical hashes for all 270 frames before and after. fps to MP4, seven alternating rounds on a shared, busy machine (the "before" build is about an hour older, with other lanes' changes): median 181 before vs 170 after, ranges 165-202 and 159-198, no difference beyond the noise (closes #32)
2026-11-07 17:56:27 -08:00
shinyobjectz 30960ed5fa #34: a render says once, when it ends, what its page didn't apply, and its output loses the warnings no one acts on.
Dropped CSS: stylo drops what it can't parse silently unless a ParseErrorReporter is passed, and blitz-dom passed none, so a render printed APPLIED over a picture missing some of its code. vendor/blitz-dom/src/not_applied.rs is that reporter, passed at every author parse (stylesheets and @imports in net.rs, <style> in document.rs, style attributes in node/element.rs, CSSOM in cssom.rs; never the user-agent sheet). It keeps each drop once per property and selector, never its value ("-webkit-text-stroke in .outline", "... in a style attribute"), since a style attribute is parsed again on every frame it changes. FileNet's loads that fail join the list ("the file ... (it didn't load)"). The render prints it once after APPLIED (engine/cli for TSX, apps/media for HTML) as "NOTE  the page didn't apply N things, and is drawn without them:", one per line, at most 20, and --manifest gets it as not_applied. RAEA_NOT_APPLIED=0 parses as before (docs/settings.md), for measuring.

Vendored stylo change, to upstream later: report_one_css_error (properties/declaration_block.rs) returned before reporting any unknown property with a -webkit-, -ms- or -o- prefix, which hid the reporter's main case, -webkit-text-stroke (Gecko-only in stylo, drawn as nothing). It reports them now, and raea's reporter skips the prefixed properties that change nothing in a picture (text-size-adjust, tap-highlight-color, font-smoothing, appearance, user-select and the like), so Tailwind's preflight adds no lines (a Tailwind page with gradients, rings, blur and truncate printed no NOTE). A value error is also named by the property stylo parsed, with the value after it. vendor.toml says both.

Noise: Bevy's bevy_asset::io::web and io::source warnings (printed by every render) and fontdb's skipped faces (system fonts it can't parse, which the reporter saw on Windows; a missing @font-face file, which the NOTE names) are filtered at both LogPlugins (engine/page motion.rs, engine/render open.rs). io/trace's `log` logger, which every third-party `log` record goes through, prints only warnings and errors now, and not fontdb's (Bevy's Ctrl+C handler printed two INFO lines on every render); every record still goes to the trace's events.jsonl.

Check: bench/dropped-css/check.sh renders the reporter's page as TSX (30 frames, its outline moving so its style attribute is parsed each frame) and as HTML. Each must exit 0 and print one NOTE naming -webkit-text-stroke and the missing font once each, with no INFO line and no bevy_asset or fontdb warning, and the TSX render's manifest must list both under not_applied. It fails on the raea before this (no NOTE) and passes on this one.

fps, one build with the reporter on and off (RAEA_NOT_APPLIED), seven alternating rounds on a shared, busy machine: the worst case (bench/dropped-css's page at 600 frames, dropping a declaration on every frame) median 516 on vs 479 off; bench/html-repeat median 202 on vs 172 off. No cost shows above the noise (min to max spans 315 to 620). (closes #34)
2026-11-07 17:46:28 -08:00
shane 3381690416 raea is developed here now (public-first)
This repository was an export of a private one; from this commit on it is where raea is developed. Contributions:
CONTRIBUTING.md.
2026-11-07 13:36:50 -08:00
shinyobjectz 5e1c192d29 raea 9565b5f97 2026-11-06 16:27:57 -08:00
shinyobjectz f675b0ad2b raea dc579e418 2026-10-31 13:15:29 -07:00