CD-ROM + MakeMKV

tldr; why can Kodi communicate with the CD-ROM but makemkvcon/eject can’t?

I’m using a Homatics Box R 4K Plus with the CD-ROM in the USB 2.0 port and CoreELEC running in the USB 3.0 port. Using CoreELEC ng.arm-21.1.1

Is the CD-ROM somehow locked down for exclusivity for Kodi? Kodi can eject the CD-ROM and detect the type of disc in the drive (blu-ray in this case). However, I get a bus error via SSH when running “./makemkvcon info”. If I try “eject /dev/sr0” there’s a I/O error. I installed a 64-bit Docker version and the webui states that it can’t find any optical drives. If I use eject /dev/sr0 inside that container it states it’s busy.

Try stopping Kodi systemctl stop kodi then see if you can access the drive, this should tell you if Kodi is taking exclusive control of the drive.

I tried. If the drive is empty I can eject it and I use systemctl stop kodi. As soon as I put a disc in, I can no longer do either.

CoreELEC:~ # eject /dev/sr0 # Success here
CoreELEC:~ # eject /dev/sr0 # Error
eject: /dev/sr0: Input/output error
CoreELEC:~ # systemctl stop kodi
-sh: /usr/bin/systemctl: Input/output error

If I manually eject the disc, remove it and close the tray everything works again, even after the errors! So, only when a disc is in the drive do these errors occur. The disc I’m testing with is a 4K UHD of Real Genius which rips fine in the same drive on my x64 systems.

I don’t know anything about the CD-ROM but seems your installation is broken because of this output.
Can you post url after

dmesg | paste

https://github.com/CoreELEC/CoreELEC/releases/download/21.1.1-Omega/CoreELEC-Amlogic-ng.arm-21.1.1-Omega-Generic.img.gz

Again, if I remove the disc, the errors go away and I can use “systemctl” and “eject” again. So the errors only seem to happen when a disc is in the CD-ROM and/or mounted. But, Kodi can eject the disc and browse the filesystem, although it can’t play the disc or a file in BDMV/STREAM/*.m2ts. I can’t do anything outside of Kodi,“eject /dev/sr0” does nothing, makemkvcon gives a bus error… everything is broken.

I see in 21.2 there is “Fixed seek of BluRay ISO”, could this relate to seeking of physical discs in a CD-ROM? It’s still UDF 2.5 right?

I’ve also tried with “dtech’s” makemkv addon from here [SOLVED] MakeMKV v1.17.8 - "This application version is too old. Please download the latest..." - Page 2 - www.makemkv.com which doesn’t seem to work either.

From the end of /storage/.kodi/temp/kodi.log

2025-02-08 15:10:10.674 T:4090     info <general>: JSONRPC v13.5.0: Successfully initialized
2025-02-08 15:10:10.674 T:4090     info <general>: [Media Detection] starting service for optical media detection
2025-02-08 15:10:10.683 T:4326     info <general>: Detecting DVD-ROM media filesystem...
2025-02-08 15:10:10.694 T:4090     info <general>: AddOnLog: peripheral.joystick: Enabling joystick interface "linux"
2025-02-08 15:10:10.700 T:4326  warning <general>: dll_ioctl - 21392 request failed with error [5] Input/output error
2025-02-08 15:10:10.705 T:4090     info <general>: Register - new keyboard device registered on application->keyboard: Keyboard (0000:0000)
2025-02-08 15:10:10.705 T:4090     info <general>: Register - new mouse device registered on application->mouse: Mouse (0000:0000)
2025-02-08 15:10:10.707 T:4090     info <general>: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
2025-02-08 15:10:10.709 T:4090     info <general>: Loaded playercorefactory configuration
2025-02-08 15:10:10.709 T:4090     info <general>: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
2025-02-08 15:10:10.709 T:4090     info <general>: special://masterprofile/playercorefactory.xml does not exist. Skipping.
2025-02-08 15:10:10.709 T:4090     info <general>: removing tempfiles
2025-02-08 15:10:10.722 T:4090     info <general>: initialize done
2025-02-08 15:10:10.722 T:4090     info <general>: Running the application...
2025-02-08 15:10:10.729 T:4090     info <general>: starting zeroconf publishing
2025-02-08 15:10:10.735 T:4337     info <general>: ES: Starting UDP Event server on port 9777
2025-02-08 15:10:10.735 T:4337     info <general>: UDP: Listening on port 9777 (ipv6 : false)
2025-02-08 15:10:10.736 T:4090     info <general>: JSONRPC Server: Successfully initialized
2025-02-08 15:10:10.741 T:4090     info <general>: CWSDiscoveryListenerUDP::Start - Started
2025-02-08 15:10:11.016 T:4326    error <general>: Libdvd: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
2025-02-08 15:10:11.016 T:4326  warning <general>: Libdvd: Can't open file VIDEO_TS.IFO.
2025-02-08 15:10:11.017 T:4326    error <general>: Libdvd: vm: vm: failed to read VIDEO_TS.IFO
2025-02-08 15:10:11.017 T:4326    error <general>: Error on dvdnav_open
2025-02-08 15:10:11.017 T:4326    error <general>: GetDirectory - Error getting /dev/cdrom/BDMV/PLAYLIST
2025-02-08 15:10:11.018 T:4326    error <general>: CBlurayDirectory::InitializeBluray - failed to open /dev/cdrom
2025-02-08 15:10:11.024 T:4326     info <general>: CD Analysis Report
2025-02-08 15:10:11.024 T:4326     info <general>: __________________________________
                                                   
2025-02-08 15:10:11.029 T:4326     info <general>: CD-ROM with unknown filesystem
2025-02-08 15:10:11.029 T:4326     info <general>: Tracks overall:1; Audio tracks:0; Data tracks:1
2025-02-08 15:10:11.029 T:4326     info <general>: Using protocol /dev/cdrom
2025-02-08 15:10:11.029 T:4326  warning <general>: Filesystem is not supported
2025-02-08 15:10:11.040 T:4329     info <general>: Register - new cec device registered on cec->AOCEC: CEC Adapter (0000:0000)
2025-02-08 15:10:11.114 T:4090     info <general>: GLES: Enabling VSYNC
2025-02-08 15:10:12.305 T:4334     info <general>: ## CoreELEC Addon ## system::set_hostname ## CoreELEC
2025-02-08 15:10:12.307 T:4334     info <general>: ## CoreELEC Addon ## system::set_keyboard_layout ## us
2025-02-08 15:10:13.001 T:4334     info <general>: ## CoreELEC Addon ## updates::updateThread ## Started
2025-02-08 15:10:13.003 T:4334     info <general>: ## CoreELEC Addon ## updates::set_auto_update ## auto
2025-02-08 15:10:13.189 T:4398     info <general>: ## CoreELEC Addon ## _service_::run ## WAITING:
2025-02-08 15:10:13.199 T:4397     info <general>: ## CoreELEC Addon ## xdbus Monitor started. ## 
2025-02-08 15:10:17.936 T:4090     info <general>: Loading controller layout: /usr/share/kodi/addons/game.controller.keyboard/resources/layout.xml

edit: I can use ls -al on the CD-ROM’s mounted directory, sorry I was using the device /dev/sr0 out of frustration.