this script works with ai-generated videos there are steps performed:
- video is split into individual frames
- frames are filtered - we left only every nth frame
- remaining frames get upscaled with ESRGAN
- correct fps is calculated
- frames are stitched into video
- some interpolation method is used to add frame transitions to the video (mci or blend)
- Please, download portable version of esrgan from here, and copy executable
realesrgan-ncnn-vulkan
and foldermodels
into repository folder. - Make sure you have
ffmpeg
installed - You can launch
./permissions.sh
-
launch scripts from the repository folder, so
cd
into it. -
to process one video provide full path to the input video, full path to the result and modulo number to be used at stage 2, for example:
./flow.sh ~/Downloads/scenes/Scene1_Chinese.mp4 ~/Downloads/results/Scene1_Chinese.mp4 15
- to process the whole folder of videos provide input and output folders as arguments, without trailing
/
, and modulo number:
./folder_processing ~/Downloads/scenes ~/Downloads/results 15