A simple tool to remove titles, tags & subtiltes and RegEx search & replace the filename from multiple video files in a specified folder.
Do not use this on your movies/tv folder directly, it might:
- remove desired subtitles
- and/or -->!!!delete your files!!!<--
MKV
- MKVToolNix - Download and install
- Or use WinGet:
winget install mkvtoolnix
-
Add the MKVToolNix Folder to your PATH
- Edit Line 02: RegEx patterns or leave them as they are
- Edit Line 03: RegEx patterns or leave them as they are
- Edit Line 04: Change file extension
- Edit Line 05: "PATH\TO\YOUR\CLEANUP\FOLDER"
For Movies
- Search for:
"(^.*720p).*"
- Replace with:
"`$1.x265.mkv"
For TV Shows
- Search for:
"(^.*S[\d]+E[\d]+).*"
- Replace with:
"`$1.720p.x265.mkv"
Run the script via:
-
Right-Click -> "Run with PowerShell"
-
PowerShell
.\_Cleanup.ps1
-
CMD
powershell .\_Cleanup.ps1
-FileExtension extension
-ReplaceWith regex
-SearchFor regex
-RootFolder PATH\TO\ROOT\FOLDER
- This script will delete all titles, tags and subtitles from the files in a specified folder and regex search and replace the names.
- The RegEx is set for TV Show filenames:
*.S**E**.720p.x265.mkv
.
Do not use this on your movies/tv folder directly, it might:
- remove desired subtitles
- and/or -->!!!delete your files!!!<--