GeometryWars fails to load bgm.mp3: "jfxmedia.MediaException: Could not create player"See original GitHub issue
I spotted http://almasb.github.io/FXGLGames/ on reddit, and tried out the first example listed: GeometryWars.
I cloned FXGLGames, changed directory to GeometryWars, executed
mvn package which succeeded, and ran the jar with
java -jar and it failed.
See log output, etc: http://hastebin.com/fuvuholatu.sm
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
After a long search through libraries and dependencies I’ve managed to install
libavformat on a clean fedora 24. In short,
libavplugin(53-56).so, so basically
ffmpeg-compat gives version 52, which is no longer supported in jdk8_102, the new
ffmpeg gives 57, which is not yet supported. So best bet is to use 56.
The rpm I used is here.
dnf install DOWNLOADED_RPM.rpm will say that a few
.rpm are missing, so they have to be downloaded again manually using the same repo. Here’s a shortcut for
ffmpeg installs, you will find several
/usr/lib64/ffmpeg-full-libs/ or wherever it installed them. All of the
libav*.so need to be copied to
This should do it, though I installed a few other things along the way like
glib*, so not entirely sure at what point the game stopped throwing the exception
There are open questions on ask.fedoraproject and stackoverflow targeting this issue: https://ask.fedoraproject.org/en/question/94059/how-to-install-libavcodec53-and-libavformat53-so-that-oracle-javafx-mediaplayer-will-initialize/ http://stackoverflow.com/questions/27475902/fedora-21-javafx-not-creating-mediaplayer