• 1
  • 2(current)
  • 3
  • 4
  • 5
  • 7
Linux How to associate "Play disc" with the Blu-ray discs?
#16
Virtualbox allows sharing a unmounted device to the windows vm, so the unencrypted bluray is the only folder in /mnt and playback fails because it seems as though its trying to play the first file on my root partition. (This is when clicking on the 'play disc' menu option)

Code:
17:53:40 T:140697852032896  NOTICE: DVDPlayer: Opening: /initrd.img
17:53:40 T:140697852032896 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
17:53:40 T:140697593865984  NOTICE: Thread CDVDPlayer start, auto delete: false
17:53:40 T:140697593865984  NOTICE: Creating InputStream
17:53:40 T:140697593865984   ERROR: Error on dvdnav_open
17:53:40 T:140697593865984   ERROR: CDVDPlayer::OpenInputStream - error opening [/initrd.img]
17:53:40 T:140697593865984  NOTICE: CDVDPlayer::OnExit()
17:53:40 T:140697593865984  NOTICE: CDVDPlayer::OnExit() deleting input stream
17:53:40 T:140697852032896   ERROR: Playlist Player: skipping unplayable item: 0, path [/initrd.img]
17:53:40 T:140697852032896  NOTICE: CDVDPlayer::CloseFile()
17:53:40 T:140697852032896 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
17:53:40 T:140697852032896  NOTICE: DVDPlayer: waiting for threads to exit
17:53:40 T:140697852032896  NOTICE: DVDPlayer: finished waiting

It doesnt play with or without playercorefactory.xml. As a reference the disk played fine with standalone vlc with the encrypted disk unmounted.

Also its not possible to launch xbmc from command line and point it to media - maybe using a playlist on startup would work..

Reply
#17
@spontex: just for understanding - you're running a stock xbmc, simply installed libaacs and the keydb.cfg file and the xbmc internal player plays the bluray ? You're sure, that the blurays are copy protected ?
HTPC Specs: Silverstone GD05B Case, ASUS P8H61-M LE/USB3, i5-3470S, GT1030, 8 GB RAM , 2 TB HDD, iHOS104 BluRay Drive, TT DVBS2-1600, Sony PS3 BD Remote control
PS3 BD Remote Control Daemon for Kodi/Linux
UNCHAINED Demo Group
Reply
#18
Yes, I am running XBMC Frodo Beta 3 under XBMCbuntu Eden (this used to work under XBMC Eden).
I installed libbluray, libaacs and keysdb.cfg. And I have been able to play dozens of Blu-ray discs I bought or rented, both with VLC and the XBMC internal player. Only very few (one or two) of them have caused problems but they are known not to work with the current version of libaacs.
Reply
#19
Ok, I just got A Scanner Darkly in the mail and it is decrypted by libaacs fine and plays from the play disc menu option with no external players. Ubuntu auto mounts it to /media/username/A_SCANNER_DARKLY and that folder shows a disc icon, spontex are your disks automounted at all? I may try to mount my samba shared disc to /media/tw/br0 and try again like my post above with virtualbox. Im going to try on my htpc in a minute.

The commands from this thread can be used to launch a video file and used to make a simple addon to launch blurays

Code:
curl --data-binary '{ "jsonrpc": "2.0", "method": "Player.Open", "params":{"item": {"file": "/media/br0/BDMV/index.bdmv"}}, "id": "1" }' -H 'content-type: application/json;' http://localhost:7777/jsonrpc

Code:
curl -H "Content-Type:application/json" -d '{ "jsonrpc": "2.0", "id": "1", "method": "Player.Open", "params":{"item": {"file": "/home/wuff/Videos/killa.sampla.x264.mkv"}}}' http://localhost:8080/jsonrpc

Just change the file and port to suit.

Reply
#20
Thank you! So you can play both DVDs and Blu-rays from the "Play disc" menu option?
As a matter of fact, I should perhaps remove the trick in my first message which mounts everything to /media/bd-dvd instead of /media/<VOLUME_ID>. The switch from XBMC Eden to Frodo seems to have improved the default behaviour with Blu-ray discs.
Reply
#21
I havent tried with a dvd , only 1 bluray. I tired the vlc way on my htpc (runnng a minimal ubuntu 12.04) and at it wouldnt play from the home menu until I added a fstab entry to mount the bd-rom:

Code:
/dev/sr0      /media/bd-dvd      auto    ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,umask=0077        0

After that it played the bd fine. I also made sure I had libbluray installed.
Reply
#22
Hello,
I do not understand: I just tried to remove my trick and to play a blu-ray from XBMC. I just inserted the Contraband Blu-ray and it was mounted as /media/CONTRABAND_G53. Then I tried the "Play disc" option inside XBMC but nothing happened.
I noticed this line in the XBMC log:
Code:
21:16:24 T:2988378992   ERROR: Detection of DVD-ROM media failed.

As usual, playing the Blu-ray disc from XBMC > Videos using the index file works fine:
Code:
21:21:34 T:3017180944  NOTICE: DVDPlayer: Opening: /media/bd-dvd/BDMV/index.bdmv

Could you really play your Blu-ray disc from the XBMC main menu "Play disc" option? For me it only works on DVDs and I have to manually select the index.bdmv files to play the Blu-rays.
Reply
#23
After trying this out I find the "Play disc" to work for Blu-Ray but only if the disk is actually mounted. Which doesn't seem to work automatically.

After inserting the disc XBMC sees it but doesn't actually mount it. I know this because going to "videos > files" I can see the disc label but opening it takes me to the root filesystem.

In addition ssh'ing in and running the mount command doesn't show it as mounted.

