So, I've been toying with the idea of having my MicroServer Gen10 that has a DVD player automatically backup any video DVD put into it. It would be really cool if it could autosense between DVDs and CD and do the MP4 or MP3 based on the media detected but if I can only do the DVD thing that will be great. The idea is:
1 - Place a stack of DVDs I want to backup near my MicroServer
2 - Insert DVD I want to backup
3 - Auto-backup DVD to output directory
4 - Eject the disk
5 - When seeing the disk ejected, return to step 2...repeat until my RAID array is full or my collection is fully backed up.
So here is what I've done so far...
- Install ClearOS with Flexshares and Plex
- Setup group (fs-handbrake) and user (handbrake)
- Configure all the things to get plex and flexshares working together
- From command line, install docker elements (yum install docker docker-compose)
- Make directory (mkdir /var/clearos/handbrake && cd /var/clearos/handbrake)
- Pull handbrake image (docker pull jlesage/handbrake)
- Run docker for handbrake:
So far, so good.
So, the next pieces I need to get working are:
- Get docker-compose to work
- Figure out how to get it to automatically process the DVD drive
- Figure out how to eject the drive when done processing the image
The site for the image is very useful: https://github.com/jlesage/docker-handbrake
Anyone else want to help me get this fully functional?
1 - Place a stack of DVDs I want to backup near my MicroServer
2 - Insert DVD I want to backup
3 - Auto-backup DVD to output directory
4 - Eject the disk
5 - When seeing the disk ejected, return to step 2...repeat until my RAID array is full or my collection is fully backed up.
So here is what I've done so far...
- Install ClearOS with Flexshares and Plex
- Setup group (fs-handbrake) and user (handbrake)
- Configure all the things to get plex and flexshares working together
- From command line, install docker elements (yum install docker docker-compose)
- Make directory (mkdir /var/clearos/handbrake && cd /var/clearos/handbrake)
- Pull handbrake image (docker pull jlesage/handbrake)
- Run docker for handbrake:
docker run -d --name=handbrake -p 5800:5800 -v /var/clearos/handbrake:/config:rw -v /var/flexshare/shares/handbrake:/storage:ro -v /var/flexshare/shares/handbrake/watch:/watch:rw -v /var/flexshare/shares/handbrake/output:/output:rw -e USER_ID=2000 -e GROUP_ID=60002 --device /dev/sr0 jlesage/handbrake
So far, so good.
So, the next pieces I need to get working are:
- Get docker-compose to work
- Figure out how to get it to automatically process the DVD drive
- Figure out how to eject the drive when done processing the image
The site for the image is very useful: https://github.com/jlesage/docker-handbrake
Anyone else want to help me get this fully functional?
Share this post:
Responses (1)
-
Accepted Answer
So I needed to get makemkv for this to work the way that I wanted. Here is what I did:
1) Install ClearOS and set up a flexshare for makemkv
2) Install docker from command line:
yum -y install docker docker-compose
systemctl start docker
systemctl enable docker
3) Create a manual startup script (touch /root/makemkv && chmod 700 /root/makemkv && vi /root/makemkv):
#!/bin/bash
docker stop makemkv
docker pull jlesage/makemkv
docker rm makemkv
cd /var/clearos/makemkv/
docker run -d \
--name=makemkv \
-p 5801:5800 \
-e AUTO_DISC_RIPPER=1 \
-e AUTO_DISC_RIPPER_EJECT=1 \
-e AUTO_DISC_RIPPER_INTERVAL=10 \
-e AUTO_DISC_RIPPER_MIN_TITLE_LENGTH=600 \
-e VNC_PASSWORD=CHANGEME \
-v /var/clearos/makemkv:/config:rw \
-v /var/flexshare/shares/makemkv/storage:/storage:ro \
-v /var/flexshare/shares/makemkv/output:/output:rw \
--device /dev/sr0 \
--device /dev/sg1 \
jlesage/makemkv
4) run the script
/root/makemkv
From there, I manage the install on http://local_lan_ip:5801 with the password CHANGEME. I had to add both /dev/sr0 and /dev/sg1 in order to get the auto-processing to work but now the behavior is that if this is running, it will automatically process objects on a DVD greater than 600MB.
I can now use the output files in handbrake.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »