You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"?
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.
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.
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.
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.
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.
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:
Codes available if you want to have a play. Will be in a nightly tomorrow sometime.
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.
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.
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.
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.
Activity
sr55 commentedon Nov 17, 2019
@bradleysepos feel free to edit the post above with your change details.
bradleysepos commentedon Nov 24, 2019
Updated first post with more info for discussion.
bradleysepos commentedon Apr 4, 2020
Added a screenshot of the cropping options, which do include "None" in favor of setting all sides to 0 (zero). See first post.
gordielachance commentedon Apr 17, 2020
So, is now upscaling available or is this still on the stove ? Thanks !
bradleysepos commentedon Apr 17, 2020
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.sr55 commentedon May 17, 2020
Couple of thoughts.
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?
bradleysepos commentedon May 17, 2020
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. 😸
bradleysepos commentedon May 17, 2020
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.
sr55 commentedon May 17, 2020
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.
8 remaining items
sr55 commentedon Jun 26, 2020
Slowly chipping away at the Windows UI:
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:
Codes available if you want to have a play. Will be in a nightly tomorrow sometime.
WinGui: Experimental new Dimensions Tab Design. (Part 1 of Several). …
WinGui: Adding support for the new resolution limit setup to the pres…
strontiumdesign commentedon Jul 25, 2020
Would this persist? Surely the same options need to be available in Preferences as a default.
bradleysepos commentedon Jul 25, 2020
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.
galad87 commentedon Oct 2, 2020
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.
jstebbins commentedon Oct 2, 2020
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.
bradleysepos commentedon Oct 2, 2020
Works for me. It's been a crazy year for everyone.
sr55 commentedon Oct 4, 2020
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.
jstebbins commentedon Oct 9, 2020
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.
galad87 commentedon Oct 10, 2020
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
bradleysepos commentedon Oct 10, 2020
One can upscale to less than the resolution limit and pad the rest with borders.
bradleysepos commentedon Apr 17, 2021
Some discussion on #3546 regarding the GTK GUI that applies to others as well.