Log in

View Full Version : Good way to upscale video ?


lutinor
4th December 2011, 22:58
Hi all,

I need to upscale 720x576 -> 1280x720. It's animation movie. Is there a better tool than the x264 resize option about that ? If not, what do you recommend in cli ?

Thx in adv,

Max.

LoRd_MuldeR
5th December 2011, 02:03
If Avisynth is an option, you may want to have a look at this plug-in:
http://forum.doom9.org/showthread.php?t=160038

Also note the description of the different resize kernels found here:
http://svn.int64.org/viewvc/int64/resamplehq/doc/kernels.html

You may also consider using "NNED3_rpow2(rfactor=2)" to blow up the image size by 2x, then downsize with a "classic" resizer to the final resolution:
http://forum.doom9.org/showthread.php?t=147695

As for x264 CLI, you can simply add "--video-filter resize:width=1280,height=720,method=spline" or "...method=lanczos" (what you prefer).

henryho_hk
5th December 2011, 05:43
We can save the final downsize with:
nnedi3_rpow2(rfactor=2, cshift="spline36resize", fwidth=1280, fheight=720)
And it corrects for the chroma displacement at the same time.

Indeed, depending on the source aspect ratio, we may have a more correct ratio with src.crop(8,0,704,576,align=true).nnedi3_rpow2(rfactor=2, cshift="spline36resize", fwidth=1280, fheight=720)

lutinor
5th December 2011, 11:49
thx both but basically :

Is it really useful or basic cli resize is enough?

LoRd_MuldeR
5th December 2011, 13:17
You have to decide yourself. NNEDI3 can do "magic" for 2x or even 4x upscale.

In this case, however, the result after the final resize may only be slightly different from a plain Spline36Resize...

A small test made a while ago:
http://mulder.brhack.net/temp/resize/Resize.html

lutinor
5th December 2011, 14:17
You have to decide yourself. NNEDI3 can do "magic" for 2x or even 4x upscale.

In this case, however, the result after the final resize may only be slightly different from a plain Spline36Resize...

A small test made a while ago:
http://mulder.brhack.net/temp/resize/Resize.html

Impressive ! The NNEDI3 tips is about a special line that you put in cli x264 code line ?

LoRd_MuldeR
5th December 2011, 14:46
Impressive ! The NNEDI3 tips is about a special line that you put in cli x264 code line ?

NNEDI(2|3) is only available as an Avisynth filter. So you'll have to feed x264 CLI with an Avisynth script as your source.

In that script (text file) you'd write something like:
FFVideoSource("C:\Path to my source\input.mkv")
NNEDI3_rpow2(rfactor=2, cshift="spline36resize", fwidth=1280, fheight=720)

Of course you will have to install Avisynth and add the FFMS2 + NNEDI3 plug-ins.