Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575978 - dev-java/oracle-jdk-bin- can't play videos with JavaFX
Summary: dev-java/oracle-jdk-bin- can't play videos with JavaFX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Java team
Depends on:
Reported: 2016-02-29 10:07 UTC by aditsu
Modified: 2020-09-19 08:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

test program (URL version) (,722 bytes, text/x-java)
2016-02-29 10:10 UTC, aditsu
test program (file version) (,700 bytes, text/x-java)
2016-02-29 10:17 UTC, aditsu

Note You need to log in before you can comment on or make changes to this bug.
Description aditsu 2016-02-29 10:07:02 UTC
I tried to use JavaFX to play a video file, but got this error:

MediaException: UNKNOWN : Could not create player!

It happens with every file I tried (except unsupported formats). The same code (with the same files) is working perfectly fine in windows.
Upon debugging, I found that a MediaError with code 265, name "ERROR_MEDIA_AUDIO_FORMAT_UNSUPPORTED", is internally reported in GSTMedia.init()

I tried a few different audio codecs, and even removed the audio completely, but still got the same error every time.
Comment 1 aditsu 2016-02-29 10:10:56 UTC
Created attachment 426966 [details]
test program (URL version)

Here is a simple program you can use for testing. The file I used is from (Oracle's own sample video). You could also try to load it directly from the URL, but that seems to freeze the program in my case.
Comment 2 aditsu 2016-02-29 10:16:13 UTC
Comment on attachment 426966 [details]
test program (URL version)

Oops, I uploaded the URL version by accident
Comment 3 aditsu 2016-02-29 10:17:29 UTC
Created attachment 426974 [details]
test program (file version)

This is the code I intended to upload the first time.
Comment 4 James Le Cuirot gentoo-dev 2016-02-29 10:22:38 UTC
As discussed on IRC, this is probably because we don't install the ffmpeg helper libraries. That's because they always lag too far behind the ffmpeg versions we have in the tree.

One option might be to force the helper libraries to use the system version anyway so it at least has a chance of working. On the other hand, that could possibly bring down the whole JVM.

The best solution would be to package OpenJFX so that we can properly link against our own ffmpeg but don't expect that in a hurry.

Thanks for the test program, that's very helpful.
Comment 5 aditsu 2016-02-29 10:32:13 UTC
Thanks, any solution would be fine, as long as it doesn't break other things. Just wanted to report this so we have a record. Let me know if I can help.
Comment 6 Larry the Git Cow gentoo-dev 2020-09-19 08:07:01 UTC
The bug has been closed via the following commit(s):

commit 6a7faaad2f8c5312dfb8d6e539b5a7346652e98b
Author:     Georgy Yakovlev <>
AuthorDate: 2020-09-18 22:36:24 +0000
Commit:     Georgy Yakovlev <>
CommitDate: 2020-09-19 08:05:29 +0000

    dev-java/oracle-jdk-bin: remove last rited pkg
    Signed-off-by: Georgy Yakovlev <>
    Signed-off-by: Georgy Yakovlev <>

 dev-java/oracle-jdk-bin/Manifest                   |  15 --
 .../oracle-jdk-bin/files/     | 161 -----------
 .../oracle-jdk-bin/files/   |  16 --
 .../oracle-jdk-bin/files/     |  16 --
 dev-java/oracle-jdk-bin/metadata.xml               |  16 --
 .../oracle-jdk-bin/oracle-jdk-bin- | 297 ---------------------
 .../oracle-jdk-bin/oracle-jdk-bin-11.0.2.ebuild    | 247 -----------------
 7 files changed, 768 deletions(-)