Repository navigation
Conversation
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.
Problem and behavior
Incomplete model-generated HTML could reach the renderer, renderer failures could lose diagnostic output, and failed audio muxing could be reported as a successful silent video. Sleep exports also used inconsistent loudness processing across audio and video, allowing TTS clip levels to vary noticeably.
This change rejects incomplete compositions and retries extraction/post-processing/validation once before reporting failure. Both rendering entry points pin HyperFrames to 0.6.25, use one worker and a shared render lock, capture both output streams to logs, and clean up process groups on timeout. Muxing errors now propagate and successful merges replace the final file only after completion. The fallback timeline uses the actual composition ID, and export progress scaling is corrected.
Sleep audio export and section-audio generation measure each clip and apply bounded fixed gains, leaving silence and unmeasurable quiet material unboosted. Audio and video sleep exports share gentle compression, softened highs, and measured two-pass mastering targeting -21 LUFS / -3 dBTP. Audio mastering runs after BGM mixing and uses a floating-point intermediate; pitch and tempo remain unchanged. Updated English and Chinese descriptions reflect the behavior.
Validation
cargo test --offline --lib commands::audio -- --include-ignored: 84 passed, including real FFmpeg/FFprobe integration tests.cargo fmt --manifest-path src-tauri/Cargo.toml --all -- --check,git diff --check, and translation JSON parsing passed.Review and rollout notes
fix/audio-tail-cutoff-on-export); merge fix(audio): prevent tail truncation during video export #2 first, then retarget this PR tomainif needed. The diff contains only the follow-up work.