Opened 9 years ago
Closed 9 years ago
Last modified 7 years ago
#12421 closed Bug Report - General (Fixed)
When using vaapi decoding, video fails with "QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined"
Reported by: | Stuart Auchterlonie | Owned by: | Jonatan Lindblad |
---|---|---|---|
Priority: | blocker | Milestone: | 0.28 |
Component: | Qt5 issues | Version: | Master Head |
Severity: | high | Keywords: | vaapi |
Cc: | Ticket locked: | no |
Description
When using vaapi playback, no video is shown, just the error "QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined" is thrown.
Switching to the opengl normal playback profile allows recordings to be watched
Attachments (1)
Change History (16)
Changed 9 years ago by
Attachment: | frontend2.log added |
---|
comment:1 Changed 9 years ago by
Owner: | set to Jonatan Lindblad |
---|---|
Status: | new → assigned |
comment:2 Changed 9 years ago by
Jonatan,
The devel/vaapifix branch works for all the content I have available
- h264 / ac3 (uses H264High profile)
- mpeg2video / MP2 (uses MPEG2Main profile) + dvb subtitles
Regards Stuart
comment:3 Changed 9 years ago by
Added a couple more profile and entry point strings in
https://code.mythtv.org/cgit/mythtv/commit/?id=5ddd56f9e70a062abd8d13d4a4c837381e44674e
comment:4 Changed 9 years ago by
Only newer libva releases define "VAProfileH264StereoHigh"
https://code.mythtv.org/cgit/mythtv/commit/?id=c608732c328fe1ce95aadff771760f119e7d5771
comment:6 Changed 9 years ago by
Resolution: | → Fixed |
---|---|
Status: | assigned → closed |
comment:7 Changed 9 years ago by
Also require https://code.mythtv.org/cgit/mythtv/commit/?id=2b01ed3894be8374b6c143449fa563fbd945da5a to fix a regression
comment:12 follow-up: 13 Changed 8 years ago by
I've just installed the 0.28 release (code revision b4e03c8, from Mythbuntu package 2:0.28.0+fixes.20160418.b4e03c8-0ubuntu0mythbuntu4), and I'm getting this exact problem whenever I use the OpenGL, OpenGL High Quality, or VAAPI profiles.
It's working with the standard or high resolution (non-OpenGL) profiles although those seem to have other issues of their own.
comment:13 Changed 8 years ago by
Replying to Hamish Moffatt <hamish@…>:
I've just installed the 0.28 release (code revision b4e03c8, from Mythbuntu package 2:0.28.0+fixes.20160418.b4e03c8-0ubuntu0mythbuntu4), and I'm getting this exact problem whenever I use the OpenGL, OpenGL High Quality, or VAAPI profiles.
It's working with the standard or high resolution (non-OpenGL) profiles although those seem to have other issues of their own.
My main MythTV mode was set to Qt instead of auto/OpenGL. Changing it to auto fixed this problem for me.
comment:14 Changed 7 years ago by
I had the exact same problem, playback would crash immediately if OpenGL or VAAPI profile was set, only Normal would work. Only after finding that "Qt" main mode instead of "Auto" was incompatible with "OpenGL" playback mode I could fix the problem.
Why not disable the selection of these playback modes, or give a hint that you need "Auto" main mode in order to use OpenGL or VAAPI playback?!
Would be more user-friendly...
comment:15 Changed 7 years ago by
This was done 6 months ago, and the fix is in version 29. See e9daa4e for details
Likely fixes added by Jonatan Lindblad in devel/vaapifix
http://code.mythtv.org/cgit/mythtv/commit/?id=e3270dc2424a6823239565b0306ef0e09167fb62 http://code.mythtv.org/cgit/mythtv/commit/?id=b997114683759562dbaf6b80a651070d099195ac