Media player performance on Mac

Robert Krüger krueger at
Wed Mar 4 18:04:41 UTC 2015


I just put a MediaView with a MediaPlayer into a FlowPane and displayed it.
Playing a Full-HD H.264 file consumes between 40 and 60% of CPU. Playing
the same file in Quicktime consumes about 3-4% CPU. What is the reason for
the dramatic difference? Is the player subsystem not using hardware
acceleration for decoding h.264? Is it something else intrinsic to
MediaPlayer oder MediaView? I thought 8u40's media support was build on top
of the AVFoundation framework and thus could compete with native players.
Can I set a flag to force hardware acceleration? Is something being done
about this? I am a bit worried that an application built on top of this
would just eat up our users' battery like crazy.

Best regards,


More information about the openjfx-dev mailing list