Repository navigation
Audio dialog: offer only containers that hold the video codec too (task #132) - #285
Merged
StuartCameronCode merged 1 commit intoNov 28, 2026
Conversation
…132) The Passthrough audio dialog's "Change container format" listed every container that could copy the sound, ignoring the video codec, so AV1 could be switched into MOV/AVI and v210/ProRes/HuffYUV into MP4, pairs the worker refuses. The service now filters by the video codec's verdict (offered) as well as the audio copy table, and the refusal's "save as" list does the same on both sides (Dart copyProblem, Rust audio_copy_problem take the codec). Also fixes the dialog's chips: the first container was pre-selected, and a selected ChoiceChip reports a tap as onSelected(false), so it could never be picked. Each chip now pops on any tap. Tests sweep VideoCodec x copy codec x container, pin named table cases and pump the dialog; the Rust test sweeps the message. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Passthrough audio dialog's "Change container format" option listed every container that could copy the sound, whatever the video codec. That included pairs the worker refuses: AV1 in MOV/AVI, and v210 or ProRes in MP4. It now offers only containers that copy the sound and are
offeredfor the selected video codec. Both checks read the generated output-capabilities table and nothing restates it.AudioCompatibilityService.compatibleContainers(codec, videoCodec)combines the audio copy table with the video verdict.MainWindowpasses the job's codec.copyProblemin Dart,audio_copy_problemin Rust) leaves out containers the video codec isn't offered in. The worker passes the job's codec, so the app and the worker word it the same way. Calls that pass no codec keep the old wording.ChoiceChipreports a tap asonSelected(false). Chips now start unselected and pick their container on any tap.Found by task #131's in-app docs audit; this is task #132.
Testing
app/test/audio_compatibility_containers_test.dart:VideoCodec.values× copy codecs × containersVideoCodec::ALL×ContainerFormat::ALL× codecs overaudio_copy_problem.cargo test(all green)--exclude-tags heavy,gpu, green)cargo test --lib output_capabilitiesandflutter analyzeon the changed files🤖 Generated with Claude Code