A program that automatically renames subtitle files to their corresponding movie files names.
Modern video players such as vlc and mpv automatically pick up a subtitle file that has the same name as the movie that is being played. Sometimes you might have alot of videos that have their subtitle files with slightly different names which means you have to use your video player's settings to point which file to use or rename all the files manually which is tideous. This is where sub-auto-rename becomes in handy. The program will look through all videos and subtitle files in the directory, identify which subtitle file points to which movie file and automatically rename the subtitle files to the same names as their corresponding movies saving time if all of this work could be performed manually.
Just dump all the videos and subtitles into one directory and give the program that directory path as a commandline option, sit back and wait for the magic to happen. You can also pass --help option to reveal full details of the available options.
# Typical use
sub-auto-rename path/to/videos
# Supplying extra extension (as default extensions supported are mp4, mkv, flv, avi, 3gp, mov)
sub-auto-rename path/to/videos wmv yuv qt mpg webm # extra extensions can be as many as you want
# Ignoring the difference in the number of videos and subtitles in the provided directory
sub-auto-rename -i path/to/videos
# Getting the summary of rename and non-renamed subtitle files after rename operation has completed.
sub-auto-rename -s path/to/videos
# Getting help information
sub-auto-rename --help
Pre-built binaries for your specific platform can be obtained in the release page
sub-auto-rename can be installed via the following shell commands assuming you have cargo, rustc and git set up on your machine. You can check the guide incase you're not setup.
git clone https://github.com/MaarifaMaarifa/sub-auto-rename
cd sub-auto-rename
cargo install --path .