Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DVD's won't rip #112

Closed
stre1026 opened this issue Jan 21, 2018 · 9 comments
Closed

DVD's won't rip #112

stre1026 opened this issue Jan 21, 2018 · 9 comments
Labels
duplicate This issue is a duplicate question Question was asked or more info requested about arm

Comments

@stre1026
Copy link

stre1026 commented Jan 21, 2018

I've been using ARM for a week to rip Blu-Rays and that is working perfectly. I Just tried to rip a few DVD's today and the system won't do anything with a DVD. It just grabs the DVD name and then ends because it says it can't find a file to transcode. I am able to rip a DVD manually with HandbrakeCLI so I'm pretty sure that's working OK.

What can I check?

Here's one of the logs:

Starting Identify Script...
Deleting 0 old log files:
DEVLINKS=/dev/disk/by-path/pci-0000:00:14.1-ata-2 /dev/disk/by-id/ata-HL-DT-ST_BDDVDRW_UH12NS30_K96F2P84706 /dev/dvd /dev/disk/by-label/HOME2 /dev/disk/by-uuid/1999-08-03-13-11-14-00 /dev/cdrw /dev/dvdrw /dev/cdrom
DEVNAME=/dev/sr0
DEVPATH=/devices/pci0000:00/0000:00:14.1/ata2/host1/target1:0:1/1:0:1:0/block/sr0
DEVTYPE=disk
ID_ATA=1
ID_ATA_SATA=1
ID_ATA_SATA_SIGNAL_RATE_GEN1=1
ID_BUS=ata
ID_CDROM=1
ID_CDROM_BD=1
ID_CDROM_CD=1
ID_CDROM_CD_R=1
ID_CDROM_CD_RW=1
ID_CDROM_DVD=1
ID_CDROM_DVD_PLUS_R=1
ID_CDROM_DVD_PLUS_RW=1
ID_CDROM_DVD_PLUS_R_DL=1
ID_CDROM_DVD_R=1
ID_CDROM_DVD_RAM=1
ID_CDROM_DVD_RW=1
ID_CDROM_MEDIA=1
ID_CDROM_MEDIA_DVD=1
ID_CDROM_MEDIA_SESSION_COUNT=1
ID_CDROM_MEDIA_STATE=complete
ID_CDROM_MEDIA_TRACK_COUNT=1
ID_CDROM_MEDIA_TRACK_COUNT_DATA=1
ID_FOR_SEAT=block-pci-0000_00_14_1-ata-2
ID_FS_LABEL=HOME2
ID_FS_LABEL_ENC=HOME2
ID_FS_TYPE=udf
ID_FS_USAGE=filesystem
ID_FS_UUID=1999-08-03-13-11-14-00
ID_FS_UUID_ENC=1999-08-03-13-11-14-00
ID_MODEL=HL-DT-ST_BDDVDRW_UH12NS30
ID_MODEL_ENC=HL-DT-ST\x20BDDVDRW\x20UH12NS30\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
ID_PATH=pci-0000:00:14.1-ata-2
ID_PATH_TAG=pci-0000_00_14_1-ata-2
ID_REVISION=1.03
ID_SERIAL=HL-DT-ST_BDDVDRW_UH12NS30_K96F2P84706
ID_SERIAL_SHORT=K96F2P84706
ID_TYPE=cd
MAJOR=11
MINOR=0
SUBSYSTEM=block
TAGS=:uaccess:seat:systemd:
USEC_INITIALIZED=3158497
identified udf
found HOME2 on /dev/sr0
identified udf as video
Obtained Title Home Alone 2 - Lost in New York (2015)
VIDEO_TYPE is movie and NEW_YEAR is 1992
Year mismatch found. New video title is Home Alone 2 - Lost in New York (1992)
got to here
HAS_NICE_TITLE is true
video title is now Home Alone 2 - Lost in New York (1992)
video type is movie
Starting video_rip.sh
Video Title is Home Alone 2 - Lost in New York (1992)
Ripping video HOME2 from /dev/sr0
Media is DVD and Main Feature parameter in config file is true. Bypassing MakeMKV.
DEST is /home/arm/movies/output/raw/Home Alone 2 - Lost in New York (1992)_20180120_183951
STAT: HOME2 ripped in 0 hours, 0 minutes and 0 seconds.
/opt/arm/video_transcode.sh "/home/arm/movies/output/raw/Home Alone 2 - Lost in New York (1992)_20180120_183951" "Home Alone 2 - Lost in New York (1992)" "true" "movie" "20180120_183951" "/opt/arm/logs/HOME2.log"
Home Alone 2 - Lost in New York (1992) sent to transcoding queue...
Start video transcoding script
transcoding with a nice title
directory already exists... adding timestamp
Transcoding all files.
$VIDEO_TYPE is movie, $MAINFEATURE is true, $HAS_NICE_TITLE is true, $EMBY_SUBFOLDERS is false
Moving a single file.
Checing for existing file...
No file found. Moving "/home/arm/movies/output/unidentified/Home Alone 2 - Lost in New York (1992)_20180120_183951/Home Alone 2 - Lost in New York (1992).mkv to /home/arm/movies/output/final/Home Alone 2 - Lost in New York (1992).mkv"
Emby Refresh False. Skipping library scan
STAT: Home Alone 2 - Lost in New York (1992) transcoded in 0 hours, 0 minutes and 0 seconds.
Pushbullet notifications not enabled
IFTTT notifications not enabled
Pusover notifications not enabled
Sending EMail notification
EMail notification sent

