batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.95k stars 501 forks source link

Kodi does not recognize DVDs/Blu-Rays #4304

Closed ghbbeep closed 1 year ago

ghbbeep commented 3 years ago

Kodi knows there is a disc inserted, however upon pressing Play Disc, it simply does not function. The Eject button works fine.

SethBarberee commented 2 years ago

I ran into this issue on V31 and V32. I'm able to play an Audio CD perfectly on Kodi. This same movie can be played on my Arch Linux machine with USB DVD Drive therefore DVD itself isn't an issue.

Any other logs that can help with diagnosing this?

Digging a little into dmesg when reading the DVD:

[   34.868301] sr 2:0:0:0: [sr0] tag#18 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=5s
[   34.868303] sr 2:0:0:0: [sr0] tag#18 Sense Key : Medium Error [current] 
[   34.868305] sr 2:0:0:0: [sr0] tag#18 Add. Sense: L-EC uncorrectable error
[   34.868306] sr 2:0:0:0: [sr0] tag#18 CDB: Read(10) 28 00 00 22 e1 16 00 00 02 00
[   34.868306] blk_update_request: I/O error, dev sr0, sector 9143384 op 0x0:(READ) flags 0x0 phys_seg 2 prio class 0
[   34.868309] Buffer I/O error on dev sr0, logical block 2285846, async page read
[   34.868310] Buffer I/O error on dev sr0, logical block 2285847, async page read

After enabling DEBUG in kodi.log

2021-10-02 18:11:00.514 T:1870     INFO <general>: CD-ROM with ISO 9660 filesystem
2021-10-02 18:11:00.514 T:1870     INFO <general>: ISO 9660: 1151849 blocks, label
2021-10-02 18:11:00.515 T:1870     INFO <general>: Tracks overall:1; Audio tracks:0; Data tracks:1
2021-10-02 18:11:00.515 T:1870     INFO <general>: Using protocol iso9660://
2021-10-02 18:11:00.515 T:1870     INFO <general>: Disc label:
RaouleMenard commented 2 years ago

Same issue here. Inserting the DVD is recognized by kodi, can eject it with kodi, but pressing play do nothing.

Booting to Windows, DVDs works - so same x64 PC, same DVD drive, same DVD.

I've also installed VLC via flatpak, doesn't work either. So I suppose it's the DVD mounting in Linux that's broken.

Jurrie commented 1 year ago

According to enen92 on the Kodi forum you need to mount the DVD before it can be played. Kodi supports udisks2, but I think I have not seen it in Batocera. Maybe you can manually mount the DVD?

dmahurin commented 1 year ago

The last version of Kodi to work for playing DVD discs (on Batocera) was apparently Kodi 18.9, which was part of Batocera release 30. It was apparently never fixed in Kodi 19 or Kodi 20.

To get functional DVD disc playback again, you would need to go back to Batocera 30, 20210302.

If you want this working on a rpi3, for example, you would need to use: https://archive.org/download/batocera/rpi3/20210302/

The disc is not mounted, btw in that release, nor in Retropie, which also has working DVD playback with Kodi 18.

dmahurin commented 1 year ago

I am curious if this has been a problem with Kodi, or if other systems or platforms are working with Kodi 20.

Or is Batocera build somehow missing BR2_PACKAGE_KODI20_OPTICALDRIVE?

dmanlfc commented 1 year ago

fixed - https://github.com/batocera-linux/batocera.linux/pull/9259