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!
See the JavaFX 2.2.4 System Requirements:
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:
And another for MainConcept:
Looks like you already tried at least DivX Plus, in which case you can file a bug against the Runtime project Media component at:
Other media files, including flv files, played OK
Yeah, the reason for this is: "VP6 video support does not require any third party modules."
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.