[WiP] madVR support in MP1 (38 Viewers)

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,514
    10,467
    France
    Home Country
    France France
    In MP root folder, you should have the .jar but not sure why it failed for you but maybe libbluray didn't find the needed Java installation too :(
    upload_2018-2-2_19-48-42.png


    Try to copy libbluray-j2se-1.0.2.jar to libbluray.jar or the reverse :p
     

    joecrow

    Test Group
  • Team MediaPortal
  • August 9, 2012
    2,714
    2,077
    Home Country
    Germany Germany
    Could this be the problem, download link is for JRE not JDK,:confused:
    Screenshot 1 is the Wikki, screenshot 2 is the actual.
    1.jpg 2.jpg
     

    el Filou

    MP Donator
  • Premium Supporter
  • July 2, 2008
    144
    116
    Home Country
    Belgium Belgium
    Is there an easy way to find out if a Blu-ray title has Java menus? Like for example all discs from a certain studio?
    I don't feel like trying all my discs to find one with Java menus just to do a test. :LOL:

    Edit: read on some forum that The Dark Knight uses Java, but no luck with it. Without the JAVA_HOME environment variable, I see an icon of a disc on a black background for one second, then a duration bar (but not MP's one) for a very short moment, then it starts the movie directly. When I add the env. variable pointing to the JRE folder, it goes back to MP Home after the Warner logo clip.
    I'm still on some Pre-1.19 MP build though, not sure if that has any influence?
     
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,514
    10,467
    France
    Home Country
    France France
    Hi :)

    Most of new BD has a BD-J.

    But when starting MP in BDReader.log :
    Code:
    02-02-2018 18:46:56.662 [ 5bd8]--------- bluray ---------------------
    02-02-2018 18:46:56.662 [ 5bd8]-------------- v0.63 -----------------
    02-02-2018 18:46:56.662 [ 5bd8]CBDReaderFilter::ctor
    02-02-2018 18:46:56.662 [ 5bd8]CLibBlurayWrapper - Load bluray: C:\Program Files (x86)\Team MediaPortal\MediaPortal\bluray.dll
    02-02-2018 18:46:56.670 [ 5bd8]CLibBlurayWrapper - initialization succeeded
    02-02-2018 18:46:56.672 [ 5bd8]CLibBlurayWrapper - Settings: Audio(fra), Menu(fra), Sub(fra), Ctry(fr), Reg(2), Prtl(99)
    02-02-2018 18:46:56.672 [ 5bd8]callback set
    02-02-2018 18:46:56.672 [ 5bd8]CBDReaderFilter::Load()
    02-02-2018 18:46:56.673 [ 5bd8]CLibBlurayWrapper - OpenBluray: J:
    02-02-2018 18:46:56.720 [ 5bd8]Disk Info:
    02-02-2018 18:46:56.720 [ 5bd8]--------------------------
    02-02-2018 18:46:56.721 [ 5bd8]aacs_detected:          0
    02-02-2018 18:46:56.721 [ 5bd8]aacs_handled:           0
    02-02-2018 18:46:56.722 [ 5bd8]bdplus_detected:        0
    02-02-2018 18:46:56.722 [ 5bd8]bdplus_handled:         0
    02-02-2018 18:46:56.722 [ 5bd8]bluray_detected:        1
    02-02-2018 18:46:56.722 [ 5bd8]first_play_supported:   1
    02-02-2018 18:46:56.722 [ 5bd8]num_bdj_titles:         3
    02-02-2018 18:46:56.723 [ 5bd8]num_hdmv_titles:        8
    02-02-2018 18:46:56.723 [ 5bd8]num_unsupported_titles: 0
    02-02-2018 18:46:56.723 [ 5bd8]top_menu_supported:     1
    02-02-2018 18:46:56.724 [ 5bd8]libaacs_detected:       0
    02-02-2018 18:46:56.724 [ 5bd8]--------------------------

    Code:
    02-02-2018 18:46:56.722 [ 5bd8]num_bdj_titles:         3

    :p

    Edit : so if i remove the .JAR, i'm getting also :
    03-02-2018 09:16:20.182 [ 57e4]Read failed...failure on libbluray side
    And in bddebug.log :
    bdj.c:303: Opening C:\Program Files (x86)\Java\jdk1.8.0_144\jre\bin\server\jvm ...
    bdj.c:515: invalid LIBBLURAY_CP C:\Program Files (x86)\Team MediaPortal\MediaPortal\libbluray.jar
    bdj.c:695: BD-J check: Failed to load libbluray.jar
    bdj.c:303: Opening C:\Program Files (x86)\Java\jdk1.8.0_144\jre\bin\server\jvm ...
    bdj.c:515: invalid LIBBLURAY_CP C:\Program Files (x86)\Team MediaPortal\MediaPortal\libbluray.jar
    bdj.c:695: BD-J check: Failed to load libbluray.jar
    bdj.c:819: bdj_open()
    bdj.c:515: invalid LIBBLURAY_CP C:\Program Files (x86)\Team MediaPortal\MediaPortal\libbluray.jar
    bdj.c:823: BD-J start failed: libbluray-j2se-1.0.2.jar not found.
    bluray.c:3243: Can't play BD-J title 2
    bluray.c:2085: bd_read(): no valid title selected!
     
    Last edited:

    joecrow

    Test Group
  • Team MediaPortal
  • August 9, 2012
    2,714
    2,077
    Home Country
    Germany Germany
    @Sebastiii Got BD-J working:D*, just needed the correct version of Java, looks like it only works with the SDK (Developement Kit) version. The link in the Wikki is for the regular Java which installs in a folder name e.g. jre.1.8.0_161 and that did not work for me even if the variable is set to reference it.:mad:
    The SDK version installs in a folder jdk.1.8.0_161 and then BD-J menus work.:)

    * I did notiice that on my test BD (Hobbit part 1_2D) that on first play it went to the menu perfectly but on second play after selecting "Menu" I got a Java menu asking if I wanted to go back to start or continue from last position, regardless of what is selected it starts to play but then stalls and only stop works to return to MP. Next attempt to play is then OK.
    Nice work, almost at the point now where PowerDVD is redundant:), needs some work on the Wikki though or I was in the wrong place (searched on BD-J).
     

    el Filou

    MP Donator
  • Premium Supporter
  • July 2, 2008
    144
    116
    Home Country
    Belgium Belgium
    I have now but still no luck, it goes back to home screen like it did with the public JRE.
    I used The Dark Knight because some Kodi thread from 2015 said its menu worked with libbluray but I'll update to your latest test build and also test with some other discs when I have some time later.

    Edit: when I install the JDK but set JAVA_HOME to the JDK folder itself, MP still plays Blu-rays in title mode. I have to append ' \jre ' to the JAVA_HOME JDK path for it to (try to) use the menu!
     

    Users who are viewing this thread

    Top Bottom