Repository navigation
Conversation
This branch has not been deployed
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 default
Scale 720pandScale 1080ppresets used a fixed output size (scale=1920:1080andscale=1280:720). Any video that was not 16:9 was stretched or squeezed into a 16:9 frame. This change keeps the source aspect ratio and scales the short side to 720 or 1080 pixels. Fixes #829.Key Changes
Application/FileConverter/Settings.default.xml: all 10Scale 720p/*andScale 1080p/*presets (Mkv, Mp4, Webm, Ogv, Avi) now usescale='if(gt(iw,ih),-2,N)':'if(gt(iw,ih),N,-2)':flags=lanczos,format=yuv420p, with N set to 720 or 1080.-2keeps the computed side even, which yuv420p requires.flags=lanczosgives sharper scaling than the default bicubic.CHANGELOG.md: added aFixes:entry under Version 2.2.IsDefaultSettingsare replaced fromSettings.default.xmlon startup (SettingsService.cs).Verification Evidence
Reproduced with the bundled ffmpeg: the old filter turns a 464x848 clip into 1920x1080 (display aspect ratio 29:53) and a 640x480 clip into a stretched 1920x1080.
Ran all 10 changed presets with the same argument layout the app builds (
-n -progress pipe:1 -i <in> <custom command> <out>) on a 464x848 clip with audio. All exited 0. Results: 720p presets give 720x1316, 1080p presets give 1080x1974, audio kept.Output sizes with the new filter and the libx264 encoder:
The settings file still parses as valid XML. I did not run the WPF application itself, and the repo has no automated tests.