Optimize video files for plex
Prereqs
- Handbreakcli.exe https://handbrake.fr/downloads2.php
- ffmpeg.exe https://ffmpeg.org/download.html
- ffprobe.exe https://ffmpeg.org/download.html
- filebot.exe https://www.filebot.net/#download
- VideoDuplicatFinder https://github.com/0x90d/videoduplicatefinder
- Video files to optimize
Plexinator_Setup_Wizard.bat (Used to set variables and download prereqs)
Must run Plexinator_Setup_Wizard.bat prior to using Plexinator.bat
Plexinator.bat (The script that does the stuff)
Step 1 : Set Working Directory
Step 1.1: (Optional) Remove Duplicates
Step 2 : HandBreakcli Conversion from ts,m4v,mov,avi,flv,Mpeg to MP4 Web optimised
* Note All Handbreak Converted Videos will replace the originals in the originals folder. (this will delete the original)
Step 2.1 : MKV to MP4 Conversion
Step 3 : FFMPEG to Optimize existing .MP4 files (current issue is all .mp4's get optimised even if they dont need it | 14 Feb 2020)
* Note All FFMPEG REMUXED Videos will replace the originals in the originals folder. (this will delete the original)
Step 4 : Filebot to rename converted files
* Note Filebot gets the name wrong often so i find myself correcting this issue so currently Filebot spits out the renamed
Files into the Output directory
Step 5 : PNRxA Script utilizing handbreak to test media libary
Libary Validator script pulled from: https://github.com/PNRxA/corrupted-media-scanner
Feel free to submit issues, commit changes and/or fork and make this better!
(Update 30 Jan 2020 - Just found an amazing de duplicator and working to integrate it into another option. Will soon work on migrating this from a cli automator to a GUI for ease of access)