Skip to content

raea check reads a video without FFmpeg (native readers, held to FFmpeg's answers) - #187

Merged
shinyobjectz merged 1 commit into
mainfrom
check-native
Nov 18, 2026
Merged

shinyobjectz merged 1 commit into
mainfrom
check-native

Conversation

@shinyobjectz

Copy link
Copy Markdown
Owner

raea check on an mp4 refused without a system ffprobe/ffmpeg (0.1.7, reported from macOS; Windows never has FFmpeg), though raea media probe and loudness work natively.

  • Every read the check makes now has a native reader in a new crate, apps/check/read (raea-app-check-read), each naming the FFmpeg command it stands in for:
    • the probe
    • each frame's light (flash-frame)
    • 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
    • a caption's contrast
  • FFmpeg stays the reader where it's on PATH (the reference the rules were tuned on). Without it, raea's own decoders read instead. RAEA_CHECK_NATIVE=1 forces them.
  • raea-app-media exports the helpers the readers use (frames_of, times, yuv, video_span, freezes, probe_of, standard_fps, audio_folded, backend).

Checked

  • tests/parity.rs holds each native read to FFmpeg's on a clip FFmpeg makes (a moving picture that freezes, stereo sound that swells):
    • crops and freeze start are exact;
    • per-frame light is within 0.0001;
    • mono levels and momentary loudness are within 0.001 dB;
    • integrated loudness is within 0.05 LU and true peak within 0.02 dB;
    • contrast is within 0.8%;
    • flash frames are within 4.4 levels.
  • raea check gives identical output with and without FFmpeg on PATH on three clips: a 720p clip with a freeze and loud sound, a render, and a strobe with stray frames (21 opposing changes, every stray frame).
  • raea-app-check and raea-app-media tests pass.
  • tools/size.sh and tools/dupes.sh pass on this branch alone.

🤖 Generated with Claude Code

… 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.
@shinyobjectz
shinyobjectz merged commit bb109cd into main Nov 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant