Skip to content

fix: ignore album artwork in media probes - #347

Merged
rponeawa merged 1 commit into
hypit-ai:mainfrom
HaokaiDing:fix/audio-album-artwork
Sep 23, 2026
Merged

rponeawa merged 1 commit into
hypit-ai:mainfrom
HaokaiDing:fix/audio-album-artwork

Conversation

@HaokaiDing

Copy link
Copy Markdown
Contributor

An MP3 with attached album artwork is currently classified as video. Cutting it to WAV then selects the video encoding path and fails because WAV cannot contain a video stream.

Request the stream's attached_pic disposition from FFprobe and exclude album artwork when selecting a video stream. Add a real-media regression covering the same MP3 with and without a JPEG cover, including the resulting PCM WAV codec and duration.

Validation: 7 media tests pass; pnpm check passes; the default test set run serially passes 1047 tests with 22 environment/platform skips and no failures. The new regression fails on the original implementation.

Closes #346

Copilot AI lite review requested due to automatic review settings September 22, 2026 17:39

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@rponeawa
rponeawa merged commit ecf69e4 into hypit-ai:main Sep 23, 2026
SanHsien pushed a commit to SanHsien/hypit that referenced this pull request Sep 30, 2026
SanHsien added a commit to SanHsien/hypit that referenced this pull request Sep 30, 2026
Triage 19 commits, 20 PRs (hypit-ai#339-hypit-ai#373) and 17 issues (hypit-ai#338-hypit-ai#374) past
the v0.2.12 baseline. Four isolated, tested fixes were cherry-picked
with -x (hypit-ai#347, hypit-ai#345, hypit-ai#339, hypit-ai#361); the rest are recorded as adoption
pending, follow-upstream, monitor or not-applicable in
docs/fork/DECISIONS.md.

Baseline now v0.2.16 (557497b), PR through 373, issue through 374.

Co-Authored-By: Claude Sonnet 5.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.

[Bug] MP3 album artwork is treated as video, so media cut cannot write WAV

3 participants