Skip to content

Issue/8 - #9

Merged
hohonuuli merged 4 commits into
mainfrom
issue/8
Aug 11, 2026
Merged

hohonuuli merged 4 commits into
mainfrom
issue/8

Conversation

@hohonuuli

Copy link
Copy Markdown
Member

Address #8 and mbari-org/vars-feedback#334

@hohonuuli hohonuuli self-assigned this Aug 11, 2026
@hohonuuli hohonuuli added the bug Something isn't working label Aug 11, 2026
@hohonuuli
hohonuuli requested a lite review from Copilot August 11, 2026 21:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses the “green bar” artifact in H.264/HEVC frame captures by suppressing MOV clean-aperture (clap) cropping at decode time while reapplying the codec-declared display crop via an ffprobe-derived -vf crop, and it formalizes ffprobe usage (with caching) across captures.

Changes:

  • Add Ffprobe abstraction plus FfprobeUtil (shells out) and FfprobeService (Caffeine-backed cache) to retrieve declared stream dimensions.
  • Update FfmpegUtil to build shared video filters that crop decoded frames back to the declared size (removing macroblock padding) and optionally apply the existing colorspace override filter.
  • Add/extend test coverage for ffprobe probing, caching behavior (including concurrency), and capture output dimensions; update docs/docker build to require ffmpeg+ffprobe.

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/test/scala/org/mbari/beholder/etc/ffmpeg/FfprobeUtilSuite.scala New tests for ffprobe size probing behavior on real/missing/non-video inputs
src/test/scala/org/mbari/beholder/etc/ffmpeg/FfprobeServiceSuite.scala New tests for cached probing (including failure-not-cached and concurrency)
src/test/scala/org/mbari/beholder/etc/ffmpeg/FfmpegUtilSuite.scala Add capture-dimension assertions to catch macroblock padding artifacts
src/main/scala/org/mbari/beholder/Main.scala Replace _-init var with scala.compiletime.uninitialized
src/main/scala/org/mbari/beholder/etc/ffmpeg/FfprobeUtil.scala New ffprobe shell-out implementation with parse + throttled warning
src/main/scala/org/mbari/beholder/etc/ffmpeg/FfprobeService.scala New Caffeine-backed memoizing ffprobe service
src/main/scala/org/mbari/beholder/etc/ffmpeg/Ffprobe.scala New Ffprobe API + VideoSize model
src/main/scala/org/mbari/beholder/etc/ffmpeg/FfmpegUtil.scala Apply ffprobe-based crop filter (and existing colorspace override) consistently
src/docs/_docs/development.md Document ffmpeg/ffprobe requirements and behavior without ffprobe
README.md Document ffmpeg 7.1+ and ffprobe requirement and why it matters
project/Dependencies.scala Add Caffeine dependency
build.sbt Enforce ffmpeg/ffprobe presence in Docker build; pin base image

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@hohonuuli
hohonuuli merged commit 4af423a into main Aug 11, 2026
1 check passed
@hohonuuli
hohonuuli deleted the issue/8 branch August 11, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants