4 Replies Latest reply: Jan 30, 2013 8:38 AM by colin-java RSS

    JavaFX 2 media player's inability to play mp4 media files

    mambha
      I am new to this forum and new to JavaFX 2. I have been developing Java Swing applications for a long time. In my current application (a stand-alone desktop application), I added a media player using JavaFX 2 for the first time. The application is run using JRE 1.7.0_10 and JavaFx 2.2.4-b18. The media player works well in most cases. My testing on 64-bit Windows 7 machines showed no issues for the media files I attempted to play.

      However, when the same application was tried with the same media files on a 64-bit Windows Vista machine, the few mp4 media files I was using failed to play. The media player is reporting the error "GStreamer encountered a general stream error". (Other media files, including flv files, played OK.)

      Is this a codec issue? If so, can someone please point to the correct codec to install? (I tried DivX Plus, but that didn't help.)

      I would appreciate any help in resolving this issue. Thanks!
        • 1. Re: JavaFX 2 media player's inability to play mp4 media files
          jsmith
          See the JavaFX 2.2.4 System Requirements:
          http://docs.oracle.com/javafx/2/system_requirements_2-2-4/jfxpub-system_requirements_2-2-4.htm

          For Windows XP and Windows Vista, JavaFX Media 2.2.4 requires that one of the following external modules be installed (by order of preference) to play AAC audio and H.264/AVC video:
          MainConcept H.264/AVC Pro Decoder Pack
          DivX Plus Codec Pack
          MainConcept Showcase (includes demo version codecs)

          Here is a link the DivX site so that you may download the appropriate codec for Windows Vista:
          http://www.divx.com/
          And another for MainConcept:
          http://www.mainconcept.com/

          Looks like you already tried at least DivX Plus, in which case you can file a bug against the Runtime project Media component at:
          http://javafx-jira.kenai.com
          Other media files, including flv files, played OK
          Yeah, the reason for this is: "VP6 video support does not require any third party modules."
          • 2. Re: JavaFX 2 media player's inability to play mp4 media files
            mambha
            Thank you for your prompt response.

            I was aware of the JavaFX 2.2.4 System Requirements, hence my reason for installing DivX Plus codec. I did not try MainConcept H.264/AVC Pro Decoder Pack because of the cost involved. After your response, I installed MainConcept Showcase (which includes demo version codecs). That did not work either - I get the same error, namely "GStreamer encountered a general stream error". (The media player included with MainConcept Showcase plays the same media files just fine.) For good measure, I tried both the 32- and 64-bit versions of the install. (My application too has 32- and 64-bit versions.)

            So for now I am unable to play mp4 files on Windows Vista. Any other suggestions would be most welcome.

            Thanks again for your help.
            • 3. Re: JavaFX 2 media player's inability to play mp4 media files
              mambha
              I have since written this up as a bug: http://javafx-jira.kenai.com/browse/RT-27980
              • 4. Re: JavaFX 2 media player's inability to play mp4 media files
                colin-java
                Hi, I have experienced the same problem..
                Win7, no problems with mp4 files
                Vista, doesn't run them.

                It seems to be a codecs issue.