[mythtv-users] VAAPI / OpenGL and myth 0.26 - black screen on playback

Andrey Zhunev a-j at a-j.ru
Thu Oct 3 16:54:57 UTC 2013


Karl Newman wrote:

> Do you have mesa installed? That is required for OpenGL, and OpenGL
> rendering is required for VAAPI (in MythTV at least).

Hmmm, interesting! I had mesa installed from CentOS-updates repository.
Now I replaced these mesa packages with the ones coming from Elrepo:

# rpm -qa |grep mesa
mesa-libGLU-devel-8.0.5-1.el6.elrepo.x86_64
mesa-dri-drivers-8.0.5-1.el6.elrepo.x86_64
mesa-libGL-devel-8.0.5-1.el6.elrepo.x86_64
mesa-libGLU-8.0.5-1.el6.elrepo.x86_64
mesa-libOSMesa-devel-8.0.5-1.el6.elrepo.x86_64
mesa-libOSMesa-8.0.5-1.el6.elrepo.x86_64
mesa-dri-filesystem-8.0.5-1.el6.elrepo.x86_64
mesa-libGL-8.0.5-1.el6.elrepo.x86_64
mesa-dri1-drivers-7.11-8.el6.x86_64


Unfortunately, it didn't change anything at all... :-(



George Nassas wrote:


> I’m using vaapi successfully on ivy bridge and have been since
> January but I track master so I have been running later display code
> than you however I can offer some observations.

Can you please post a log of your mythfrontend since a fresh startup
and until playing a video?



> You don’t need to upgrade the driver - I’m running the 1.0.17 and
> it’s fine. A little crash happy but you can watch programmes
> perfectly well. The frontend log in pastebin says you’re using
> ffmpeg for decoding and opengl for rendering. I’m using vaapi for
> decoding and vaapiopengl for rendering. Those should be the default
> in the “VAAPI Normal” profile that Gary pointed you to. Make them
> that way if they’re not. Also, you don’t mention if you have mesa
> installed but, like the others say, it’s required for myth.

Yep, I played with the profile details hoping to see any improvement.
I put the settings back to their defaults now (I think...).


> As a test, can you get video playback with mplayer? That would
> point to the myth setup if mplayer works OK. My take is the best
> upgrade you can do is to move to myth 0.27. There were some
> improvements in vaapi playback that made a huge difference & that’s likely where your problem is.


Good idea, but ... where do you get a recent mplayer from?
The one at atrpms doesn't seem to know of vaapi ('-vo help' doesn't
even list it).


The recent mythfrontend log is here: http://pastebin.com/raw.php?i=pa3npBtZ
I played two files: first one was a recorded video (it didn't start at
all, got an error 'Failed to initialize video output'), and the second
one was a local file (this one 'played' with sound and a black
screen).

I still think the problem is with this part, right when I start
mythfrontend:

2013-10-03 20:29:38.835205 I [4735/4735] CoreContext mythmainwindow.cpp:1039 (Init) - Trying the OpenGL painter
2013-10-03 20:29:38.840994 W [4735/4735] CoreContext mythrender_opengl.cpp:66 (Create) - OpenGL: Could not determine whether Sync to VBlank is enabled.
2013-10-03 20:29:38.851897 W [4735/4735] CoreContext mythrender_opengl.cpp:142 (IsRecommendedRenderer) - OpenGL: OpenGL is using software rendering.
2013-10-03 20:29:38.851965 W [4735/4735] CoreContext mythmainwindow.cpp:1058 (Init) - OpenGL painter not recommended with this system's hardware/drivers. Falling back to Qt painter.


But I can't figure out what is causing it....



More information about the mythtv-users mailing list