Blu-Ray mkv Bash Script Help

Discussion of advanced MakeMKV functionality, expert mode, conversion profiles
Post Reply
The_Mantis_Shrimp
Posts: 1
Joined: Tue Feb 02, 2021 3:43 am

Blu-Ray mkv Bash Script Help

Post by The_Mantis_Shrimp »

Mods, feel free to move/remove this as you see fit.

Hello, I hope this is of use to some of y'all. I spent the last couple days learning makemkvcon and decided it would be easiest if I had a bash script look through all the "Titles" to find the actual movies on my Blu-Ray disks and convert them to .mkv's. I do this by searching for the Title with the most detail lines immediately following it. I've had success with several of my Blu-Ray disks, but at time of posting "Alita: Battle Angel" is giving me issues so it is not a full-proof method for auto-finding the correct Title. In the case of Alita, several titles were followed by the same number of lines so in that case I'm out of luck with my architecture. I'm sure there's a cleaner way to do this but I'm a notice with bash scripting.

Bash script is attached in txt file. I'm working in a directory with sub-directories "mkvs" for the mkvs and "temp" for the script outputs.

Sincerely,
Mantis
Attachments
save_movie.txt
bash script for saving movies from your blu-ray discs
(848 Bytes) Downloaded 496 times
Post Reply