Skip to content

Encode anime to 4k using ffmpeg and Anime4k filters, interpolate to 48fps, and 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 and anime4k filters, convert to 48fps using hybrid from selur, and moving the anime into proper subfolders to allow plex to auto add the anime with proper seasons

If you would like to replicate my scripts, links to all the downloads necessary are below in Downloads section

Script autoconvert.bat

(Given an anime video, upscale and convert the anime to 4k 48fps)

First half (use ffmpeg for 4k upscale)

  • Use timeouts to avoid trying to convert partially copied anime from another script.
  • Rename anime to a consistent naming scheme

Remove:

  • underlines between words
  • everything between round and square brackets e.g. (stuff to remove) and [stuff to remove]
  • dashes between words that are not between anime name and episode number
  • whitespaces at beginning and end of filename
    goal is to have ([anime name] - S[season]E[episode number]) as the final result
  • Use ffmpeg to upscale anime with anime4k shaders and copy over all subtitles, audio streams, and attachements
  • clean up by deleting all unnecessary empty folders left in downloads

Second half (to use hybrid to convert to 48fps)

  • clean up downloads by deleting all empty folders
  • create a variable with 1 string containing all anime full directories
  • use hybrid script to convert anime from 23.976 fps (~24 fps) to 47.952 fps (~48 fps)

Script custommove.bat

(Given a filename with a lot of unnecessary information and potentially season information, clean up the filename, extract season number, create season folder, and move file into either anime folder or season folder in the anime folder) Final result [Anime Folder] [Season] [anime mkv file]

Extract:

  • anime's name without season number for folder name
  • season number for season subfolder
  • subtitles

Scripts can be simplified and improved but should work as is for common downloaded anime episodes WITH changes to directory information. Suggestions on how to improve the scripts are welcome and appreciated but I rarely visit this repository so do not expect any quick responses.


Things to Download:

  • Hybrid from selur
  • FFmpeg
  • Anime4k shaders can be downloaded from repository or directly from Anime4k (Shaders in respository are the original anime4k shaders merged together into 1 file for each mode for simplicity)
  • Mkvmerge
  • Recycle (it is not necessary to send files to the recycle bin instead of deleting them permanently but I use it to avoid loosing files when I am making changes to the script. This is also an easy to use file that requires no install)

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published