automatic-ripping-machine / automatic-ripping-machine

Automatic Ripping Machine (ARM) Scripts
https://b3n.org/automatic-ripping-machine
MIT License
2.71k stars 287 forks source link

🐛Error 'Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB' occurred while issuing SCSI command 460200010..00100 to device #720

Closed RecycleBen closed 1 year ago

RecycleBen commented 1 year ago

Is there an existing issue for this?

Does this issue exist in the latest version?

Describe the bug?

I setup the 1337server/automatic-ripping-machine:latest docker image. I bought my own key for makemkv because I kept getting the error to upgrade or register.

Now I get the error:

PRGV:0,0,65536 MSG:2004,16777216,4,"Error 'Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB' occurred while issuing SCSI command 460200010..00100 to device 'SG:dev_21:0'","Error '%1' occurred while issuing SCSI command %4 to device '%2:%3'","Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB","SG","dev_21:0","460200010..00100" MSG:5010,0,0,"Failed to open disc","Failed to open disc"

Which appears to be happening after: [02-11-2023 19:52:51] INFO ARM: Using MakeMKV to get information on all the tracks on the disc. This will take a few minutes... [02-11-2023 19:52:52] INFO ARM: Found 0 titles

So maybe when it is calling "get_track_info"?

I'm not sure. I'm confused as to why I'd have a Scsi error if I'm using Sata. Also I'm seeing it get the name of the DVD so it is apparently there and mounted.

I've tried a DVD and a Blueray and they both give this same error at this same point.

Anyone know what my problem is or is this a bug? Is there an easy way to set the debug level to debug instead of just info?

To Reproduce

