Log in

View Full Version : Using FFMPEG to upscale videos?


GAP
27th January 2021, 15:15
I asked a similar question on Videohelp forums but how can uou ise FFMPEG to resize and upscale videos? What is FFMPEG equivalent to "Nearest Neighbor", "Lanzcos3", "PointResize" as well as the option to make your "HD" standard?

Emulgator
30th January 2021, 17:04
http://ffmpeg.org/ffmpeg.html


2 Description

ffmpeg is a very fast video and audio converter that can also grab from a live audio/video source. It can also convert between arbitrary sample rates and resize video on the fly with a high quality polyphase filter.

ffmpeg -i foo.avi -r 1 -s WxH -f image2 foo-%03d.jpeg

This will extract one video frame per second from the video and will output them in files named foo-001.jpeg, foo-002.jpeg, etc. Images will be rescaled to fit the new WxH values.

I guess for uprezzing in 2021 one might want to prefer AI,
so no I wouldn't suggest using these algos "Nearest Neighbor", "Lanzcos3", "PointResize" nor ffmpeg for applying these.

GAP
13th February 2021, 15:46
http://ffmpeg.org/ffmpeg.html



I guess for uprezzing in 2021 one might want to prefer AI,
so no I wouldn't suggest using these algos "Nearest Neighbor", "Lanzcos3", "PointResize" nor ffmpeg for applying these.

Okay. So what methods do you suggest then?

Emulgator
15th February 2021, 14:41
What is you main goal ? Uprezzing ?
Available methods will depend on your hardware.

If you have a Win10 OS with a beefy GPU (lets say nVidia 20x0, 30x0):
For instance Topaz Video Enhance AI.

If no Win10 OS with no beefy GPU:
Maybe nnedi3_rpow2.

For usable results almost all uprezzers demand that source material is already prepared to the max.:
No artifacts like blockiness, blends, no interlaced, no...(you name it)

AI will guess at source material and reconstruct from there, depending on the training model, sometimes astonishing, sometimes poor. Imagine giving a 1,5"x2" passport photo to an art painter and telling him:
Paint that tree in the back, only bigger, greener, I want to see all branches and very detailed leaves.

Just run test scripts across available resizers and compare what you like most.
And there is lots of examples with samples here in the forum, you may want to search for eedi, nnedi

zub35
19th February 2021, 20:46
Topaz Video Enhance AI ; nnedi3_rpow2
or RealSR (https://github.com/nihui/realsr-ncnn-vulkan) ; SRMD (https://github.com/nihui/srmd-ncnn-vulkan) ; waifu2x (https://github.com/nihui/waifu2x-ncnn-vulkan) (ncnn Vulkan). GUI video2x (https://github.com/k4yt3x/video2x)