Wrapper for Anime4K
Makes it easy to encode a Anime using the MPV shaders with predefined encoding profiles!
What you need:
Installing the necessary python libs
pip3 install -r requirements.txt
Download the latest shaders (GLSL (v3.1 Stable)) from here. Put them all into one folder for example called shaders
Assuming your Anime Movie/Episode is called input.mkv and has a resolution of 1920x1080. Now you want to upscale it to 4K (3840x2160). Here are the commands you would run.
python3 Anime4K.py -m shader --shader_dir "./shaders" --width 3840 --height 2160 -i input.mkv --output x264_upscale.mkv
python3 Anime4K.py -m encode -i x264_upscale.mkv --output x265_10bit.mkv
python3 Anime4K.py -m audio -i input.mkv
python3 Anime4K.py -m subs -i input.mkv
python3 Anime4K.py -m mux -i x265_10bit.mkv -o input_upscaled_with_audio_and_subs.mkv
Feel free to explore the other options of the program (or profiles) by typing:
python3 Anime4K.py --help
To get a overview of your current encoding of ffmpeg you may install the ffmpeg-progressbar-cli
npm install --global ffmpeg-progressbar-cli
Don't worry the script will also work with normal ffmpeg.
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
Related projects:
Thanks to:
The code in this project is licensed under GNU GENERAL PUBLIC LICENSE.