Skip to content

Post-processing videos and related files to provide you with a cleaner end-result

Notifications You must be signed in to change notification settings

richrad/sabnzbd-postprocess-videos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 

Repository files navigation

sabnzbd-postprocess-videos

Post-processing videos and related files to provide you with a cleaner end-result

This post-processing script does the following

  • Flattens the contents
    • Sometimes uploaders embed video and other file types in a crazy folder structure, first we flatten this out so we can process everything.
  • Removes files smaller than 60MB
    • This is of course an arbitrary number I chose based on experience, anything smaller than that is typically NOT something we need.
  • Attempts to fix obfuscated video file names
    • Only works with downloads that contain a single video file, i.e. it won't work with TV seasons or multi-part movie downloads. In other words, there can only be one primary video file in the folder to be processed for this to work.
  • Removes Title and Comments metadata
    • This is done to avoid media libraries like Plex reading from the metadata as opposed to file name. I recently ran into a scenario where Plex had read a file's metadata title and used that in the library as opposed to parsing the file name. This has caused some wild names to appear in my library.

Dependencies

  • python3
  • ffmpeg (for metadata removal)

SABnzbd Configuration

  1. Set a scripts folder under: Settings > Folders > Scripts folder

image

  1. Drop the script into the folder you set and make sure sabnzbd has rights (Linux: sudo chmod +x process_videos.py)
  2. Set the script to run for certain categories under: Settings > Categories (i.e. TV or Movies or any other video categories you might have)

image

Note: This script will remove subtitle files due to their small size. I personally do not use sub files and prefer hard subs embedded in my videos.

About

Post-processing videos and related files to provide you with a cleaner end-result

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%