Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
##Original from here: https://www.makemkv.com/forum2/viewtopic.php?f=3&t=5266&start=30#p56468
build_dir="/tmp/build-makemkv/"
build_log="/tmp/makemkv_install.log"
url_ffmpeg_releases="https://www.ffmpeg.org/releases/"
url_makemkv="https://makemkv.com/download/"
url_makemkv_serial="https://forum.makemkv.com/forum/viewtopic.php?f=5&t=1053"
serial_makemkv=$(curl -s4 --url "${url_makemkv_serial}" | grep -oP 'T-[\w\d@]{66}')
#vers_ffmpeg=$(curl -s4 "${url_ffmpeg_releases}" | grep -E -o 'ffmpeg-([0-9]{1,}\.)+[0-9]{1,}' | sort -t. -rn | head -n 1)
##If there are problems, use 3.2.4 - https://makemkv.com/forum2/viewtopic.php?f=3&t=16059
@MattL0
MattL0 / diskripper.sh
Created December 17, 2021 05:10 — forked from tacofumi/diskripper.sh
This script rips DVD/Blu-ray using makemkvcon. Use udev to invoke this script to auto-rip when disk is inserted. Some variables such as length of string to trim in order to get the title of movie may vary depending on your environment.
#!/bin/bash
{
echo $(date)
echo ">>>Disk found"
echo ">>>Setting the title..."
title=$(makemkvcon -r info)
title=`echo "$title" | grep "DRV:0\+"`
title=${title:53}
@MattL0
MattL0 / makemkvcon-usage.txt
Created December 17, 2021 05:09 — forked from csandman/makemkvcon-usage.txt
Documentation for makemkvcon
makemkvcon [options] Command Parameters
General options:
--messages=file
Output all messages to file. Following special file names are recognized:
-stdout - stdout
-stderr - stderr
-null - disable output
Default is stdout