Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8147888

[Linux] JavaFX Media does not run on Ubuntu 14.10 or later

    Details

      Description

      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 -- see JDK-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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                almatvee Alexander Matveev
                Reporter:
                kcr Kevin Rushforth
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: