-
Bug
-
Resolution: Duplicate
-
P2
-
8u60, 9
JavaFX media does not work on Ubuntu 15.10 because it ships with a newer, incomaptible version of libavformat and libavcodec, and the older ones are not available on newer versions of Ubuntu. It appears that Ubuntu 14.10 and 15.04 have the same issue.
The Ensemble media samples, such as "Advanced Media" silently fail to play, and the HelloMedia example program prints the following error message and then exits:
$ java hello.HelloMedia
>>> MediaView ERR: javafx.scene.media.MediaErrorEvent[source=MediaView@49cb2444[styleClass=media-view]]: source MediaView@49cb2444[styleClass=media-view]; target MediaView@49cb2444[styleClass=media-view]; error MediaException: MEDIA_UNSUPPORTED : [] ERROR_MEDIA_AUDIO_FORMAT_UNSUPPORTED: ERROR_MEDIA_AUDIO_FORMAT_UNSUPPORTED
Ubuntu 15.10 has only the following libavcodec and libavformat packages:
libavcodec-ffmpeg-dev
libavcodec-ffmpeg56
libavcodec-dev
libavcodec-extra
libavcodec-ffmpeg-extra56
libavformat-ffmpeg56
libavformat-dev
libavformat-ffmpeg-dev
We will first need support to build and run on libavcodec 56 -- seeJDK-8136920.
We will then need to deliver an FX media wrapper library that supports libavcodec 56, libavplugin-56.so (and maybe also *-55.so in case that is used by a non-Ubuntu Linux distro).
This may need to be backported to JDK 8u if support for newer Ubuntu releases is desired.
The Ensemble media samples, such as "Advanced Media" silently fail to play, and the HelloMedia example program prints the following error message and then exits:
$ java hello.HelloMedia
>>> MediaView ERR: javafx.scene.media.MediaErrorEvent[source=MediaView@49cb2444[styleClass=media-view]]: source MediaView@49cb2444[styleClass=media-view]; target MediaView@49cb2444[styleClass=media-view]; error MediaException: MEDIA_UNSUPPORTED : [] ERROR_MEDIA_AUDIO_FORMAT_UNSUPPORTED: ERROR_MEDIA_AUDIO_FORMAT_UNSUPPORTED
Ubuntu 15.10 has only the following libavcodec and libavformat packages:
libavcodec-ffmpeg-dev
libavcodec-ffmpeg56
libavcodec-dev
libavcodec-extra
libavcodec-ffmpeg-extra56
libavformat-ffmpeg56
libavformat-dev
libavformat-ffmpeg-dev
We will first need support to build and run on libavcodec 56 -- see
We will then need to deliver an FX media wrapper library that supports libavcodec 56, libavplugin-56.so (and maybe also *-55.so in case that is used by a non-Ubuntu Linux distro).
This may need to be backported to JDK 8u if support for newer Ubuntu releases is desired.
- is blocked by
-
JDK-8150503 Provide media support for libav version 55 and 56
- Resolved
-
JDK-8136920 Provide media support for libav version 55 and 56
- Closed
- relates to
-
JDK-8094633 [Linux] JavaFX Media does not run on Ubuntu 14.04
- Resolved