Add Final Resize Width setting#69
Open
huyparody wants to merge 1 commit into
Open
Conversation
Passes --final-resize-width to aji_encode. Width and height combine (both set = exact output resolution, for anamorphic sources; one alone keeps aspect); Final Resize Factor stays disabled while either is set. Requires aji with --final-resize-width support.
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.
What changed
Adds a Final Resize Width field above Final Resize Height, passing
--final-resize-widthto aji_encode:resolution. Restores the correct 16:9 display aspect for anamorphic
sources such as DVDs — e.g. a 720x480 source upscaled 2x becomes
1440x960 (3:2), and setting
1708x960produces proper 16:9 output.ratio (width-only mirrors the existing height-only behavior).
New strings added to
Resources.resx/Resources.ja-JP.resx/Resources.Designer.cs.Depends on
the-database/animejanai-inference#8 - the GUI passes
--final-resize-width, which aji_encode only understands with that patch.That PR needs to be merged and released as a new aji version, then
AjiVersioninBuildVideoJaNai/Program.csbumped to it, before this PRis merged; otherwise the flag is rejected as an unknown arg on aji v0.6.0.
Tested
Built locally and run against the patched engine (Windows, TensorRT,
hevc_nvenc). DVD source 720x480 (DAR 16:9):