Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

QualityScaler 3.12 - image/video AI upscaler app

Image/video AI upscaler app for Windows compatible with any GPUs · By jangystudio

video render/codec options + render using GPU

A topic by Osayidan created 5 days ago Views: 56 Replies: 8
Viewing posts 1 to 8

Is it possible to add options for video output/encoding and to enable using GPU to render?

I can render the same video file in approx 45 minutes instead of 4-5 hours using nvidia NVEnc h.264 codec with GPU enabled using ffmpeg command line (using the frames folder as input). Resulting file is much smaller too about 2GB instead of 10GB from this software in my test video with no human noticeable quality change.

So some control over output codec would be very appreciated.

Thanks,

Developer

Hi my friend,

I have tried for a long time to implement hardware acceleration of ffmpeg but without success unfortunately. The documentation is very poor.

Do you have any advice? Any guides I could follow?

From what I understand ffmpeg has to be compiled with hardware acceleration to do that, and they don't distribute .exe already precompiled this way :(

The latest .exe I downloaded appears to do it, to use GPU for rendering I think is automatic once you use NVEnc version of h.264 or h.265, here's the command line I used with newest ffmpeg downloaded from ffmpeg.org for my testing:

.\ffmpeg.exe -f concat -safe 0 -i frames.txt -c:v h264_nvenc -b:v 3000k -r 29.97  "O:\VideoProd\upscale\output.mp4"

notice the codec h264_nvenc, with this in task manager I see ffmpeg using 60 - 90% GPU and render completes in about 45 minutes for a series of frames that took about 5 hours in QualityScaler. My upscale project videos don't have audio so fortunately I didn't need to figure that out but I imagine however you are already doing audio should continue to work.

Developer

Hi my friend, thank you!

So if I understand correctly the frames.txt file contains the list of upscaled frames as a path to the file right?

yes here's the doc for that https://trac.ffmpeg.org/wiki/Concatenate

Also for the text file it would help if you zero-pad the frames file names when generating them, to make my text file I had to first rename since they start as 000, then 1000, 10000 etc, windows doesn't list them in the proper order so exporting the list to a text file was annoying :P

Developer

Hi my friend!

It works! awesome!

Thanks to you finally there will be hardware accelerated encoding on GPU, Nvidia, AMD and Intel specific (in addition to CPU encoding that I will leave for compatibility)

This also allows me to finally get rid of some dependencies and then have a lighter and more optimized app.

I thank you from the bottom of my heart :D

Good news, I will give it a try when you update.

Developer

Thank you my friend!

The version 4.0 will take a little more time because it will be a true major release, with improvements in all the features and especially a more elegant and clean interface (the current one has become a bit of a mess haha)


(I leave a small spoiler)