Closed captions of MediaPlayerElement causes video lags on some displays

Jan 6 Reputation points
2023-09-06T00:42:24.53+00:00

Basic information

We do use MediaPlayerElement within UWP platform to play the videos. However, on some display devices, using closed captions (subtitles) leads to video lagging. Specifically, I was able to confirm that issue occurs on:

  • Epson EB-G6570WU projector connected using HDMI
  • Epson EH-TW9100 projector connected using HDMI
  • Phillips 245E1 display connected using USB-C => DisplayPort cable

Problem showcase

Following recording displays the lagging while subtitles gets rendered: https://jandrozd.eu/files/20230906_015600.mp4 (6 MB).

More information

  • The lag seems to occur with each subtitles change.
  • During testing I found the lower the display's refresh rate is, the lags get worse.
  • When the subtitles are disabled, the same media file plays without issue.
  • We tested to create our own subtitles parser and displaying engine. When it renders the subtitles over the MediaPlayerElement, it produces same bad behaviour as when we use the closed captions functionality of MediaPlayerElement (TimedTextSource).
  • When we play the same video file using LibVLC with the same custom subtitles system (and on displays above), the video DOES NOT lag.
  • Issue can be reproduced using different laptops
  • Issue occurs in both full-screen and windowed mode

Laptop information

My device HW information: https://prnt.sc/tLx0ijf2Dqnx (issue occurs with different laptops also)

I have nVidia RTX 3070 graphics card and have the latest drivers. The Windows system is up to date.

Universal Windows Platform (UWP)
{count} vote