You may want to give the build (1.18.6.2349) linked in this thread a try:
I realize thread title specifically mentions Synology, but the problem (and fix) can manifest on any Linux install which uses Intel Quick Sync Video for hardware accelerated transcoding. I’ve tested on my Linux server and it corrected the issue.
Using it, you should be able to re-enable hardware acceleration and have good results.