If I manually mount it OR restart the lightdm service it does mount it properly and then the "Play disc" work perfect and the movie starts.
Reply
#24
(2012-12-13, 22:32)spontex Wrote: Hello,
I do not understand: I just tried to remove my trick and to play a blu-ray from XBMC. I just inserted the Contraband Blu-ray and it was mounted as /media/CONTRABAND_G53. Then I tried the "Play disc" option inside XBMC but nothing happened.
I noticed this line in the XBMC log:
Code:
21:16:24 T:2988378992   ERROR: Detection of DVD-ROM media failed.

As usual, playing the Blu-ray disc from XBMC > Videos using the index file works fine:
Code:
21:21:34 T:3017180944  NOTICE: DVDPlayer: Opening: /media/bd-dvd/BDMV/index.bdmv

Could you really play your Blu-ray disc from the XBMC main menu "Play disc" option? For me it only works on DVDs and I have to manually select the index.bdmv files to play the Blu-rays.

Okay on further testing if I removed the bd and re-inserted it it wouldnt play till i run 'mount -a' with the /etc/fstab entry from above, after that the disc plays from the play disc home menu entry. My ubuntu desktop install which I was originally testing with didnt have a entry in /etc/fstab for the bd-rom, I haveto test with that machine again, as it seemed to automount bd's.

Spontex I was getting that error alot when testing, was xbmc trying to launch the right file when you were getting that error?


Reply
#25
I tried to mount it using a line in fstab but it did not work. I believe that optical drives should not be in fstab but instead in udev files (see first post on page 1).
All my BDs are automounted to /media/bd-dvd thanks to this udev rule, but it still does not allow me to play them from the XBMC main menu.
The underlying OS may affect the mounting behaviour. I am using XBMCbuntu Eden but will switch to Ubuntu or XBMCbuntu Frodo if it helps.
Reply
#26
Hello,

My blu-ray are not playing... I've got libbluray and libaacs installed

root@deneb:~# apt-cache policy libbluray1
libbluray1:
Installed: 1:0.2.3-1
Candidate: 1:0.2.3-1
Version table:
*** 1:0.2.3-1 0
500 http://es.archive.ubuntu.com/ubuntu/ quantal/universe i386 Packages
100 /var/lib/dpkg/status
root@deneb:~# apt-cache policy libaacs0
libaacs0:
Installed: 0.5.0-2
Candidate: 0.5.0-2
Version table:
*** 0.5.0-2 0
500 http://es.archive.ubuntu.com/ubuntu/ quantal/universe i386 Packages
100 /var/lib/dpkg/status

The KEYDB.cfg file is on /home/xbmc/.config/aacs

This is shown on xbmc.log

00:34:25 T:3007731520 NOTICE: DVDPlayer: Opening: bluray://%2fmnt%2f/BDMV/PLAYLIST/00002.mpls
00:34:25 T:3007731520 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
00:34:25 T:2896165696 NOTICE: Thread CDVDPlayer start, auto delete: false
00:34:25 T:2896165696 NOTICE: Creating InputStream
00:34:26 T:2896165696 ERROR: CDVDInputStreamBluray::Open - Media stream scrambled/encrypted with AACS
00:34:26 T:2896165696 ERROR: CDVDPlayer::OpenInputStream - error opening [bluray://%2fmnt%2f/BDMV/PLAYLIST/00002.mpls]
00:34:26 T:2896165696 NOTICE: CDVDPlayer::OnExit()
00:34:26 T:2896165696 NOTICE: CDVDPlayer::OnExit() deleting input stream
00:34:26 T:3007731520 ERROR: Playlist Player: skipping unplayable item: 0, path [bluray://%2fmnt%2f/BDMV/PLAYLIST/00002.mpls]
00:34:26 T:3007731520 NOTICE: CDVDPlayer::CloseFile()
00:34:26 T:3007731520 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
00:34:26 T:3007731520 NOTICE: DVDPlayer: waiting for threads to exit
00:34:26 T:3007731520 NOTICE: DVDPlayer: finished waiting
00:34:26 T:2948594496 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'MyPlayer' object has no attribute 'type'
Traceback (most recent call last):
File "/home/xbmc/.xbmc/addons/service.skin.widgets/default.py", line 685, in onPlayBackStopped
if self.type == 'movie':
AttributeError: 'MyPlayer' object has no attribute 'type'
-->End of Python script error report<--

Anybody knows what could be happening?

Reply
#27
Is it a newer movie? The keydb only supports up to either mkb v28 or v29.
Reply
#28
When running xbmc from a ubuntu desktop the bd plays from the play disc menu option, I can eject the disc, reinsert it and I get a pop up saying volume mounted and I can play the disc.

If I launch xbmc as a desktop session from lightdm I can only play the disc if it was previously mounted in ubuntu - as soon as reinsert the bd it wont play anymore.

I tried your udev rule and it made no difference, so Im guessing its something to do with ubuntu/gnome as this is all thats changing - maybe gvfs?. Xbmcbuntu has a desktop environment installed no? Log into that and launch xbmc and see if it works for you.
Reply
#29
(2012-12-14, 02:09)shadow Wrote: Is it a newer movie? The keydb only supports up to either mkb v28 or v29.

I've tried two blu-ray concerts, one released this year and one released two years ago, with the same results.
Doing tests with aacskeys the older one seems to have v17, so this shouldn't be the problem.
Reply
#30
(2012-12-14, 03:05)teeedubb Wrote: Xbmcbuntu has a desktop environment installed no? Log into that and launch xbmc and see if it works for you.

It is Ok ... in fact I am now quite happy with my solution: a "Play disc" main menu item with two sub-items: "DVD" and "Blu-ray" which both work fine. My only wish would now be to merge them into one single menu item.
Reply
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 7

Logout Mark Read Team Forum Stats Members Help
How to associate "Play disc" with the Blu-ray discs?2