GeometryWars fails to load bgm.mp3: "jfxmedia.MediaException: Could not create player"
See original GitHub issueI 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
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After a long search through libraries and dependencies I’ve managed to install
libavcodec
andlibavformat
on a clean fedora 24. In short,../jre/lib/amd64/
haslibavplugin(53-56).so
, so basicallyffmpeg-compat
gives version 52, which is no longer supported in jdk8_102, the newffmpeg
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 forx86_64
.Once
ffmpeg
installs, you will find severallibav*.so
in/usr/lib64/ffmpeg-full-libs/
or wherever it installed them. All of thelibav*.so
need to be copied to/lib64/
.This should do it, though I installed a few other things along the way like
gstreamer*
andglib*
, so not entirely sure at what point the game stopped throwing the exceptionThere 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