JDK-8095069 : MediaPlayer error playing videos with large resolutions
  • Type: Bug
  • Component: javafx
  • Sub-Component: media
  • Affected Version: 8u5
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2014-07-14
  • Updated: 2015-06-12
  • Resolved: 2014-11-13
Related Reports
Duplicate :  
Description
There is an error in JavaFX MediaPlayer. When trying to play videos with a resolution greater than 1920x1080px the screen became black and nothing more happend.

Adding the following error-handling-code:

mediaPlayer.setOnError(new Runnable) {  
     @Override  
     public void run() {  
          System.out.println(mediaPlayer.getError.getMessage());  
          System.out.println(mediaPlayer.getError.getType());  
     }  
});  

results in this error:
[com.sun.media.jfxmediaimpl.platform.gstreamer.GSTMediaPlayer@5482fb8f] ERROR_MEDIA_INVALID: ERROR_MEDIA_INVALID
UNKNOWN

The video is encoded with h264 and aac (for audio) and is having a resolution of 1920x1168px. The error occurs with each video with a resolution greater than 1920x1080px. Videos with a resolution of 1920x1080px or smaller are working fine. The playback of all videos is working with VLC-Player.
Comments
This is duplicate of RT-39148. See RT-39148 for more information.
13-11-2014

DirectShow fails to deliver IMediaSample by the time we start streaming. It's either an unsupported format or a threading issue. Here is the callstack: fxplugins.dll!dshowwrapper_sink_event(int sinkEvent, void * pData, int size, sUserData * pUserData) Line 838 C++ fxplugins.dll!CSink::SendEndOfStream() Line 493 + 0x1d bytes C++ fxplugins.dll!CBaseRenderer::StartStreaming() Line 1387 + 0xf bytes C++ fxplugins.dll!CBaseRenderer::Run(__int64 StartTime) Line 585 + 0x13 bytes C++ Needs more investigation. Not a critical issue. Can be deferred. Reassigning to Alexander.
13-11-2014

Internal link to the media: http://reavers.us.oracle.com/~kirill/RT-37918/r_38.mp4
14-07-2014

Please provide a short video clip for test case. You can upload one to some server and we'll save it for testing purposes.
14-07-2014

You can download a test video from: https://dl.dropboxusercontent.com/u/13924138/r_38.mp4
14-07-2014