Steps to Reproduce:

  1. insert disk
  2. (if failed run before) run: mount /dev/sr0
  3. (my auto udev thing doesn't seem to detect the drive so I manually start it each time since I have not gotten it to work at all yet) run : /usr/bin/python3 /opt/arm/arm/ripper/main.py -d sr0
  4. the Job is running on the :8080/index.html so navigate to /jobdetails?job_id=12
  5. grab log file.

Built from source files ?

What architecture are you seeing the problem on?

Other (Please state in Anything else section)

Expected behavior?

Expected behavior? Not sure, how to get past this error or what to debug next?

Relevant log output

Loading log: ERASER_NA_16X9_167614510613.log...
[02-11-2023 19:51:46] INFO ARM: Database is up to date
[02-11-2023 19:51:46] INFO ARM: ************* Starting ARM processing at 2023-02-11 19:51:46.639172 *************
[02-11-2023 19:51:47] INFO ARM: Branch: main - Commit: 2631ac2
[02-11-2023 19:51:47] INFO ARM: ARM version: 2.6.12
[02-11-2023 19:51:47] INFO ARM: Python version: 3.8.10 (default, Nov 14 2022, 12:59:47) [GCC 9.4.0]
[02-11-2023 19:51:47] INFO ARM: User is: arm
[02-11-2023 19:51:47] INFO ARM: Looking for log files older than 1 days old.
[02-11-2023 19:51:47] INFO ARM: Job: ERASER_NA_16X9
[02-11-2023 19:51:47] INFO ARM: Job #12 with PID 3002 is currently running.
[02-11-2023 19:51:47] INFO ARM: Starting Disc identification
[02-11-2023 19:51:47] INFO ARM: Mounting disc to: /mnt/dev/sr0
[02-11-2023 19:51:47] INFO ARM: Disc identified as video
[02-11-2023 19:51:47] INFO ARM: DVD CRC64 hash is: 3766a31a10af798c
[02-11-2023 19:51:47] ERROR ARM: Pydvdid failed with the error: <urlopen error [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1131)>
[02-11-2023 19:51:49] INFO ARM: Disc title Post ident -  title:ERASER_NA_16X9 year:None video_type:unknown disctype: dvd
[02-11-2023 19:51:49] INFO ARM: Waiting 60 seconds for manual override.
[02-11-2023 19:52:49] INFO ARM: ******************* Logging ARM variables *******************
[02-11-2023 19:52:49] INFO ARM: devpath: /dev/sr0
[02-11-2023 19:52:49] INFO ARM: mountpoint: /mnt/dev/sr0
[02-11-2023 19:52:49] INFO ARM: title: ERASER_NA_16X9
[02-11-2023 19:52:49] INFO ARM: year: None
[02-11-2023 19:52:49] INFO ARM: video_type: unknown
[02-11-2023 19:52:49] INFO ARM: hasnicetitle: False
[02-11-2023 19:52:49] INFO ARM: label: ERASER_NA_16X9
[02-11-2023 19:52:49] INFO ARM: disctype: dvd
[02-11-2023 19:52:49] INFO ARM: ******************* End of ARM variables *******************
[02-11-2023 19:52:49] INFO ARM: ******************* Logging config parameters *******************
[02-11-2023 19:52:49] INFO ARM: skip_transcode: False
[02-11-2023 19:52:49] INFO ARM: mainfeature: False
[02-11-2023 19:52:49] INFO ARM: minlength: 600
[02-11-2023 19:52:49] INFO ARM: maxlength: 99999
[02-11-2023 19:52:49] INFO ARM: videotype: auto
[02-11-2023 19:52:49] INFO ARM: manual_wait: True
[02-11-2023 19:52:49] INFO ARM: manual_wait_time: 60
[02-11-2023 19:52:49] INFO ARM: ripmethod: mkv
[02-11-2023 19:52:49] INFO ARM: mkv_args: 
[02-11-2023 19:52:49] INFO ARM: delrawfiles: True
[02-11-2023 19:52:49] INFO ARM: hb_preset_dvd: HQ 720p30 Surround
[02-11-2023 19:52:49] INFO ARM: hb_preset_bd: HQ 1080p30 Surround
[02-11-2023 19:52:49] INFO ARM: hb_args_dvd: --subtitle scan -F
[02-11-2023 19:52:49] INFO ARM: hb_args_bd: --subtitle scan -F --subtitle-burned --audio-lang-list eng --all-audio
[02-11-2023 19:52:49] INFO ARM: raw_path: /home/arm/raw/
[02-11-2023 19:52:49] INFO ARM: transcode_path: /home/arm/transcode/
[02-11-2023 19:52:49] INFO ARM: completed_path: /home/arm/media/completed/
[02-11-2023 19:52:49] INFO ARM: extras_sub: extras
[02-11-2023 19:52:49] INFO ARM: emby_refresh: False
[02-11-2023 19:52:49] INFO ARM: emby_server: 
[02-11-2023 19:52:49] INFO ARM: emby_port: 8096
[02-11-2023 19:52:49] INFO ARM: notify_rip: True
[02-11-2023 19:52:49] INFO ARM: notify_transcode: True
[02-11-2023 19:52:49] INFO ARM: max_concurrent_transcodes: 0
[02-11-2023 19:52:49] INFO ARM: ******************* End of config parameters *******************
[02-11-2023 19:52:49] INFO ARM: Checking for fstab entry.
[02-11-2023 19:52:49] INFO ARM: fstab entry is: /dev/sr0  /mnt/dev/sr0  udf,iso9660  users,noauto,exec,utf8,ro  0  0
[02-11-2023 19:52:49] INFO ARM: Output directory "/home/arm/transcode/unidentified/ERASER_NA_16X9" already exists.
[02-11-2023 19:52:49] INFO ARM: Final Output directory "/home/arm/transcode/unidentified/ERASER_NA_16X9_167614510613"
[02-11-2023 19:52:49] INFO ARM: Output directory "/home/arm/media/completed/unidentified/ERASER_NA_16X9" already exists.
[02-11-2023 19:52:49] INFO ARM: Final Output directory "/home/arm/media/completed/unidentified/ERASER_NA_16X9_167614510613"
[02-11-2023 19:52:49] INFO ARM: Processing files to: /home/arm/transcode/unidentified/ERASER_NA_16X9_167614510613
[02-11-2023 19:52:49] INFO ARM: ************* Ripping disc with MakeMKV *************
[02-11-2023 19:52:49] INFO ARM: Updating MakeMKV key...
[02-11-2023 19:52:50] INFO ARM: Starting MakeMKV rip. Method is mkv
[02-11-2023 19:52:51] INFO ARM: MakeMKV disc number: 0
[02-11-2023 19:52:51] INFO ARM: Destination is /home/arm/raw/ERASER_NA_16X9
[02-11-2023 19:52:51] INFO ARM: /home/arm/raw/ERASER_NA_16X9 exists.  Adding timestamp.
[02-11-2023 19:52:51] INFO ARM: raw_path is /home/arm/raw/ERASER_NA_16X9_167614510613
[02-11-2023 19:52:51] INFO ARM: Processing files to: /home/arm/raw/ERASER_NA_16X9_167614510613
[02-11-2023 19:52:51] INFO ARM: Using MakeMKV to get information on all the tracks on the disc. This will take a few minutes...
[02-11-2023 19:52:52] INFO ARM: Found 0 titles
MSG:1005,0,1,"MakeMKV v1.17.2 linux(x64-release) started","%1 started","MakeMKV v1.17.2 linux(x64-release)"
PRGT:5018,0,"Scanning CD-ROM devices"
PRGC:5018,0,"Scanning CD-ROM devices"
PRGV:0,0,65536
PRGV:0,0,65536
PRGV:65536,0,65536
PRGV:65536,65536,65536
MSG:5075,131072,2,"The new version 1.17.3 is available for download at http://www.makemkv.com/download/","The new version %1 is available for download at %2","1.17.3","http://www.makemkv.com/download/"
MSG:2004,0,4,"Error 'Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB' occurred while issuing SCSI command 460200010..00100 to device 'SG:dev_21:0'","Error '%1' occurred while issuing SCSI command %4 to device '%2:%3'","Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB","SG","dev_21:0","460200010..00100"
DRV:0,2,999,0,"DVD-ROM QEMU QEMU DVD-ROM 2.5+","","/dev/sr0"
DRV:1,256,999,0,"","",""
DRV:2,256,999,0,"","",""
DRV:3,256,999,0,"","",""
DRV:4,256,999,0,"","",""
DRV:5,256,999,0,"","",""
DRV:6,256,999,0,"","",""
DRV:7,256,999,0,"","",""
DRV:8,256,999,0,"","",""
DRV:9,256,999,0,"","",""
DRV:10,256,999,0,"","",""
DRV:11,256,999,0,"","",""
DRV:12,256,999,0,"","",""
DRV:13,256,999,0,"","",""
DRV:14,256,999,0,"","",""
DRV:15,256,999,0,"","",""
PRGV:0,65536,65536
PRGV:0,0,65536
MSG:2004,16777216,4,"Error 'Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB' occurred while issuing SCSI command 460200010..00100 to device 'SG:dev_21:0'","Error '%1' occurred while issuing SCSI command %4 to device '%2:%3'","Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB","SG","dev_21:0","460200010..00100"
MSG:5010,0,0,"Failed to open disc","Failed to open disc"
[02-11-2023 19:52:53] ERROR ARM: Call to MakeMKV failed with code: 11 (b'')
[02-11-2023 19:52:53] ERROR ARM: MakeMKV did not complete successfully.  Exiting ARM! Error: exceptions must derive from BaseException
[02-11-2023 19:52:53] ERROR ARM: A fatal error has occurred and ARM is exiting.  See traceback below for details.

Anything else?

I am running this in a docker container on a proxmox x64 server. From the settings page: Python version: 3.8.10 A.R.M version: 2.6.12 Update Available: update image You are on the latest version

Code of Conduct

github-actions[bot] commented 1 year ago

If youre having issues, please remember to read the wiki and follow the instructions carefully

1337-server commented 1 year ago

Can you use the image automaticrippingmachine/automatic-ripping-machine:latest and see if the issue persists ? This is the latest fully tested version.

1337-server commented 1 year ago

I would also need the full output from MakeMKVcon the lines you have posted could be related to multiple issues.

  1. A problem with the way your drive is interacting with proxmox: JasonMillward/Autorippr/issues/140
  2. The drive itself: https://forum.makemkv.com/forum/viewtopic.php?p=12756#p12756
  3. Decryption issue that needs MakeMKV to be updated.

Was this working while MakeMKV was updated ?

RecycleBen commented 1 year ago

ok tried with another image using automaticrippingmachine/automatic-ripping-machine:latest and got the same error.

I'll try looking at the solution for #140, didn't see that when searching for issues, so I guess I need to get better at searching.

I have to run but will try your item 1 and get back to this as soon as I can.

RecycleBen commented 1 year ago

Hmm, here's my MakeMKVcon output:

root@807e327afc33:/home/arm# makemkvcon -r info disk:0 MSG:1005,0,1,"MakeMKV v1.17.2 linux(x64-release) started","%1 started","MakeMKV v1.17.2 linux(x64-release)" MSG:5075,131072,2,"The new version 1.17.3 is available for download at http://www.makemkv.com/download/","The new version %1 is available for download at %2","1.17.3","http://www.makemkv.com/download/" MSG:2004,0,4,"Error 'Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB' occurred while issuing SCSI command 460200010..00100 to device 'SG:dev_21:0'","Error '%1' occurred while issuing SCSI command %4 to device '%2:%3'","Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB","SG","dev_21:0","460200010..00100" DRV:0,2,999,0,"DVD-ROM QEMU QEMU DVD-ROM 2.5+","","/dev/sr0" DRV:1,256,999,0,"","","" DRV:2,256,999,0,"","","" DRV:3,256,999,0,"","","" DRV:4,256,999,0,"","","" DRV:5,256,999,0,"","","" DRV:6,256,999,0,"","","" DRV:7,256,999,0,"","","" DRV:8,256,999,0,"","","" DRV:9,256,999,0,"","","" DRV:10,256,999,0,"","","" DRV:11,256,999,0,"","","" DRV:12,256,999,0,"","","" DRV:13,256,999,0,"","","" DRV:14,256,999,0,"","","" DRV:15,256,999,0,"","",""

RecycleBen commented 1 year ago

WOoow, I've been typing that wrong. I'm stupid. it should be disc not disk....

I also upgraded MakeMKV to 1.17.3 at least for the running of it manually:

Now it looks like that same message 5010 failed to open disk from #140. So onto the next step.

root@807e327afc33:/home/arm# makemkvcon -r info disc:0 MSG:1005,0,1,"MakeMKV v1.17.3 linux(x64-release) started","%1 started","MakeMKV v1.17.3 linux(x64-release)" MSG:2004,0,4,"Error 'Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB' occurred while issuing SCSI command 460200010..00100 to device 'SG:dev_21:0'","Error '%1' occurred while issuing SCSI command %4 to device '%2:%3'","Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB","SG","dev_21:0","460200010..00100" DRV:0,2,999,0,"DVD-ROM QEMU QEMU DVD-ROM 2.5+","","/dev/sr0" DRV:1,256,999,0,"","","" DRV:2,256,999,0,"","","" DRV:3,256,999,0,"","","" DRV:4,256,999,0,"","","" DRV:5,256,999,0,"","","" DRV:6,256,999,0,"","","" DRV:7,256,999,0,"","","" DRV:8,256,999,0,"","","" DRV:9,256,999,0,"","","" DRV:10,256,999,0,"","","" DRV:11,256,999,0,"","","" DRV:12,256,999,0,"","","" DRV:13,256,999,0,"","","" DRV:14,256,999,0,"","","" DRV:15,256,999,0,"","","" MSG:2004,16777216,4,"Error 'Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB' occurred while issuing SCSI command 460200010..00100 to device 'SG:dev_21:0'","Error '%1' occurred while issuing SCSI command %4 to device '%2:%3'","Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB","SG","dev_21:0","460200010..00100" MSG:5010,0,0,"Failed to open disc","Failed to open disc" TCOUNT:0

RecycleBen commented 1 year ago

Ok interesting, if I mount the drive and pass in the file: source instead it seems to get some info not sure if it is everything the arm_ripper is expecting though or if I can get away with not using disc at any point.

In the Portainer Docker console to debug I ran: mount /dev/sr0 with the host setup with fstab at /dev/sr0:/mnt/dev/sr0

Then I ran makemkvcon -r info file:/mnt/dev/sr0

Which gave me:

root@807e327afc33:/home/arm# makemkvcon -r info file:/mnt/dev/sr0
MSG:1005,0,1,"MakeMKV v1.17.3 linux(x64-release) started","%1 started","MakeMKV v1.17.3 linux(x64-release)"
MSG:2004,0,4,"Error 'Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB' occurred while issuing SCSI command 460200010..00100 to device 'SG:dev_21:0'","Error '%1' occurred while issuing SCSI command %4 to device '%2:%3'","Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB","SG","dev_21:0","460200010..00100"
DRV:0,2,999,0,"DVD-ROM QEMU QEMU DVD-ROM 2.5+","","/dev/sr0"
DRV:1,256,999,0,"","",""
DRV:2,256,999,0,"","",""
DRV:3,256,999,0,"","",""
DRV:4,256,999,0,"","",""
DRV:5,256,999,0,"","",""
DRV:6,256,999,0,"","",""
DRV:7,256,999,0,"","",""
DRV:8,256,999,0,"","",""
DRV:9,256,999,0,"","",""
DRV:10,256,999,0,"","",""
DRV:11,256,999,0,"","",""
DRV:12,256,999,0,"","",""
DRV:13,256,999,0,"","",""
DRV:14,256,999,0,"","",""
DRV:15,256,999,0,"","",""
MSG:3006,131072,1,"Opening files on harddrive at file:///mnt/dev/sr0/VIDEO_TS","Opening files on harddrive at %1","file:///mnt/dev/sr0/VIDEO_TS"
MSG:3002,0,2,"Calculated BUP offset for VTS #1 does not match one in IFO header.","Calculated %1 offset for VTS #%2 does not match one in IFO header.","BUP","1"
MSG:3028,0,3,"Title #1 was added (44 cell(s), 1:54:02)","Title #%1 was added (%2 cell(s), %3)","1","44","1:54:02"
MSG:3025,0,3,"Title #2 has length of 12 seconds which is less than minimum title length of 120 seconds and was therefore skipped","Title #%1 has length of %2 seconds which is less than minimum title length of %3 seconds and was therefore skipped","2","12","120"
MSG:4004,16777216,2,"The source file '/VIDEO_TS/VTS_01_1.VOB' is corrupt or invalid at offset 49152-100352, attempting to work around","The source file '%1' is corrupt or invalid at offset %2, attempting to work around","/VIDEO_TS/VTS_01_1.VOB","49152-100352"
MSG:4004,0,2,"The source file '/VIDEO_TS/VTS_01_1.VOB' is corrupt or invalid at offset 106496, attempting to work around","The source file '%1' is corrupt or invalid at offset %2, attempting to work around","/VIDEO_TS/VTS_01_1.VOB","106496"
MSG:4004,16777216,2,"The source file '/VIDEO_TS/VTS_01_1.VOB' is corrupt or invalid at offset 106496, attempting to work around","The source file '%1' is corrupt or invalid at offset %2, attempting to work around","/VIDEO_TS/VTS_01_1.VOB","106496"
MSG:4004,0,2,"The source file '/VIDEO_TS/VTS_01_1.VOB' is corrupt or invalid at offset 104448, attempting to work around","The source file '%1' is corrupt or invalid at offset %2, attempting to work around","/VIDEO_TS/VTS_01_1.VOB","104448"
MSG:4004,16777216,2,"The source file '/VIDEO_TS/VTS_01_1.VOB' is corrupt or invalid at offset 104448, attempting to work around","The source file '%1' is corrupt or invalid at offset %2, attempting to work around","/VIDEO_TS/VTS_01_1.VOB","104448"
MSG:4004,0,2,"The source file '/VIDEO_TS/VTS_01_1.VOB' is corrupt or invalid at offset 49152-100352, attempting to work around","The source file '%1' is corrupt or invalid at offset %2, attempting to work around","/VIDEO_TS/VTS_01_1.VOB","49152-100352"
MSG:5011,0,0,"Operation successfully completed","Operation successfully completed"
TCOUNT:1
CINFO:1,6206,"DVD disc"
CINFO:2,0,"WARNER HOME VIDEO"
CINFO:30,0,"WARNER HOME VIDEO"
CINFO:31,6119,"<b>Source information</b><br>"
CINFO:32,0,"WARNER HOME VIDEO"
CINFO:33,0,"0"
TINFO:0,8,0,"44"
TINFO:0,9,0,"1:54:02"
TINFO:0,10,0,"4.0 GB"
TINFO:0,11,0,"4359575552"
TINFO:0,24,0,"01"
TINFO:0,25,0,"1"
TINFO:0,26,0,"1-44"
TINFO:0,27,0,"A1_t00.mkv"
TINFO:0,30,0,"44 chapter(s) , 4.0 GB (A1)"
TINFO:0,31,6120,"<b>Title information</b><br>"
TINFO:0,33,0,"0"
TINFO:0,49,0,"A1"
SINFO:0,0,1,6201,"Video"
SINFO:0,0,5,0,"V_MPEG2"
SINFO:0,0,6,0,"Mpeg2"
SINFO:0,0,7,0,"Mpeg2"
SINFO:0,0,13,0,"8 Mb/s"
SINFO:0,0,19,0,"720x480"
SINFO:0,0,20,0,"16:9"
SINFO:0,0,21,0,"29.97 (30000/1001)"
SINFO:0,0,22,0,"0"
SINFO:0,0,30,0,"Mpeg2"
SINFO:0,0,31,6121,"<b>Track information</b><br>"
SINFO:0,0,33,0,"0"
SINFO:0,0,38,0,""
SINFO:0,0,42,5088,"( Lossless conversion )"
SINFO:0,1,1,6202,"Audio"
SINFO:0,1,2,0,"Surround 5.1"
SINFO:0,1,3,0,"eng"
SINFO:0,1,4,0,"English"
SINFO:0,1,5,0,"A_AC3"
SINFO:0,1,6,0,"DD"
SINFO:0,1,7,0,"Dolby Digital"
SINFO:0,1,13,0,"384 Kb/s"
SINFO:0,1,14,0,"6"
SINFO:0,1,17,0,"48000"
SINFO:0,1,22,0,"0"
SINFO:0,1,30,0,"DD Surround 5.1 English"
SINFO:0,1,31,6121,"<b>Track information</b><br>"
SINFO:0,1,33,0,"90"
SINFO:0,1,38,0,"d"
SINFO:0,1,39,0,"Default"
SINFO:0,1,40,0,"5.1(side)"
SINFO:0,1,42,5088,"( Lossless conversion )"
SINFO:0,2,1,6202,"Audio"
SINFO:0,2,2,0,"Surround 5.1"
SINFO:0,2,3,0,"fre"
SINFO:0,2,4,0,"French"
SINFO:0,2,5,0,"A_AC3"
SINFO:0,2,6,0,"DD"
SINFO:0,2,7,0,"Dolby Digital"
SINFO:0,2,13,0,"384 Kb/s"
SINFO:0,2,14,0,"6"
SINFO:0,2,17,0,"48000"
SINFO:0,2,22,0,"0"
SINFO:0,2,30,0,"DD Surround 5.1 French"
SINFO:0,2,31,6121,"<b>Track information</b><br>"
SINFO:0,2,33,0,"90"
SINFO:0,2,38,0,""
SINFO:0,2,40,0,"5.1(side)"
SINFO:0,2,42,5088,"( Lossless conversion )"
SINFO:0,3,1,6203,"Subtitles"
SINFO:0,3,3,0,"eng"
SINFO:0,3,4,0,"English"
SINFO:0,3,5,0,"S_VOBSUB"
SINFO:0,3,6,0,""
SINFO:0,3,7,0,"Dvd Subtitles"
SINFO:0,3,22,0,"0"
SINFO:0,3,30,0," English"
SINFO:0,3,31,6121,"<b>Track information</b><br>"
SINFO:0,3,33,0,"90"
SINFO:0,3,38,0,"d"
SINFO:0,3,39,0,"Default"
SINFO:0,3,42,5088,"( Lossless conversion )"
SINFO:0,4,1,6203,"Subtitles"
SINFO:0,4,3,0,"fre"
SINFO:0,4,4,0,"French"
SINFO:0,4,5,0,"S_VOBSUB"
SINFO:0,4,6,0,""
SINFO:0,4,7,0,"Dvd Subtitles"
SINFO:0,4,22,0,"0"
SINFO:0,4,30,0," French"
SINFO:0,4,31,6121,"<b>Track information</b><br>"
SINFO:0,4,33,0,"90"
SINFO:0,4,38,0,""
SINFO:0,4,42,5088,"( Lossless conversion )"
SINFO:0,5,1,6203,"Subtitles"
SINFO:0,5,3,0,"spa"
SINFO:0,5,4,0,"Spanish"
SINFO:0,5,5,0,"S_VOBSUB"
SINFO:0,5,6,0,""
SINFO:0,5,7,0,"Dvd Subtitles"
SINFO:0,5,22,0,"0"
SINFO:0,5,30,0," Spanish"
SINFO:0,5,31,6121,"<b>Track information</b><br>"
SINFO:0,5,33,0,"90"
SINFO:0,5,38,0,""
SINFO:0,5,42,5088,"( Lossless conversion )"
SINFO:0,6,1,6203,"Subtitles"
SINFO:0,6,3,0,"eng"
SINFO:0,6,4,0,"English"
SINFO:0,6,5,0,"S_CC608/DVD"
SINFO:0,6,6,0,"CC"
SINFO:0,6,7,0,"Closed Captions"
SINFO:0,6,13,0,"8 Mb/s"
SINFO:0,6,22,0,"0"
SINFO:0,6,30,0,"CC→Text English ( Lossy conversion )"
SINFO:0,6,31,6121,"<b>Track information</b><br>"
SINFO:0,6,33,0,"90"
SINFO:0,6,34,0,"Text subtitles ( Lossy conversion )"
SINFO:0,6,38,0,""
SINFO:0,6,41,0,"Text"
SINFO:0,6,42,5087,"( Lossy conversion )"

Do you see any future concerns if I modified the code to use a file: source instead of a disc: source? Will that even work with the rest of the code?

RecycleBen commented 1 year ago

Darn didn't seem to work, I ran makemkvcon -r mkv file:/mnt/dev/sr0 ERASER_NA_16X9 /home/arm/media/test_eraser --minlength=600

And it output the following:

root@807e327afc33:/home/arm# makemkvcon -r mkv file:/mnt/dev/sr0 ERASER_NA_16X9 /home/arm/media/test_eraser --minlength=600
MSG:1005,0,1,"MakeMKV v1.17.3 linux(x64-release) started","%1 started","MakeMKV v1.17.3 linux(x64-release)"
MSG:2004,0,4,"Error 'Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB' occurred while issuing SCSI command 460200010..00100 to device 'SG:dev_21:0'","Error '%1' occurred while issuing SCSI command %4 to device '%2:%3'","Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB","SG","dev_21:0","460200010..00100"
DRV:0,2,999,0,"DVD-ROM QEMU QEMU DVD-ROM 2.5+","","/dev/sr0"
DRV:1,256,999,0,"","",""
DRV:2,256,999,0,"","",""
DRV:3,256,999,0,"","",""
DRV:4,256,999,0,"","",""
DRV:5,256,999,0,"","",""
DRV:6,256,999,0,"","",""
DRV:7,256,999,0,"","",""
DRV:8,256,999,0,"","",""
DRV:9,256,999,0,"","",""
DRV:10,256,999,0,"","",""
DRV:11,256,999,0,"","",""
DRV:12,256,999,0,"","",""
DRV:13,256,999,0,"","",""
DRV:14,256,999,0,"","",""
DRV:15,256,999,0,"","",""
MSG:3006,131072,1,"Opening files on harddrive at file:///mnt/dev/sr0/VIDEO_TS","Opening files on harddrive at %1","file:///mnt/dev/sr0/VIDEO_TS"
MSG:3002,0,2,"Calculated BUP offset for VTS #1 does not match one in IFO header.","Calculated %1 offset for VTS #%2 does not match one in IFO header.","BUP","1"
MSG:3028,0,3,"Title #1 was added (44 cell(s), 1:54:02)","Title #%1 was added (%2 cell(s), %3)","1","44","1:54:02"
MSG:3025,0,3,"Title #2 has length of 12 seconds which is less than minimum title length of 600 seconds and was therefore skipped","Title #%1 has length of %2 seconds which is less than minimum title length of %3 seconds and was therefore skipped","2","12","600"
MSG:4004,16777216,2,"The source file '/VIDEO_TS/VTS_01_1.VOB' is corrupt or invalid at offset 49152-100352, attempting to work around","The source file '%1' is corrupt or invalid at offset %2, attempting to work around","/VIDEO_TS/VTS_01_1.VOB","49152-100352"
MSG:4004,0,2,"The source file '/VIDEO_TS/VTS_01_1.VOB' is corrupt or invalid at offset 106496, attempting to work around","The source file '%1' is corrupt or invalid at offset %2, attempting to work around","/VIDEO_TS/VTS_01_1.VOB","106496"
MSG:4004,16777216,2,"The source file '/VIDEO_TS/VTS_01_1.VOB' is corrupt or invalid at offset 106496, attempting to work around","The source file '%1' is corrupt or invalid at offset %2, attempting to work around","/VIDEO_TS/VTS_01_1.VOB","106496"
MSG:4004,0,2,"The source file '/VIDEO_TS/VTS_01_1.VOB' is corrupt or invalid at offset 104448, attempting to work around","The source file '%1' is corrupt or invalid at offset %2, attempting to work around","/VIDEO_TS/VTS_01_1.VOB","104448"
MSG:4004,16777216,2,"The source file '/VIDEO_TS/VTS_01_1.VOB' is corrupt or invalid at offset 104448, attempting to work around","The source file '%1' is corrupt or invalid at offset %2, attempting to work around","/VIDEO_TS/VTS_01_1.VOB","104448"
MSG:4004,0,2,"The source file '/VIDEO_TS/VTS_01_1.VOB' is corrupt or invalid at offset 49152-100352, attempting to work around","The source file '%1' is corrupt or invalid at offset %2, attempting to work around","/VIDEO_TS/VTS_01_1.VOB","49152-100352"
MSG:5011,0,0,"Operation successfully completed","Operation successfully completed"
Use: makemkvcon [switches] Command [Parameters]

Commands:
  info <source>
      prints info about disc
  mkv <source> <title id> <destination folder>
      saves a single title to mkv file
  backup <source> <destination folder>
      backs up disc to a hard drive
  f <args>
      run universal firmware tool
  reg <key string or file name>
      enter registration key into program

Source specification:
  iso:<FileName>    - open iso image <FileName>
  file:<FolderName> - open files in folder <FolderName>
  disc:<DiscId>     - open disc with id <DiscId> (see list Command)
  dev:<DeviceName>  - open disc with OS device name <DeviceName>

Switches:
  -r --robot        - turn on "robot" mode, see http://www.makemkv.com/developers

But when I check ls -l /home/arm/media/test_eraser there's nothing there. And you can see the command seems to fail after "Operation successfully completed" because it displays the usage help.

RecycleBen commented 1 year ago

Oh I need the word all instead of what I thought the title name was. Still fails to save. Darn alright that's enough for today.

...
MSG:4004,16777216,2,"The source file '/VIDEO_TS/VTS_01_1.VOB' is corrupt or invalid at offset 4800512-4818944, attempting to work around","The source file '%1' is corrupt or invalid at offset %2, attempting to work around","/VIDEO_TS/VTS_01_1.VOB","4800512-4818944"
MSG:5003,0,2,"Failed to save title 0 to file /home/arm/media/test_eraser/A1_t00.mkv","Failed to save title %1 to file %2","0","/home/arm/media/test_eraser/A1_t00.mkv"
MSG:5004,128,2,"0 titles saved, 1 failed","%1 titles saved, %2 failed","0","1"
MSG:5037,516,2,"Copy complete. 0 titles saved, 1 failed.","Copy complete. %1 titles saved, %2 failed.","0","1"
microtechno9000 commented 1 year ago

From the output from the last test, possibly the disk is corrupt?

Have you tried with a different DVD/Blueray/CD in the drive to confirm, 1 the disk isn't bad, or 2 the drive hasn't failed?

RecycleBen commented 1 year ago

Well that latest error was an issue with the drive. I ended up unplugging and plugging the drive back in and rebooting the host.

I was able to finally successfully call the mkv directly using file: instead of disc:

MSG:1005,0,1,"MakeMKV v1.17.3 linux(x64-release) started","%1 started","MakeMKV v1.17.3 linux(x64-release)"
MSG:2004,0,4,"Error 'Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB' occurred while issuing SCSI command 460200010..00100 to device 'SG:dev_21:0'","Error '%1' occurred while issuing SCSI command %4 to device '%2:%3'","Scsi error - ILLEGAL REQUEST:INVALID FIELD IN CDB","SG","dev_21:0","460200010..00100"
DRV:0,2,999,0,"DVD-ROM QEMU QEMU DVD-ROM 2.5+","","/dev/sr0"
DRV:1,256,999,0,"","",""
DRV:2,256,999,0,"","",""
DRV:3,256,999,0,"","",""
DRV:4,256,999,0,"","",""
DRV:5,256,999,0,"","",""
DRV:6,256,999,0,"","",""
DRV:7,256,999,0,"","",""
DRV:8,256,999,0,"","",""
DRV:9,256,999,0,"","",""
DRV:10,256,999,0,"","",""
DRV:11,256,999,0,"","",""
DRV:12,256,999,0,"","",""
DRV:13,256,999,0,"","",""
DRV:14,256,999,0,"","",""
DRV:15,256,999,0,"","",""
MSG:3006,131072,1,"Opening files on harddrive at file:///mnt/dev/sr0/VIDEO_TS","Opening files on harddrive at %1","file:///mnt/dev/sr0/VIDEO_TS"
MSG:3002,0,2,"Calculated BUP offset for VTS #1 does not match one in IFO header.","Calculated %1 offset for VTS #%2 does not match one in IFO header.","BUP","1"
MSG:3002,0,2,"Calculated BUP offset for VTS #2 does not match one in IFO header.","Calculated %1 offset for VTS #%2 does not match one in IFO header.","BUP","2"
MSG:3028,16777216,3,"Title #1 was added (13 cell(s), 1:43:24)","Title #%1 was added (%2 cell(s), %3)","1","13","1:43:24"
MSG:3028,16777216,3,"Title #2 was added (13 cell(s), 1:43:24)","Title #%1 was added (%2 cell(s), %3)","2","13","1:43:24"
MSG:3025,16777216,3,"Title #3 has length of 17 seconds which is less than minimum title length of 120 seconds and was therefore skipped","Title #%1 has length of %2 seconds which is less than minimum title length of %3 seconds and was therefore skipped","3","17","120"
MSG:3027,0,3,"Title #02 in VTS 1 is equal to title #01 and was skipped","Title %3 in VTS %1 is equal to title %2 and was skipped","1","#01","#02"
MSG:5011,0,0,"Operation successfully completed","Operation successfully completed"
MSG:5014,131072,2,"Saving 1 titles into directory file:///home/arm/media/test_poirot","Saving %1 titles into directory %2","1","file:///home/arm/media/test_poirot"
MSG:5005,128,1,"1 titles saved","%1 titles saved","1"
MSG:5036,260,1,"Copy complete. 1 titles saved.","Copy complete. %1 titles saved.","1"
root@807e327afc33:/home/arm# ls -l /home/arm/media/test_poirottotal 2679808
-rw-rw-rw- 1 root root 2744118528 Feb 17 15:38 C1_t00.mkv

(Also used a different disc first to see if that was my problem, but finally saw some mounting errors when trying to mount manually which is why I unplugged, plugged it back in, and rebooted.)

However, I am still unable to run the main arm command successfully, it still errors on disk:0. Which has me thinking it is the same issue as #140

So I guess I will have to try their solution of just using a usb drive / adapter. Darn.

(I might try to manually run the rest of the code with this file to see if I can get the end result, but I don't think all of the commands will work with file: so I think my best hope is a usb solution instead. or a PCI card pass through, I might try that too.)

Thanks all for your help, very helpful folks here!!

1337-server commented 1 year ago

Closing as resolved

RecycleBen commented 1 year ago

yah. thanks for closing this. I think I was doing stuff wrong in the end. or had the wrong drive. or should not have been running it in a VM. thanks for all the support and quick responses!

Tjkent88 commented 1 year ago

I am having a similar issue with proxmox and a Blu-ray drive that I have connected by sata. I have tried a lot of different options in attempting to get the sata connection to work, but I did not come up with anything. I was eventually able to get a usb blu-ray player to work with minimal issues.

@RecycleBen

Can you explain a little where you are putting "file:"

Thanks

RecycleBen commented 1 year ago

I was testing a what the automatic ripper does by running the raw command through a shell session.

I ran this as shown above: makemkvcon -r mkv file:/mnt/dev/sr0 ERASER_NA_16X9 /home/arm/media/test_eraser --minlength=600

But instead put the work all in, like so: makemkvcon -r mkv file:/mnt/dev/sr0 ERASER_NA_16X9 all --minlength=600

Also I switched to a DVD in that above file call.

I don't think it was working at all with bluerays because I bought the wrong drives.

Make sure you buy from this list and flash the firmware to open libra. I have yet to buy the correct drive and try it again with a blue ray.

https://forum.makemkv.com/forum/viewtopic.php?t=19634

DArtagan commented 10 months ago

I've also been trying to use a SATA blu-ray drive in a Proxmox VM. Following an absolute wizard's suggestion, it's finally working.

In Proxmox, add arguments to the VM (/etc/pve/qemu-server/<your_VM_id>.conf) to create a virtual SCSI controller and attach the drive to it:

args: -device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x1 -drive file=/dev/sg1,if=none,format=raw,id=drive-hostdev0,readonly=on -device scsi-generic,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-hostdev0,id=hostdev0

Reference: https://forum.proxmox.com/threads/how-to-do-a-scsi-passthrough.111505/post-483233

RecycleBen commented 10 months ago

Sweet, thanks for adding that info here!! I will have to give this a try on my setup and if I get it working too, I'll reply.