Skip to content

Encode anime to 4k using Anime4k filters and interpolate to 48fps using Rife, move anime into proper subfolders with proper seasons

License

Notifications You must be signed in to change notification settings

ryandash/Convert-and-Move-Anime

Repository files navigation

Convert-and-Move-Anime

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.

Script autoconvert.bat

(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

Final result:

[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.


Dependencies:

  • VapourSynth VapourSynth Plugins to put in vs-plugins (script is made for NVIDIA gpu) (already included in repo)
  • FFmpeg
  • Python
  • 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)

Instructions:

  1. Clone Repository
  2. Move autoconvert.bat and new_anime_name_directory.py into Documents folder
  3. Get vapoursynth portable into Documents folder
  4. Get and extract dll files for LSMASHSource, libvs_placebol, and vs-miscfilter into vs-plugins folder (can be found in cloned repo)
  5. Download ffmpeg and extract bin folder contents to vapoursynth-portable folder
  6. Download and install python
  7. Run python -m pip install anitopy in command line
  8. In command line navigate to VapourSynth python and run
python -m pip install -U packaging setuptools wheel
python -m pip install -U torch torchvision torch_tensorrt --index-url https://download.pytorch.org/whl/cu128 --extra-index-url https://pypi.nvidia.com
python -m pip install -U cupy-cuda12x
python -m pip install -U vsdrba
  1. Navigate to Lib\site-packages\vsdrba in vapoursynth-portable and add a folder named models if it does not exist
  2. In command line navigate to VapourSynth python and run python -m vsdrba
  3. Download an anime into your downloads folder
  4. Add environment path variable UserDirectory=%UserProfile%
  5. Run autoconvert.bat

About

Encode anime to 4k using Anime4k filters and interpolate to 48fps using Rife, move anime into proper subfolders with proper seasons

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages