02.06.2021, 10:56
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)
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
Probably google, using its GPU farm will be able to use these methods, but for a standard user they are unusable.
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

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