IMPORTANT TIP: Before you get started make sure your video drivers are fully updated otherwise they have older Vulkan support and not work
FOR THIS IS FOR WINDOWS & LINUX - FOR MAC INSTRUCTIONS SEE THIS VIDEO: • Free AI Video Upscalin...
Original video on using a GUI instead of the command line: • AI Video Upscaling for...
Links:
Waifu2x ncnn vulkan project: github.com/nihui/waifu2x-ncnn...
WINDOW ONLY ffmpeg: github.com/BtbN/FFmpeg-Builds...
IF NECESSARY! video format converter: handbrake.fr/
Other sites not used in this tutorial:
Single photo at a time processing online: waifu2x.udp.jp/
Main waifu2x project: github.com/nagadomi/waifu2x
NOTE: // lines are COMMENTS and not commands, don't paste these in!
==== WINDOWS =====
// Get info about video: i.e. frame rate and dimensions
ffprobe video/video.mp4
// Extact images to our frames folder
ffmpeg -i video/video.mp4 frames/frame%06d.png
// Extract audio to our video folder
ffmpeg -i video/video.mp4 video/audio.mp3
// Scale images: -s valid options are 1 2 4 8 16 or 32
waifu2x-ncnn-vulkan.exe -i frames/ -o scaled/ -n 2 -s 2
// Put video back together lower -crf means better quality but larger file sizes
// MAKE SURE YOU CHANGE THE FRAME RATES FROM 24 TO THE ACTUAL VIDEO FRAME RATE!
ffmpeg -f image2 -framerate 24 -i scaled/frame%06d.png -i video/audio.mp3 -r 24 -vcodec libx264 -crf 16 video/upscaled.mp4
==== LINUX ====
// Open a terminal and CHANGE THE DIRECTORY to where you have the waifu2x-ncnn-vulkan program copied
// Make the 3 additional subdirectories we will be using
mkdir video
mkdir frames
mkdir scaled
// Install ffmpeg directly - no need to download it like with Windows!
sudo apt install ffmpeg
// Get info about video: i.e. frame rate and dimensions
ffprobe video/video.mp4
// Extract images to our frames folder
ffmpeg -i video/video.mp4 frames/frame%06d.png
// Extract audio to our video folder
ffmpeg -i video/video.mp4 video/audio.mp3
// Scale images: -s valid options are 1 2 4 8 16 or 32
./waifu2x-ncnn-vulkan -i frames/ -o scaled/ -n 2 -s 2
// Put video back together lower -crf means better quality but larger file sizes
// MAKE SURE YOU CHANGE THE FRAME RATES FROM 24 TO THE ACTUAL VIDEO FRAME RATE!
ffmpeg -f image2 -framerate 24 -i scaled/frame%06d.png -i video/audio.mp3 -r 24 -vcodec libx264 -crf 16 video/upscaled.mp4
Негізгі бет FREE AI Video Upscaling for Windows Mac and Linux
Пікірлер: 44