Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
16th March 2013, 00:51 | #1 | Link |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,856
|
Current guide to x264 "--vf" downscaling modes
I'm playing around with the internal x264 scaling modes from libswscale. I'm having a devil of a time finding useful documentation about them. The most definitive I've found is this one, but the actual research was done in 2008!
http://forum.doom9.org/showthread.php?t=160593 The default of bicubic is good for moderate downscaling almost everywhere. But I'm trying to figure out what's the most neutral one for big ratios (like 1920x1080 to 352x192); that's >5x. And with 4K sources starting to be used, we'll have >10x ratios for some scenarios. For this kind of stuff, even bicubic has historically had trouble with the fine details of rolling credits and that sort of thing. Heck, and optimal scaling algorithm has as many taps as the source frame has pixels that overlap with the region that the output pixel comes from, so that'd be 25+ even in the 1080p -> 192p case. |
16th March 2013, 01:02 | #2 | Link |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,251
|
I don't think there is a "best" one, because they all have their pros and cons.
But a nice comparison of various resize kernels (not all available in libswscale) can be fond here, for example: http://svn.int64.org/viewvc/int64/re...c/kernels.html
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
16th March 2013, 01:29 | #3 | Link |
Registered User
Join Date: Dec 2012
Posts: 197
|
From what I remember, resizing that drastically means that it's best to use multiple steps of 0.5 reductions each time using gaussian and bilinear. As gaussian blurs more than bilinear but iterative bilinear adds distortions, I think people generally save bilinear for the last step.
Note that the above at least applies to reduction work in image editing. I've no idea if libswscale will perform similarly. |
16th March 2013, 03:37 | #4 | Link | ||
x264 developer
Join Date: Sep 2004
Posts: 2,392
|
Quote:
Quote:
|
||
16th March 2013, 03:47 | #5 | Link | ||
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,856
|
Quote:
Beyond that, I don't want extra hard-to-compress detail like ringing. And I want it to be reasonably sharp, without problematic blurring or sharpening. Quote:
It'd be nice if they'd say which parameters were being used in bicubic, lanczos, etcetera. Time for more testing! |
||
16th March 2013, 04:24 | #6 | Link | |
Registered User
Join Date: Dec 2012
Posts: 197
|
Quote:
In any case, ImageMagick has a thorough page detailing its plethora of scaling algorithms and their relative sharpness and potential artifacts. Only some apply to swscale, but the resource could be useful. The author visits this forum too. |
|
16th March 2013, 04:31 | #7 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Quote:
|
|
Tags |
downscaling, libswscale, scaling |
Thread Tools | Search this Thread |
Display Modes | |
|
|