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
Describe the change or feature you'd like to see added to HandBrake:
Bicubic (by default Catmull-Rom in ffmpeg) is better for downscaling than Lanczos (too many ringing artifacts and bright features in panning scenes flickering too much) and it's pretty much a standard (e.g. Youtube and Twitch downscale with Catmull-Rom). Also maybe make it a default scaler since people much more often downscaling than upscaling (Or hard-code bicubic for downscaling and lanczos for upscaling?).
Adding this should be trivial - simply use SWS_BICUBIC instead of SWS_LANCZOS.
What version of HandBrake are you currently using? (e.g., 1.0.0)
HandBrake 1.1.1.
What operating system and version are you running? (e.g., Ubuntu 16.04 LTS, macOS 10.3 High Sierra, Windows 10 Creators Update)
Windows 10 1803.
Reacted by Viktor Svub, Comitant, stderr-to-devnull, dr-benway and FrostBird347
There was a patch on reviewboard waaaay back. I believe I commented there but who knows.
To recap, there are scaling algorithms that are more academic than practical. I'm not looking to restrict anyone's options but we may want to include a useful subset and maybe make the rest available to the CLI.
I'm not in favor of switching to bicubic for downscaling. It has its own issues and is generally somewhat smooth/blurry. Lanczos 3-tap is generally preferred due to speed and its artifacts typically being visually perceived as sharpness.
That said, when we overhaul the dimensions UI, we will likely start allowing upscaling via new controls. There are scaling algorithms more suited for upscaling than Lanczos3 and we should default to one in that case.
I believe we discussed having a menu with useful combos like the following, in which case too many algos would add a lot of complexity for little gain.
Sharpening is basically adding ringing artifacts via edge contrast, and doing it in a second step is actually slower than just using Lanczos3 despite the additional control. Of course there is also Lanczos2 which Apple uses in the macOS UI for speed but it looks worse.
So, you're not wrong. That said, for most people most of the time, Lanczos3 is a one stop shop for downscaling. But we'll provide more options, including Bicubic, for people who want to do other things.
Aside, I don't consider any of the popular services and hardware vendors you mention to be ultimately concerned with quality. All are typically concerned with speed primarily, otherwise they would be spending cycles on sinc, maybe with some tasteful sharpening in post.
Honestly, as a causal user, I think it would make more sense to just have separate dropdown menus (or command line arguments, I guess) for down and up if you are going to allow different defaults for each. So both menus would have (maybe not in this order):
Definitely also interested in this, especially for trying to scale video containing pixel art. Currently I have my pixel art input display looking perfect in my raw footage, but downscaling in Handbrake adds ring artifacts.
I would be very interested a list dialog on the Dimensions tab, containing Nearest, Area, Bilinear, Bicubic, and Lanczos (Default).
(Oh and Sinc apparently. This is my first time hearing of it.)
...Or even just letting the -sws_flags parameter work in Additional Options.
I brought this up in a duplicate issue report a while ago, but thought it was worth directly mentioning in the main issue page: Personally I would get a lot of use out of being able to upscale videos with nearest neighbour scaling. There have been plenty of times where I have found myself having to feed low resolution lossless footage (and/or lossless footage with a limited+contrasting colour palette) through ffmpeg just to upscale it with nearest neighbour filtering prior to sending it to handbrake.
Currently users working with low res pixel art (and/or footage with a limited colour palette, especially when said palette has a lot of contrast) have to choose between: Introducing very obvious blurring by upscaling it through handbrake, wasting a significant amount of time and storage space by upscaling it through ffmpeg into a lossless format before compressing the upscaled file with handbrake, or by wasting a significant amount of time and quality by upscaling it through ffmpeg into a lossy format before compressing the upscaled file with handbrake.
We are interested in this but it is mostly about resources like time. UI changes are necessary as well, and I would like to add the ability to specify resolution multiples such as 2x, 3x, 4x, etc. when upscaling so they can be saved to a preset. So any delay is not for not wanting, only resources. Patches are welcome, but note that this is slightly more involved to implement in a meaningful and useful way.
Activity
sr55 commentedon Aug 3, 2018
I thought we had an issue open for adding a set of scalers as an option but I can't find it :/
My thoughts are more along the line of just adding support for the set available in ffmpeg. It's trivial enough to do
bradleysepos commentedon Aug 4, 2018
There was a patch on reviewboard waaaay back. I believe I commented there but who knows.
To recap, there are scaling algorithms that are more academic than practical. I'm not looking to restrict anyone's options but we may want to include a useful subset and maybe make the rest available to the CLI.
I'm not in favor of switching to bicubic for downscaling. It has its own issues and is generally somewhat smooth/blurry. Lanczos 3-tap is generally preferred due to speed and its artifacts typically being visually perceived as sharpness.
That said, when we overhaul the dimensions UI, we will likely start allowing upscaling via new controls. There are scaling algorithms more suited for upscaling than Lanczos3 and we should default to one in that case.
I believe we discussed having a menu with useful combos like the following, in which case too many algos would add a lot of complexity for little gain.
Scaling type (down/up):
bradleysepos commentedon Aug 4, 2018
Sharpening is basically adding ringing artifacts via edge contrast, and doing it in a second step is actually slower than just using Lanczos3 despite the additional control. Of course there is also Lanczos2 which Apple uses in the macOS UI for speed but it looks worse.
So, you're not wrong. That said, for most people most of the time, Lanczos3 is a one stop shop for downscaling. But we'll provide more options, including Bicubic, for people who want to do other things.
Aside, I don't consider any of the popular services and hardware vendors you mention to be ultimately concerned with quality. All are typically concerned with speed primarily, otherwise they would be spending cycles on sinc, maybe with some tasteful sharpening in post.
[-]Add software bicubic scaler.[/-][+]Add additional software scalers.[/+]SirYodaJedi commentedon Apr 16, 2020
Honestly, as a causal user, I think it would make more sense to just have separate dropdown menus (or command line arguments, I guess) for down and up if you are going to allow different defaults for each. So both menus would have (maybe not in this order):
Mine181 commentedon Mar 31, 2026
Any update on this issue?
jul059 commentedon Apr 18, 2026
I am also very much interested in this feature, especially for spline36 and ewa_lanczos ("Jinc").
Philo-Wintercoat commentedon Oct 14, 2026
Definitely also interested in this, especially for trying to scale video containing pixel art. Currently I have my pixel art input display looking perfect in my raw footage, but downscaling in Handbrake adds ring artifacts.
I would be very interested a list dialog on the Dimensions tab, containing Nearest, Area, Bilinear, Bicubic, and Lanczos (Default).
(Oh and Sinc apparently. This is my first time hearing of it.)
...Or even just letting the -sws_flags parameter work in Additional Options.
FrostBird347 commentedon Oct 14, 2026
I brought this up in a duplicate issue report a while ago, but thought it was worth directly mentioning in the main issue page: Personally I would get a lot of use out of being able to upscale videos with nearest neighbour scaling. There have been plenty of times where I have found myself having to feed low resolution lossless footage (and/or lossless footage with a limited+contrasting colour palette) through ffmpeg just to upscale it with nearest neighbour filtering prior to sending it to handbrake.
Currently users working with low res pixel art (and/or footage with a limited colour palette, especially when said palette has a lot of contrast) have to choose between: Introducing very obvious blurring by upscaling it through handbrake, wasting a significant amount of time and storage space by upscaling it through ffmpeg into a lossless format before compressing the upscaled file with handbrake, or by wasting a significant amount of time and quality by upscaling it through ffmpeg into a lossy format before compressing the upscaled file with handbrake.
bradleysepos commentedon Oct 14, 2026
We are interested in this but it is mostly about resources like time. UI changes are necessary as well, and I would like to add the ability to specify resolution multiples such as 2x, 3x, 4x, etc. when upscaling so they can be saved to a preset. So any delay is not for not wanting, only resources. Patches are welcome, but note that this is slightly more involved to implement in a meaningful and useful way.