Upscale anime to 4k using ffmpeg with anime4k shaders, 48fps using rife in vapoursynth, and moving the anime into proper subfolders to allow Plex or Jellyfin to auto add the anime.
Requires pip install anitopy
for python script to work
(Given an anime video, upscale and convert the anime to 4k 48fps)
- use python script to extract anime title using anitopy
- make a full path directory and create the necessary folders for Jellyfin or Plex using python
- use ffmpeg with vapoursynth script to upscale to 4k and interpolate to 48fps outputting as an mp4 file
- clean up downloads by deleting all empty folders
[Anime Folder]
[Season]
[anime mp4 file]
[anime subtitle files]
Scripts can be simplified and improved but should work as is for common downloaded anime episodes WITH changes to directory information.
The variable %UserDirectory%
can be changed to the %UserProfile%
path on windows which is the common location for documents and downloads.
Suggestions on how to improve the scripts are welcome and appreciated, but I rarely visit this repository so do not expect any quick responses.
-
VapourSynth Plugins to put in vs-plugins (script is made for NVIDIA gpu)
- vsmlrt-windows-x64-tensorrt
- LSMASHSource
- libvs_placebol
- vs-miscfilter
- Rife onnx models from onnx models or the ones found in vsmlrt or equivalent
-
Anime4k shaders can be downloaded from repository or directly from Anime4k (Shaders in repository are the original anime4k shaders merged together into 1 file for each mode for simplicity)
- Clone Repository
- Move autoconvert.bat and new_anime_name_directory.py into Documents folder
- Get vapoursynth portable into Documents folder
- Get all plugins extracting vsmlrt-windows-x64-tensorrt into vs-plugins folder and moving the dll files for LSMASHSource, libvs_placebol, and vs-miscfilter into vs-plugins folder
- Move encode 4k 48fps.vpy script into vapoursynth-portable folder
- Download ffmpeg and extract bin folder to vapoursynth-portable folder
- Download and install python
- Run
pip install anitopy
in command line - Download an anime into your downloads folder
- Add environemnt path variable UserDirectory=%UserProfile%
- Run autoconvert.bat