elan-ev / opencast-studio

Web-based recording studio for Opencast
https://studio.opencast.org
MIT License
50 stars 47 forks source link

AV Sync Issues on Windows 10 and 11 when using Hardware Acceleration #1029

Closed HomerJayAllTheWay closed 1 year ago

HomerJayAllTheWay commented 1 year ago

I'm running into an issue with recording on Windows PC's with a GPU. The audio sync is off by ~1 second. This happens on high-powered developer workstations (e.g. i8 with 64GB of RAM) and AMD Radeon Pro GPU. It also happens on my Microsoft Surface Laptop running Windows 11. Switching browsers between Chrome and Firefox doesn't seem to make much of a difference.

The only way to get proper AV Sync on these devices is to disable "Use hardware acceleration when available" in the browser.

Any ideas why this may be occurring or how to correct the issue without having to manually enable/disable hardware acceleration before recording on this type of device?

LukasKalbertodt commented 1 year ago

Interesting. Can you test whether the issue also occurs on this page?

HomerJayAllTheWay commented 1 year ago

When testing on that page, the A/V I get from that is in sync. I re-enabled hardware acceleration before testing and I can see that the .webm is encoded with H.264. Without web acceleration the file was encoded in VP9.

I'll test on some other laptops/device today or tomorrow.

HomerJayAllTheWay commented 1 year ago

Tested on Microsoft Surface with Windows 11 in Chrome 112 and the issue appears to be resolved. Hoping that the Chrome update fixes the issue. 🤞

LukasKalbertodt commented 1 year ago

Did the issue fully resolve with the update?

HomerJayAllTheWay commented 1 year ago

Yes it fixed the issue. Thanks for checking in on this.