Page 1 of 1

Blu-Ray mkv Bash Script Help

Posted: Tue Feb 02, 2021 4:10 am
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