This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

New Feature: RealSR (Real-World Super-Resolution)
#7
I was finally able to encode using https://github.com/jixiaozhong/RealSR

The problem is that the encoding speed is too slow, the resizing of a 30sec movie took 57min.

To perform the test I used the following script (assuming that all the executable are in the script's directory)

# 1) extract all the frames in a temporary directory
.\ffmpeg.exe -i input.mkv -q:v 1 .\frames\input_%05d.jpg

# 2) resize the frames
.\realsr-ncnn-vulkan.exe -v -m .\models\models-DF2K_JPEG -f jpg -i .\frames -o .\fresize

# 3) encode the resized frames back in the movie
.\ffmpeg.exe -y -framerate 23.976 -i "fresize\input_%05d.jpg" -vcodec libx264 -vf "scale=1920:800:flags=lanczos" -crf 18 output.mp4
 
The result is very good, but unfortunately is too slow, to encode a movie with a length of 1h will be necessary about 5 days Sad

Probably google, using its GPU farm will be able to use these methods, but for a standard user they are unusable.
Reply


Messages In This Thread
RE: New Feature: RealSR (Real-World Super-Resolution) - by Dan64 - 02.06.2021, 10:56

Forum Jump:


Users browsing this thread: 1 Guest(s)