Skip to content

Frame Rate pass: start at 2x the incoming rate; advise when the target matches it - #288

Merged
StuartCameronCode merged 2 commits into
mainfrom
stuart/139-frame-rate-pass-don-t-default-the-target
Nov 28, 2026
Merged

StuartCameronCode merged 2 commits into
mainfrom
stuart/139-frame-rate-pass-don-t-default-the-target

Conversation

@StuartCameronCode

Copy link
Copy Markdown
Owner

Follow-up to issue #177, where the reporter found that RIFE output "is not significantly different from the source". The Frame Rate pass's target defaulted to 25 fps whatever the source was. On a 25 fps source that converts nothing, because RIFE and Repeat frames pass every real frame through. On 23.976 fps film, motion looks barely different.

Change

  • Advice (advisory only). When the Frame Rate pass is on and its target equals, or is within 5% of, the rate the pass receives, the panel shows a note suggesting 50/59.94 or Custom. The rate the pass receives is the source's after Deinterlace and Unblend, the same as the worker's rate_before(PassType::FrameRate). The note never blocks or changes anything, and says nothing when no video is selected. A default pipeline stays silent.
  • Starting target. Switching the pass on with a video selected starts it at about twice that rate: 25 → 50, 29.97 → 59.94, 23.976 → Custom 47.952. This happens only when the current target is equal or close to the incoming rate and that rate is below 45 fps, so a conversion the user chose is kept. The model default stays pal25, so presets, saved jobs and the worker are unchanged.
  • Shared helpers. frameRateTargetFps is now the one target table, used by both Frame Rate and Unblend. It reads a custom rate as the worker's custom_fps_fraction does. frameRateInputFps and frameRateCloseness are new.
  • Fix. unblendInputFps now keeps a film-rate Soft Telecine source's rate, as the worker's frame map does. This also corrects the Unblend panel's warning for such sources.
  • CLAUDE.md ("Frame Rate targets") and the schema's target description are updated.

Testing

  • New frame_rate_starting_target_test.dart covers the target table, closeness, the starting target, and switching the pass on in MainViewModel.
  • New group in pass_advice_test.dart: equal, close and far targets, the rate after deinterlacing and Unblend, silence without a video, and enabled-pass-only.
  • The push-gate Flutter suite (--exclude-tags heavy,gpu) against deps 1.18.0-rc5: 2000 passed, 8 skipped, 0 failed. No Rust changes.
  • Reviewed against the worker's rate_before, deinterlace_frame_map and custom_fps_fraction.

🤖 Generated with Claude Code

StuartCameronCode and others added 2 commits November 28, 2026 20:10
…t (task #139)

The Frame Rate pass's target defaulted to 25 fps whatever the source, so a
25 fps source converted nothing and a 23.976 film barely changed (issue #177).

- pass_advice: an enabled Frame Rate pass whose target equals, or is within
  5% of, the rate the pass receives gets an advisory note (never blocking).
- Switching the pass on with a video selected starts it at about twice that
  rate (25 -> 50, 29.97 -> 59.94, 23.976 -> Custom 47.952), only when the
  current target is equal or close to it and below 45 fps. The model default
  stays pal25, so saved jobs, presets and the worker are unchanged.
- frameRateInputFps mirrors the worker's rate_before(FrameRate): Deinterlace,
  then Unblend. unblendInputFps now keeps a film-rate Soft Telecine source's
  rate, as the worker's map does.
- frameRateTargetFps is the one target table, shared with Unblend, reading a
  custom rate as custom_fps_fraction does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@StuartCameronCode
StuartCameronCode merged commit e2bbd37 into main Nov 28, 2026
15 of 16 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