xinntao / Real-ESRGAN

Real-ESRGAN aims at developing Practical Algorithms for General Image/Video Restoration.
BSD 3-Clause "New" or "Revised" License
27.13k stars 3.41k forks source link

Real-ESRGAN the fixed version #413

Open marana22 opened 1 year ago

marana22 commented 1 year ago

I sell the fixed tool the fixed version does not suffer from lags with the audio harukadosdos@gmail.com

TechnoMasterBoy commented 1 year ago

I sell the fixed tool the fixed version does not suffer from lags with the audio

Imagine trying to sell something that is free because of issues that you have yourself because you're too dumb to use it. Nice scam.

kiam001 commented 1 year ago

need whan you convert it back to video too -r (framerate) for esragan input

5min google ffmpeg drop frames by frames input

kiam001 commented 1 year ago

ffmpeg -r 25.000 -i "D:\work\tmp\out_frames\frame%%08d.jpg" -c:v libx264 -r 25.000 -pix_fmt yuv420p "D:\work\output\%%G.mkv"

TechnoMasterBoy commented 1 year ago

ffmpeg -r 25.000 -i "D:\work\tmp\out_frames\frame%%08d.jpg" -c:v libx264 -r 25.000 -pix_fmt yuv420p "D:\work\output%%G.mkv"

ffmpeg -r 25/1 -start_number 0 -i %%6d.png -preset veryslow -pix_fmt yuv420p -x264-params bframes=16:merange=24:no-fast-pskip=1:rc-lookahead=120:subme=11:aq-mode=2:open-gop=1 -refs 1 -crf 15 output.mp4 This will give you the best quality. If you want faster, use GPU instead. Replace the %%6d.png with whatever you use. Put the frames in the same folder as where you're executing this command.

If you want a piss easy to use setup, I've made one here: https://mega.nz/file/c5xAgY5b#vOvEAIUCDszw85Upzi2CkQUnU_GD2d7q78AABzW80lI However, everything is tied to C, so if you want to use your D drive, you'll have to edit the bat files, but that shouldn't take long. There's a full guide in it too explaining every step on how to use it. The link will die over time as I update it every now and then.

kiam001 commented 1 year ago

this was by the way my full script https://github.com/kiam001/Upscale-bat-file/blob/main/start.bat

kiam001 commented 1 year ago

@TechnoMasterBoy thx for improof :) https://github.com/kiam001/Upscale-bat-file/commit/1cb68eff927a91a076b7dc4ee84d99e46b2b5c0c

TechnoMasterBoy commented 1 year ago

@TechnoMasterBoy thx for improof :) kiam001/Upscale-bat-file@1cb68ef

Nice. Btw I saw the -vf scale=1920x1080 You can set ESRGAN to upscale 2x or 3x instead of 4x, unless you need 4x to hit 1920x1080. It should speed up the upscale time for you.