On Triskel 10 (Ubuntu 20.04 compatible) this works:
Code: Select all
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 /usr/bin/vlc bluray:///dev/sr0
The problem is that my Blu-Ray movies require newer version of Java. The result is menu appear but not work.
It reports this in strange way:
Code: Select all
<unknown.java>:a.a.a.k.a.a:-1: Error!! [a.a.a.c.j] Info flags is 8
<unknown.java>:a.a.a.k.a.a:-1: Error!! [a.a.a.c.j] Info flags is 8
<unknown.java>:a.a.a.k.a.a:-1: Error!! [a.a.a.c.j] Info flags is 8
[...]
<unknown.java>:a.a.a.k.a.a:-1: Error!! [a.a.a.c.j] Info flags is 8
<unknown.java>:a.a.a.k.a.a:-1: Error!! [a.a.a.c.j] Info flags is 8
<unknown.java>:a.a.a.k.a.a:-1: Error!! [a.a.a.c.j] Info flags is 8
<unknown.java>:a.a.a.k.a.a:-1: Error!! [a.a.a.c.j] Info flags is 8
<unknown.java>:a.a.a.k.a.a:-1: Error!! [a.a.a.c.j] Image main.0.png failed with 32
<unknown.java>:a.a.a.k.a.a:-1: Error!! Loaded the full menu!
But not hangs.
When I try:
Code: Select all
JAVA_HOME=/usr/lib/jvm/openjdk-17 /usr/bin/vlc bluray:///dev/sr0
VCL hangs and the result is:
Code: Select all
VLC media player 3.0.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d)
[000055e5439bd5b0] main libvlc: Uruchamianie vlc z domyślnym interfejsem. Użyj 'cvlc', aby używać vlc bez interfejsu.
[00007f8db4001120] libbluray demux: First play: 1, Top menu: 1
HDMV Titles: 2, BD-J Titles: 2, Other: 0
bdj.c:865: Detected Java 9 or later JVM - support is experimental !
Error occurred during initialization of boot layer
java.lang.AbstractMethodError: Receiver class java.io.BDFileSystemImpl does not define or inherit an implementation of the resolved method 'abstract boolean isInvalid(java.io.File)' of abstract class java.io.FileSystem.
I think this not work due to line:
Code: Select all
bdj.c:865: Detected Java 9 or later JVM - support is experimental !
BTW: Strange, but JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 /usr/bin/vlc dvd:///dev/sr0 properly run DVD disc menu and it works as expected.
Summary:
VLC version included in Ubuntu 20.04 and compatible has experimental support for Java versions used in new Blu-Ray movies.
I think this is low priority for VLC team. Because Java 8 is old as Earth. And none newer version works.
Maybe some donations will motivate the Team to fix this.
I donated VLC project in the past as Jacek Marcin Jaworski, but I can't afford now because I lost my job.