Skip to content

Dimensions Tab Redesign. #2437

Closed
Closed

Description

@sr55

Wrapped the following into this Issue:
#2454 - Upscaling for Youtube
#2415 - Offer a list of pre-defined resolution limits.
#2436 - Make it easier to set No Crop
#1633 - Allow some sensible level of upscaling in the UI.
#890 - Allow upscale to the Anamorphic display dimensions
#405 - Upscaling

Bradley's comments:

Here's an HTML+CSS+JS mock up I did a few years back for improving the dimensions tab with standard resolution presets and adding features such as upscaling and padding. Everything is open for discussion.

One thing I would like to add is a scaling algorithm control with useful presets, e.g. downscaling via Lanczos and upscaling via another sinc-based algorithm or bicubic to reduce artifacts and facilitate using one of the sharpening filters afterward. We could also make super resolution an upscaling option if such an algorithm is available to us via FFmpeg. See also #1515.

Update: #2219 discusses potential to improve automatic cropping and also reminded me about Loose Crop which is available in the Linux/GTK UI. I'd love to see a Loose Crop checkbox control in all GUIs but it does occur to me that the name isn't very self explanatory. Perhaps we could call it "Crop to Modulus" "Smart Crop"?

Screenshots:

Resolution UI Screenshot

Screen Shot 2019-11-14 at 2 57 49 PM

Screen Shot 2020-04-04 at 6 28 08 AM

Video demo (zipped MP4):

Resolution UI.mp4.zip

Code:

resolution-ui-3.zip


Update 2020-05-17

Removes Modulus (and thus the need for Smart/Loose Crop), shows/hides resolution limit custom inputs, adds column headings, and simplifies to be less verbose yet still hopefully intuitive enough.

Screenshots:

Screen Shot 2020-05-17 at 2 21 24 PM

Screen Shot 2020-05-17 at 2 27 40 PM

Screen Shot 2020-05-17 at 2 25 14 PM

Screen Shot 2020-05-17 at 2 26 53 PM

Code:

resolution-ui-4.zip

Activity

  1. added this to the 1.4.0 milestone on Nov 17, 2019
  2. sr55 commented on Nov 17, 2019

    @sr55
    ContributorAuthor

    @bradleysepos feel free to edit the post above with your change details.

  3. bradleysepos commented on Nov 24, 2019

    @bradleysepos
    Contributor

    Updated first post with more info for discussion.

  4. bradleysepos commented on Apr 4, 2020

    @bradleysepos
    Contributor

    Added a screenshot of the cropping options, which do include "None" in favor of setting all sides to 0 (zero). See first post.

  5. gordielachance commented on Apr 17, 2020

    @gordielachance

    So, is now upscaling available or is this still on the stove ? Thanks !

  6. bradleysepos commented on Apr 17, 2020

    @bradleysepos
    Contributor

    So, is now upscaling available or is this still on the stove ? Thanks !

    The graphical interface is still cooking.

    NB: Upscaling has been available on the CLI for a long time, without a choice of scaler (Lanczos3 only). If you're sure you want/need upscaling, see the Picture Options section of the CLI --help (also available here) for how to set dimensions manually. You'll want to set both width and maxWidth, height and maxHeight, to make sure you override any maximum limits imposed by a preset.

  7. sr55 commented on May 17, 2020

    @sr55
    ContributorAuthor

    Couple of thoughts.

    • It looks like we will need two new preset keys for the UI dropdowns that control the behaviour.
    1. PaddingMode
    2. ResolutionLimitMode
    • Is there a reason the resolution is in the centre?

    • Resolution Limit Custom input boxes could be hidden when limit dropdown is not set to Custom.

    • Should modulus not be under the middle column?

  8. bradleysepos commented on May 17, 2020

    @bradleysepos
    Contributor

    The layout is intended to be a logical top-to-bottom, left-to-right flow (it's not perfect). So I think the idea was to perceptually rotate first—though under the hood it might be less expensive to rotate later, all user settings depend on the final rotation—then crop, set resolution, etc.

    Modulus is related to storage resolution and almost everything these days supports mod 2... I wonder if/when we can get rid of it entirely.

    Yes those boxes could be hidden when not custom. I think at the time the idea was to show what was happening to the dimensions with each step, which may or may not be necessary.

    Thanks for taking a look. 😸

  9. bradleysepos commented on May 17, 2020

    @bradleysepos
    Contributor

    I think only the Xbox Legacy (read: Xbox 360) and Apple 240p30 (read: old video iPod) official presets use non-mod2, and we've discussed removing them at some point. Maybe now's a good time? Remove the modulus control, move up the cropping controls, and Loose/Smart Crop isn't necessary anymore.

  10. sr55 commented on May 17, 2020

    @sr55
    ContributorAuthor

    I guess it's logical but it feels "weird" to me. I'm not sure why.

    To make space, Looks like I'm going to have to retire the old preset side panel and either do something similar to the mac with the dropdown button, or maybe implement a preset manager that I've been wanting to do for a while.

  11. 8 remaining items

  12. sr55 commented on Jun 26, 2020

    @sr55
    ContributorAuthor

    Slowly chipping away at the Windows UI:

    image

    This re-uses the existing Max Width / Height to setup the Resolution Limit. If it matches a dropdown item, it'll default to using that, otherwise custom.

    The only quirk to this is if the user does Custom and 1080p, it'll reload as 1080p not custom. I'm not sure how I feel about this but I didn't really want to add another preset key either.

    Not done anything with changing crop over to a dropdown yet, or the scaling options. Will await your feedback before tackling that.

    I'm going to side track into removing the legacy preset side panel next and replace that with either a preset manager or similar preset display to mac. Not sure what'll be best in the short term. That'll free up the horizontal space for the pad controls.

    Supported still on the Add Preset view with similar logic:

    image

    Codes available if you want to have a play. Will be in a nightly tomorrow sometime.

  13. strontiumdesign commented on Jul 25, 2020

    @strontiumdesign

    Added a screenshot of the cropping options, which do include "None" in favor of setting all sides to 0 (zero). See first post.

    Would this persist? Surely the same options need to be available in Preferences as a default.

  14. bradleysepos commented on Jul 25, 2020

    @bradleysepos
    Contributor

    Would this persist? Surely the same options need to be available in Preferences as a default.

    Official presets (except Production presets) all automatically crop by default. Persisting other cropping values will be accomplished the same as it is today: make your adjustments, then save a new HandBrake preset to use in the future.

  15. galad87 commented on Oct 2, 2020

    @galad87
    Contributor

    The MacGui is almost done, there are some changes to be made in hb_preset_job_init and some new presets keys:

    PictureAllowUpscaling
    PictureUseMaximumSize
    PicturePadMode = {none, fill, filHeight, fillWidth, custom}

    for the padding filter custom mode we can reuse the preexisting PicturePad key.

    I think it will be enough to modify hb_preset_job_init to handle these three new keys to get it working in the cli too.

  16. jstebbins commented on Oct 2, 2020

    @jstebbins
    Contributor

    I guess I better get on this 😬 Would everyone be ok with targeting spring for a release with this feature? I've got a lot of irons in the fire right now.

  17. bradleysepos commented on Oct 2, 2020

    @bradleysepos
    Contributor

    Works for me. It's been a crazy year for everyone.

  18. sr55 commented on Oct 4, 2020

    @sr55
    ContributorAuthor

    We can get the mac/windows UI's done in the mean time.

    I'm in no rush to get a release out this year. I have a few things started, not completed and not stabilised so best for everyone it moves into next year. 1.3 is reasonably stable anyway.

  19. jstebbins commented on Oct 9, 2020

    @jstebbins
    Contributor

    I've missed much of the conversation around this. How is PictureAllowUpscaling, PictureUseMaximumSize used and how is it represented in the UI? I'm wondering if PictureAllowUpscaling is really needed since it seems to be only used in conjunction with PictureUseMaximumSize.

  20. galad87 commented on Oct 10, 2020

    @galad87
    Contributor

    My assumption is that PictureAllowUpscaling is required by the UI to enable or disable upscaling, so unfortunately both are required in this design.
    Here's Bradley's latest UI example: http://s3.amazonaws.com/handbrake-public/resolution-ui-6/index.html

  21. bradleysepos commented on Oct 10, 2020

    @bradleysepos
    Contributor

    One can upscale to less than the resolution limit and pad the rest with borders.

  22. linked a pull request that will close this issueLinGui: Reworked dimensions tab #3546on Apr 17, 2021
  23. bradleysepos commented on Apr 17, 2021

    @bradleysepos
    Contributor

    Some discussion on #3546 regarding the GTK GUI that applies to others as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions