Skip to content

Bash script to automatically merge .mp4 with english .srt files and clean the folder names en masse for rarbg movies

Notifications You must be signed in to change notification settings

Chillsmeit/rarbg_automkvmerger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Description

This bash script allows you to automatically merge .mp4 files with english .srt subtitles into a .mkv file.
It will ignore any other subtitle languages and will ignore .srt subtitles with less than 30Kb (usually broken subs).

After it creates the .mkv file, it will rename the movie folder (not the .mkv file itself) and remove any release group names, codecs, resolutions etc in order to create a clean folder name.
This process will happen to all folders that are in the same directory as the script itself, one by one.

It was mainly made for the rarbg movies file structure

Dependencies:

sudo apt-get update && sudo apt-get install mkvtoolnix

Instructions:

Make sure you run this script in the same directory where you have your rarbg movie folders and just wait for those 200 movies to be auto muxed into mkv files.

Download the script in terminal with:

wget https://raw.githubusercontent.com/Chillsmeit/rarbg-mkvmerger/main/rarbg_automkvmerger.sh

Make the script executable:

chmod +x rarbg_automkvmerger.sh

Run the script without sudo privileges:

./rarbg_automkvmerger.sh

About

Bash script to automatically merge .mp4 with english .srt files and clean the folder names en masse for rarbg movies

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages