Skip to content

feat(scanner): capture audio stream profile metadata - #337

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
raiden202:pr/scanner-audio-profile
Jul 8, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
raiden202:pr/scanner-audio-profile

Conversation

@raiden202

@raiden202 raiden202 commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

feat(scanner): capture audio stream profile metadata

Problem

The scanner preserves video track profile metadata but discards ffprobe's audio stream profile. Downstream surfaces therefore cannot display or reason about audio profile details such as Dolby Digital Plus + Dolby Atmos when ffprobe exposes them.

Approach

Carry the ffprobe audio stream profile through scanner probe data and store it in the existing audio track JSON metadata. This is an additive JSON field, with a focused scanner test that verifies profile capture.

Verification

go test ./internal/scanner
git diff --check

Risks & follow-up

Low risk. Existing fields and scanner decisions are unchanged. Consumers that do not know about profile can ignore it.

AI-use disclosure

Implemented with a combination of Claude Code and Codex assistance, with human oversight.

Linked scope

Companion web PR that displays the captured field in Media Info: #339.

Review follow-ups applied

  • catalogseed.AudioTrackRecord now mirrors the audio profile field (parity with VideoTrackRecord.Profile), so seed exports do not drop it.

Known limitations

  • Existing libraries only gain profile once files are re-probed (new/changed files, probe repair, or a metadata refresh); there is no automatic backfill.
  • jellycompat does not yet expose the audio profile on MediaStream.Profile / AudioSpatialFormat; tracked as a follow-up.

Store ffprobe audio stream profiles in the existing audio track metadata JSON. This mirrors the video track profile field and is additive for clients that want to display or inspect codec profile details.
@coderabbitai

coderabbitai Bot commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@Quick104, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 48 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 16ab7ac5-1839-4552-a094-2fdb59dca838

📥 Commits

Reviewing files that changed from the base of the PR and between f330d55 and c5dee83.

📒 Files selected for processing (7)
  • internal/catalogseed/service.go
  • internal/catalogseed/types.go
  • internal/models/media.go
  • internal/scanner/probe.go
  • internal/scanner/probe_audio_profile_test.go
  • internal/scanner/scanner.go
  • internal/scanner/types.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c1aa2ba163

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread internal/models/media.go Resolved
Keep AudioTrackRecord in parity with VideoTrackRecord, which already
mirrors the video profile field, so seed exports do not drop the new
audio profile metadata.

Co-Authored-By: Claude Fable 5 <[email protected]>
@Quick104
Quick104 merged commit 2d6c6cd into Silo-Server:main Jul 8, 2026
1 check passed
@raiden202

raiden202 commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Resolved the stale Codex thread: current main includes profile on AudioTrackRecord and copies track.Profile in toAudioTrackRecords, so catalogseed export preserves the captured audio profile metadata.

Quick104 added a commit that referenced this pull request Jul 10, 2026
* feat(scanner): capture audio stream profile metadata

Store ffprobe audio stream profiles in the existing audio track metadata JSON. This mirrors the video track profile field and is additive for clients that want to display or inspect codec profile details.

* feat(catalogseed): carry audio profile in seed export records

Keep AudioTrackRecord in parity with VideoTrackRecord, which already
mirrors the video profile field, so seed exports do not drop the new
audio profile metadata.

Co-Authored-By: Claude Fable 5 <[email protected]>

---------

Co-authored-by: Silo Contributor <[email protected]>
Co-authored-by: Quick <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
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.

2 participants