@muckngrind4
Copy link
Collaborator

Hi @stre1026, can you post your config file also? (Make sure to sanitize it of any keys/email/etc.). From what I can tell, it's a DVD and you have MAINFEATURE as true, so it should be trying to rip just the main title. However the "Transcoding all files." line in the log means it went a different path for some reason. If I can see your config file it will help.

@stre1026
Copy link
Author

Hi @muckngrind4 , sure, my config is below!

ARM (Automatic Ripping Machine) oonfig file

#################

ARM Options

#################

Distinguish UDF video discs from UDF data discs. Requires mounting disc so adds a few seconds to the identify script.

ARM_CHECK_UDF=true

When enabled if the disc is a DVD use dvdid to calculate a crc64 and query Windows Media Meta Services for the Movie Title.

For BluRays attempts to extract the title from an XML file on the disc

GET_VIDEO_TITLE=true

Skip transcoding if you want the original MakeMKV files as your final output

Thiw will produce the highest quality videos (and use the most storage)

Note: RIPMETHOD must be set to "mkv" for this feature to work

SKIP_TRANSCODE=false

#####################

Directory setup

#####################

Base directory of ARM media directory

Ripped and transcoded files end up here

ARMPATH="/home/arm/movies/output/unidentified"

Path to raw MakeMKV directory

Destination for MakeMKV and source for HandBrake

RAWPATH="/home/arm/movies/output/raw"

Path to final media directory

Destination for final file. Only used for movies that are positively identified

MEDIA_DIR="/home/arm/movies/output/final"

Path to directory to hold log files

Make sure to include trailing /

LOGPATH="/opt/arm/logs/"

How long to let log files live before deleting (in days)

LOGLIFE=14

Set to true if you prefer a single log file for all activity versus a separate log per disc.

LOG_SINGLE_FILE=false

########################

File Permissions

########################

Enabling this seting will allow you to adjust the default file permissions of the outputted files

The default value is set to 777 for read/write/execute for all users, but can be changed below using the "CHMOD_VALUE" setting

This setting is helpfuly when storing the data locally on the system

SET_MEDIA_PERMISSIONS=true
CHMOD_VALUE=777
SET_MEDIA_OWNER=false
CHOWN_USER=
CHOWN_GROUP=

########################

MakeMKV Parameters

########################

Minimum length of track for MakeMKV rip (in seconds)

MINLENGTH="1800"

Method of MakeMKV to use for Blu Ray discs. Options are "mkv" or "backup".

mkv is the normal method of ripping mkv files directly from the DVD

backup decrypts the dvd and then copies it to the hard drive. This allows HandBrake to apply some of it's

analytical abilities such as the main-feature identification. This method seems to offer success on bluray

discs that fail in "mkv" mode. *** NOTE: MakeMKV only supports the backup method on BluRay discs. Regular

DVD's will always default back to the "mkv" mode. If this is set to "backup" then you must also set HandBrake's MAINFEATURE to true.

RIPMETHOD="backup"

MakeMKV Arguments

MakeMKV Profile used for controlling Audio Track Selection.

This is the default profile MakeMKV uses for Audio track selection. Updating this file or changing it is considered

to be advanced usage of MakeMKV. But this will allow users to alternatively tell makemkv to select HD audio tracks and etc.

MKV_ARGS="--profile=/opt/arm/default.mmcp.xml"

MKV_ARGS=""

##########################

HandBrake Parameters

##########################

Handbrake preset profile

Execute "HandBrakeCLI -z" to see a list of all presets

HB_PRESET="High Profile"

Extension of the final video file

DEST_EXT=mkv

Handbrake binary to call

HANDBRAKE_CLI=HandBrakeCLI

Have HandBrake transcode the main feature only. BluRay discs must have RIPMETHOD="backup" for this to work.

If MAINFEATURE is true, blurays will be backed up to the HD and then HandBrake will go to work on the backed up

files. For normal DVDs, ARM will bypass MakeMKV and hand off the dvd directly to HandBrake. This will require

libdvdcss2 be installed.

NOTE: For the most part, HandBrake correctly identifies the main feature on movie DVD's, although it is not perfect.

However, it does not handle tv shows well at all. You will likely want this value to be false when ripping tv shows.

MAINFEATURE=true

Additional HandBrake arguments.

HB_ARGS="--subtitle scan -F"

#####################

Enable Plex Use

#####################

Set this setting to true, to enable Plex Extras support

PLEX_SUPPORT=false

#####################

Emby Parameters

#####################

Parameters to enable automatic library scan in Emby. This will trigger only if MainFeature is true above.

Scan emby library after succesful placement of mainfeature (see above)

EMBY_REFRESH=false

Use subfolders in Emby as described here: https://github.com/MediaBrowser/Wiki/wiki/Movie%20naming#movie-extras

EMBY_SUBFOLDERS=false

Server parameters

Server can be ip address or domain name

EMBY_SERVER=""
EMBY_PORT="8096"

Emby authentication fluff parameters. These can be anything.

EMBY_CLIENT="ARM"
EMBY_DEVICE="ARM"
EMBY_DEVICEID="ARM"

Emby authentication parameters. These are parameters that must be set to a current user in Emby.

EMBY_USERNAME=""

EMBY_USERID is the user ID associated with the username above. You can find this by going to the following address on your emby server

:/Users/Public and getting the ID value for the username above.

EMBY_USERID=""

This is the SHA1 encrypted password for the username above. You can generate the SHA1 hash of your password by executing the following at

the command line:

echo -n your-password | sha1sum | awk '{print $1}'

or using an online generator like the one located at http://www.sha1-online.com/

EMBY_PASSWORD=""

#############################

Notification Parameters

#############################

Notify after Rip?

NOTIFY_RIP=false

Notify after transcode?

NOTIFY_TRANSCODE=true

Pushbullet API Key

Leave empty or comment out to disable Pushbullet notifications

PB_KEY=""

IFTTT API KEY

Leave empty or comment out to disable IFTTT notifications

IFTTT_KEY=""

IFTTT Event Name

IFTTT_EVENT="arm_event"

Pushover API User and Application Key

Leave User key empty or comment out to disable Pushover notifications

PO_USER_KEY=""
PO_APP_KEY=""

OMDB_API_KEY

omdbapi.com API Key

See README-OMDBAPI for background and info

This is the API key for omdbapi.com queries.

More info at http://omdbapi.com/

OMDB_API_KEY=""

Flag to set for EMail Notification

Leave empty or comment out to disable email notifications

This system uses MUTT to send the emails. A guide for installing and

configuraing mutt can be found here:

https://www.garron.me/en/go2linux/send-mail-gmail-mutt.html

@ahnooie ahnooie added the question Question was asked or more info requested about arm label Jan 24, 2018
@stre1026
Copy link
Author

Woops! Looks like my account was blocked due to some automated process thinking I was spamming the site. Got that taken care of. Anyone have any ideas? Looks like my config file copied a little funny.

@muckngrind4
Copy link
Collaborator

Just saw this. Sorry. I'll check it out tomorrow.

@muckngrind4
Copy link
Collaborator

Hi @stre1026,
Any chance the config file changed in the middle of the processing?
Does it work if you make mainfeature false?
I'm especially curious on the last point.

@MrTechGadget
Copy link
Member

MrTechGadget commented Jan 30, 2018 via email

@stre1026
Copy link
Author

Hey @muckngrind4,

The config definitely didn't change during processing. It also didn't matter whether mainfeature was false or not. However, what I did do because @audioeng said his is working fine replaced my config with a fresh copy and all I changed was the paths to my media directories in the new config. I left everything as default for now. This worked fine and I was able to rip a DVD. What I will do next is start adding things back in like my MakeMKV key, API key for OMDB and E-mail config.

@muckngrind4
Copy link
Collaborator

Good to hear you got it working with a clean config. If you find issues as you change the config from the defaults post them and we'll try to help.

@muckngrind4
Copy link
Collaborator

It looks like this issue and #104 are related to the same thing. I'll mark this as a duplicate.

@muckngrind4 muckngrind4 added the duplicate This issue is a duplicate label Feb 2, 2018
1337-server added a commit that referenced this issue Apr 29, 2022
* refactored into functions

* added handling harness for script options

* added logic to run proper installation function

* Fixed errors

* added pycharm-community install

* implemented install_arm_dev_env

* implemented launch_setup

* added call for launch_setup

* minor change for clarity

* hard-coding path since the user folder is already created

* refactored to run in correct dirs

* fixed command to run under arm user

* fix command to properly run without hanging script

* moved dev environment installation location

* grab the ip of the site that's now running

* fixed errors and added logic

* Fixed permissions issue

* removed deprecated file

* pycharm runs as "other", so the 777 is needed

* rollback broken queries merged by #112

* added ALSA install to script to avoid breakage on Ubuntu Server instances

* Added handling for arm group/user already existing

* Added installs for lsscsi and net-tools

* Added coloration to logging statements

* Added Markdown v3.3.4 explicitly to requirements.txt, to fix breaking change caused by 3.3.5 (see Python-Markdown/markdown#1203)

* Putting alsa install first to hopefully fix continuing error calling aplay in scripts

* fixed out of order parameters

* fixed bad parameter

* updated the clone command for testing updated requirements

* moved checkout command a better spot

* fixed typo

* fixed typo

* Ubuntu loud script fix for 1337-server/automatic-ripping-machine issue #111

* Ubuntu quiet script fix for 1337-server/automatic-ripping-machine issue #111

* added logic to prevent duplicating fstab entries

* Moved heredocs to custom files

* fixed typos

* fix for broken service start

* refactored into functions

* added handling harness for script options

* added logic to run proper installation function

* Fixed errors

* added pycharm-community install

* implemented install_arm_dev_env

* implemented launch_setup

* added call for launch_setup

* minor change for clarity

* hard-coding path since the user folder is already created

* refactored to run in correct dirs

* fixed command to run under arm user

* fix command to properly run without hanging script

* moved dev environment installation location

* grab the ip of the site that's now running

* fixed errors and added logic

* Fixed permissions issue

* removed deprecated file

* pycharm runs as "other", so the 777 is needed

* added ALSA install to script to avoid breakage on Ubuntu Server instances

* Added handling for arm group/user already existing

* Added installs for lsscsi and net-tools

* Added coloration to logging statements

* Added Markdown v3.3.4 explicitly to requirements.txt, to fix breaking change caused by 3.3.5 (see Python-Markdown/markdown#1203)

* Putting alsa install first to hopefully fix continuing error calling aplay in scripts

* fixed out of order parameters

* fixed bad parameter

* updated the clone command for testing updated requirements

* moved checkout command a better spot

* fixed typo

* fixed typo

* Ubuntu loud script fix for 1337-server/automatic-ripping-machine issue #111

* Ubuntu quiet script fix for 1337-server/automatic-ripping-machine issue #111

* added logic to prevent duplicating fstab entries

* Moved heredocs to custom files

* fixed typos

* fix for broken service start

* refactored into functions

* added handling harness for script options

* added logic to run proper installation function

* Fixed errors

* added pycharm-community install

* implemented install_arm_dev_env

* implemented launch_setup

* added call for launch_setup

* minor change for clarity

* hard-coding path since the user folder is already created

* refactored to run in correct dirs

* fixed command to run under arm user

* fix command to properly run without hanging script

* moved dev environment installation location

* grab the ip of the site that's now running

* fixed errors and added logic

* Fixed permissions issue

* removed deprecated file

* pycharm runs as "other", so the 777 is needed

* added ALSA install to script to avoid breakage on Ubuntu Server instances

* Added handling for arm group/user already existing

* Added installs for lsscsi and net-tools

* Added coloration to logging statements

* Added Markdown v3.3.4 explicitly to requirements.txt, to fix breaking change caused by 3.3.5 (see Python-Markdown/markdown#1203)

* Putting alsa install first to hopefully fix continuing error calling aplay in scripts

* fixed out of order parameters

* fixed bad parameter

* updated the clone command for testing updated requirements

* moved checkout command a better spot

* fixed typo

* fixed typo

* Ubuntu loud script fix for 1337-server/automatic-ripping-machine issue #111

* Ubuntu quiet script fix for 1337-server/automatic-ripping-machine issue #111

* added logic to prevent duplicating fstab entries

* Moved heredocs to custom files

* fixed typos

* fix for broken service start

* refactored into functions

* added handling harness for script options

* added logic to run proper installation function

* Fixed errors

* added pycharm-community install

* implemented install_arm_dev_env

* implemented launch_setup

* added call for launch_setup

* minor change for clarity

* hard-coding path since the user folder is already created

* refactored to run in correct dirs

* fixed command to run under arm user

* fix command to properly run without hanging script

* moved dev environment installation location

* grab the ip of the site that's now running

* fixed errors and added logic

* Fixed permissions issue

* removed deprecated file

* pycharm runs as "other", so the 777 is needed

* Added handling for arm group/user already existing

* Added installs for lsscsi and net-tools

* Added coloration to logging statements

* Putting alsa install first to hopefully fix continuing error calling aplay in scripts

* fixed out of order parameters

* fixed bad parameter

* updated the clone command for testing updated requirements

* moved checkout command a better spot

* fixed typo

* Ubuntu loud script fix for 1337-server/automatic-ripping-machine issue #111

* added logic to prevent duplicating fstab entries

* Moved heredocs to custom files

* fixed typos

* refactored into functions

* added handling harness for script options

* added logic to run proper installation function

* Fixed errors

* added pycharm-community install

* implemented install_arm_dev_env

* implemented launch_setup

* added call for launch_setup

* minor change for clarity

* hard-coding path since the user folder is already created

* refactored to run in correct dirs

* fixed command to run under arm user

* fix command to properly run without hanging script

* moved dev environment installation location

* grab the ip of the site that's now running

* fixed errors and added logic

* Fixed permissions issue

* pycharm runs as "other", so the 777 is needed

* added ALSA install to script to avoid breakage on Ubuntu Server instances

* Added handling for arm group/user already existing

* Added installs for lsscsi and net-tools

* Added coloration to logging statements

* Putting alsa install first to hopefully fix continuing error calling aplay in scripts

* fixed out of order parameters

* fixed bad parameter

* updated the clone command for testing updated requirements

* moved checkout command a better spot

* fixed typo

* Ubuntu loud script fix for 1337-server/automatic-ripping-machine issue #111

* added logic to prevent duplicating fstab entries

* Moved heredocs to custom files

* fixed typos

* refactored into functions

* added handling harness for script options

* added logic to run proper installation function

* Fixed errors

* added pycharm-community install

* implemented install_arm_dev_env

* implemented launch_setup

* added call for launch_setup

* minor change for clarity

* hard-coding path since the user folder is already created

* refactored to run in correct dirs

* fixed command to run under arm user

* fix command to properly run without hanging script

* moved dev environment installation location

* grab the ip of the site that's now running

* fixed errors and added logic

* Fixed permissions issue

* pycharm runs as "other", so the 777 is needed

* reverted changes

* removed deprecated checkout

* fixed typo

* delete old symlinks broken by the reinstallation process

* fixed typo

* auto-accept bc these repos are core to the install

* remove deprecated checkout command

* fixed broken evaluations

* fixed not finding the existing armui.service due to the space being where a / should be

* stop and remove and existing ARM install to avoid FileNotFound errors caused by the service being deleted after the source code it runs is deleted during script runtime

* refactored repeated logic into function run_makemkv(cmd)

* added update_key.sh

* installer now sets permissions for the new update_keys.sh

* fixed permissions set on the service file during install

* updated install scripts to set proper permissions for update_key.sh

* Overhaul of makemkv.py, everything needed to be done at the same time (I know, I know...)

* added noqa tags for variables that aren't being used

* Nicer printing of the logging statement

* Make sure each title is transcoded in order

* updated LICENSE

* Removed getkeys.py

* Updated VERSION

* Revert "Removed getkeys.py"

This reverts commit 2e73b5d.

* Fix bug in file sorting

* Update deb-install-quiet.sh

* Update debian-setup.sh

* Create docker-publish.yml

* Update docker-publish.yml

* Update README.md

* Push to dockerhub

* Delete build-push-action.yml

* Delete docker-publish.yml

* Create docker-publish.yml

* more github action tests

* Update docker-publish.yml

* Update docker-publish.yml

* Fixes #128 - doc strings showed wrong types leading to confusion

Index page will now correctly update the card header with correct details

* cleaning some js code to reduce warnings/errors

* cleaning some js code to reduce warnings/errors

* Removing unused variables from makemkv
Adding the progress from makemkv to logging
Cleaning some js code to reduce warnings/errors (tested FF&Chrome)

* Removing commented unused code
Small refactoring to be more compliant

* fix variable name

* flake8

* Fixes #129

* Revert "Merge branch 'v2_master' into v2_devel"

This reverts commit 58cb03a, reversing
changes made to 4b0793d.

Co-authored-by: wolfy <wolfy@shitwolfymakes.com>
Co-authored-by: wolfy <wolfy@shitwolfymakes>
1337-server added a commit that referenced this issue Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue is a duplicate question Question was asked or more info requested about arm
Projects
None yet
Development

No branches or pull requests

4 participants