A collection of files to set up the following automation:
- Activate on insert
- Rip the DVD to a temporary path (eg
/opt/dvd/tmp.XXXXX/NAME-FROM-DVD-ITSELF/VIDEO_TS
) - Eject
Then a manual step:
- Review directory names and rename as needed (a lot of DVD disk identifiers are useless)
- run
dvdencode
, it will process all of the above to a new hierarchy, example filename:/opt/dvd/encoded/NAME-FROM-DVD-ITSELF/NAME-FROM-DVD-ITSELF-1-of-7.mp4
dvdencode
can be re-run, it will only encode files it hasn't already encoded. If encoding fails, the partial file is deleted. A log file is written, and encoding stops on any error.
- By default, dvdrip is run as root, and output directories will be root-owned. To change this, uncomment the
User=
line in the systemd unit file. - Default ffmpeg options are low quality, small size (good for ripping instructional DVDs). Change by editing the top of
dvdencode
Each file has its intended location at the top, shell scripts need to be made executable.
You may need to do this once to apply changes without restart:
systemctl daemon-reload
systemctl restart udev
- Also, install
dvdbackup
,ffmpeg