MediaPlayer - Out of sync video & audio when playing from slow medium

Robert Krüger krueger at
Fri May 22 10:55:48 UTC 2015

Well, technically a slow connection should not cause A/V desync. If it
does, I would suspect there is a bug in MediaPlayer. Syncronization should
happen based on media timestamps not based on the time the individual
packets come in. So, if you have a more or less reproducible case, file a
bug report.

My 2c.



On Fri, May 22, 2015 at 12:25 PM, Rafal Leibzig <rafaljfx at> wrote:

> Hi, my friends use MediaPlayer in their javafx application to play videos
> (mp4, 50fps) from DVD.
> They have noticed out of sync video/audio in such case.
> Problem doesn't exist when file is loaded from HDD.
> I know that it is because of slow medium like DVD (or poor quality DVD disc
> / bad recording)
> My question is what to do in such cases?
> My PoC was proxing static files by HttpServer (bundled in JRE) by path: "
> http://localhost/video.mp4".
> It worked for me, media player plays video correctly with buffering, but
> this solution has disadventeges:
> - more CPU
> - problems with seeking video
> - complexity
> Any other suggestions?

Robert Krüger
Managing Partner
Lesspain GmbH & Co. KG

More information about the openjfx-dev mailing list