I have converted my .mov
video to .mp4
, but when I play the video in my javafx application, it doesn't work, I can hear the audio of the video file but without pictures ! maybe the .mp4 is not in the right codec! any idea or solution?
UPDATE
With the same code I have played another mp4 video, in the same conditions (plateforme, JFX Version, ...), so I'm concluding that I have problem with this mp4 converted file, ie the software that I'm using to convert the mov file doesn't generate the approriat mp4 format that is supported by JFX 2.1.
The following code sample demonstrates playing an h.264 encoded mp4 video in JavaFX.
Sample program output: (JavaFX 8u72, OS X 10.9.5).
You need to make sure your .mp4 file is encoded in H264. MPEG4 does not work.