elFarto / nvidia-vaapi-driver

A VA-API implemention using NVIDIA's NVDEC
Other
1.18k stars 53 forks source link

[Stutter] Video Stuttering When Switching Between Multiple Tabs #315

Open ManuLinares opened 1 month ago

ManuLinares commented 1 month ago

Description:

When playing several videos in different tabs, switching back to a tab after a few seconds causes the video to stutter before resuming playback.

System information:

Steps to Reproduce:

  1. Open 6 videos in different tabs and ensure they are playing.
  2. Switch to the first tab and wait for approximately 10 seconds.
  3. Switch to the sixth tab and observe the video stuttering for 1-2 seconds before it resumes playback.

I confirmed that it works without stuttering when not using VAAPI by setting media.ffmpeg.vaapi.enabled = false

elFarto commented 6 days ago

I can see the same thing here (although the delay seems <1s), but I'm not sure it's an issue with this driver. It's more likely an issue with Firefox's VA-API code, specifically it will stop decoding video on tabs that aren't visible, when that tab becomes visible it has to restart the driver, including catching up to the correct frame, which can take a moment.

Not sure there's much I can do about this one.