Play BD, DVD and CD Disks

Yesterday I connected an external USB disk player to my Pi 3 B+ for the first time.
The device supports any kind of disks, data/mp3/audio/video CD, DVD up to BD in their differrent layer architectures.

Now when I try to play back various disks, all that works is playing back standard audio CDs.
For the other disk types I see the following behavior:

  • Data CD-RW with MP3: OSMC crashes with this guy: :frowning_face:

  • DVD (non-protected): Nothing happens when you try to select disk playback menu item (with the OK button of my remote or the Return key of my keyboard), even though it says in the upper right corner of the screen that it’s properly mounted, displaying the proper disk title

  • BluRay (non-protected): Nothing happens when you try to select disk playback menu item (with the OK button of my remote or the Return key of my keyboard), even though it says in the upper right corner of the screen that it’s properly mounted, displaying the proper disk title

I read through this forum and several other sites, and it seems I’d probably need to install some additional packages?
There’s things like MPlayer, udev and even a third one of which I forgot the name (does some abstraction layer things for the player). But what of all these do I really (still) need?
On the other hand, why can’t I play unprotected DVDs (with my home movies)?
And about BD, should it be possible to get that to work at all?

You need to provide debug enabled logs that demonstrate the failure. It makes no sense for anyone to guess at the cause of your issues when the software provides logging for the purpose of debugging problems. Thanks for understanding.

1 Like

Hope this helps (I reproduced the previously described issues, including the crash whilst generating the logs):
https://1drv.ms/u/s!As1DR6HP37plgcYvyATIq8-gEe400g
https://1drv.ms/u/s!As1DR6HP37plgcYuWuuEH5QwelSdBQ

Please upload them via My OSMC.

There we go:
https://paste.osmc.tv/guduhuwuji

Maybe I should have mentioned as well that I’d like to replace my standalone BD/DVD/CD player with OSMC on the Pi.
So maybe we can also share here the experience you guys made, if you were able to cover all this and how you got it to work.

I see.
I think I will try it with a >blank< LibreElec 9.0.1 installation and see if the Kodi forum can help me with that.
Anyways, thanks for looking into the logs :wink:

The log didn’t show any attempt to play the affected optical discs; so it’s hard to speculate. Clean logs after reproducing the issue would’ve been helpful.

Also make sure that the drive is receiving enough power.

Hi Sam,

13:01:44.353 T:1925556736 DEBUG: Loading settings for /media/Nourisha MP3 - 3/-89BB~1.MP3
13:01:44.354 T:1925556736 DEBUG: CPlayerCoreFactory::GetPlayers(/media/Nourisha MP3 - 3/-89BB~1.MP3)
13:01:44.354 T:1925556736 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
13:01:44.354 T:1925556736 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
13:01:44.354 T:1925556736 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
13:01:44.354 T:1925556736 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
13:01:44.354 T:1925556736 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
13:01:44.354 T:1925556736 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
13:01:44.354 T:1925556736 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
13:01:44.354 T:1925556736 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
13:01:44.354 T:1925556736 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
13:01:44.354 T:1925556736 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
13:01:44.354 T:1925556736 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
13:01:44.354 T:1925556736 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
13:01:44.354 T:1925556736 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
13:01:44.354 T:1925556736 DEBUG: CPlayerCoreFactory::GetPlayers: adding audiodefaultplayer (PAPlayer)
13:01:44.354 T:1925556736 DEBUG: CPlayerCoreFactory::GetPlayers: for video=0, audio=1
13:01:44.354 T:1925556736 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
13:01:44.354 T:1925556736 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: VideoPlayer
13:01:44.354 T:1925556736 DEBUG: CPlayerCoreFactory::GetPlayers: added 2 players
13:01:44.355 T:1925556736 DEBUG: CFileCache::Open - opening </media/Nourisha MP3 - 3/-89BB~1.MP3> using cache
13:01:44.362 T:1905259264 DEBUG: Thread FileCache start, auto delete: false
13:01:45.723 T:1925556736 DEBUG: ffmpeg[72C5AA00]: Format mp3 detected only with low score of 1, misdetection possible!
13:01:45.723 T:1925556736 DEBUG: Open - probing detected format [mp3]
13:01:45.723 T:1925556736 DEBUG: Open - setting usetoc to 0 for accurate VBR MP3 seek
13:01:45.777 T:1925556736 DEBUG: Seek - waiting for position 6362296.
13:01:46.404 T:1925556736 DEBUG: Open - avformat_find_stream_info starting
13:01:49.636 T:1905259264 INFO: CFileCache::Process - Source read didn’t return any data! Hit eof(?)
13:01:49.722 T:1925556736 DEBUG: ffmpeg[72C5AA00]: [mp3] Could not find codec parameters for stream 0 (Audio: mp3, 0 channels, s16p): unspecified frame size
13:01:49.723 T:1925556736 DEBUG: ffmpeg[72C5AA00]: [mp3] Consider increasing the value for the ‘analyzeduration’ and ‘probesize’ options
13:01:49.723 T:1925556736 DEBUG: Open - av_find_stream_info finished
13:01:49.723 T:1925556736 DEBUG: CDVDDemuxFFmpeg::AddStream ID: 0
13:01:49.723 T:1925556736 DEBUG: FactoryCodec - Audio: passthrough - Opening
13:01:49.723 T:1925556736 DEBUG: FactoryCodec - Audio: passthrough - Failed
13:01:49.723 T:1925556736 DEBUG: FactoryCodec - Audio: FFmpeg - Opening
13:01:49.724 T:1925556736 DEBUG: FactoryCodec - Audio: FFmpeg - Opened
13:01:50.521 T:1905259264 DEBUG: Thread FileCache 1905259264 terminating
13:01:50.522 T:1925556736 DEBUG: SeekTime - unknown position after seek
13:01:50.523 T:1925556736 ERROR: Open - error probing input format, /media/Nourisha MP3 - 3/-89BB~1.MP3

You find this in kodi.old.log, because right after the attempt of playing back this MP3-disk, the pi crashed and restarted, which is why you don’t find anything in the kodi.log which was newly created after the pi came back up.

The player has enough power. I’m running it with the delivered external power supply.

See Autoplay problem with BR DVD USB player - #10 by sam_nazarko

Does this help?

Thanks - I will definitely try that out and let you know.

What I can confirm already is that the latest LibreElec 9.0.2 based on Kodi v18.2 Leia plays all my disks just fine except my commercial BluRay, even the CD-RW with MP3s which makes OSMC crash plays well there.

Is there a way, let’s see this in OSMC again for now, to play back commercial BDs and DVDs?

Commercial DVD will work out of the box as dvdcss is included

For Blu ray you can install libaacs and keydb manually.

Audio CDs will work with the fix suggested previously.

No BD-J menu support at this time though.

Sam

No change after modifying advancedsettings.xml - homemade DVD does not start playing, MP3 CD-RW makes OSMC crash and BD doesn’t start playing either.

I might try to go to the latest OSMC based on Kodi Leia, but then I would lose my Shadertoy screensaver and visualization, which is a no-go for me.
By the way, with LibreElec 9.0.2 at least the screensaver works while the visualization does not yet.

Maybe it’s all just a matter of time to get it working, the disks to play and the look & feel add-ons as well.

Wait – so you’re not using the latest version of OSMC?
LibreELEC 9.x should be Leia based – so you are comparing apples and oranges.

I’d assumed you’d have upgraded.

EDIT - I am now running on a fresh installation of the latest available OSMC (from the download section) on a second microSD card for testing purpose.
So for now, let me get back to the Bluray issue.
I am aware on the fact that I need a keydb.cfg file in order to play back my bought commercial BD disks.

I don’t need a source for that file, it’s quite easy to find.
What I am missing is:

  • How is the folder structure in OSMC for that, means where do I need to place that file?

  • Do I still need to install anything via apt-get for commercial BD playback, or should everything be there?

Please can we keep it all in one thread?

Sure. I just tried to delete my last entry, so that the disk isse and the general ones are separated.
According to your proposal, which of the 2 threads would you prefer to continue on?