Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm having an issue with MPV (the MPlayer2 fork). I set it to use the OpenGL Video Output because it looks/performs the best on my laptop (older Intel). However, every time I open a video, it gives me an error stating "X11 error: GLXBadFBConfig" and proceeds to tell me "Could not create GLX context!" but still displays the video, which makes me think it's using a fallback video output (probably the X11 vo).

I've looked it up and it seems it's caused by the video driver not supporting the level of OpenGL the application is trying to use, but I used the OpenGL VO on MPlayer2 without issue.

Is this a known issue? Is there any way to fix it? I'm using Manjaro (Arch-based) x86_64 Testing branch, so I've got the latest Mesa and drivers...

share|improve this question

migrated from stackoverflow.com Oct 12 '13 at 6:01

This question came from our site for professional and enthusiast programmers.

    
This site is dedicated to programming issues, if you had a problem with some code you wrote we could help you. But as it stands, this would be more appropriate on another Stack Exchange network such as Super User. –  Andon M. Coleman Oct 11 '13 at 18:18
    
Sorry, I got Stack Exchange and this site mixed up :( –  Daktyl198 Oct 11 '13 at 19:35
    
Well, technically Stack Exchange is the parent of this site. It started out as just this site, but then expanded into multiple sites that work the same way for different topics. Super User is the particular specialized site on the Stack Exchange network that deals with user issues. It can be confusing, but this keeps the Q&A focused so that "Related" is not cluttered up with completely irrelevant topics. –  Andon M. Coleman Oct 11 '13 at 20:30

1 Answer 1

You mentioned that you have an older Intel laptop. It looks to me that it just may not support VA-API. Only G45 and later systems support it. Look at the vainfo output. You may try the option --hwdec-codecs=all to see whether other codecs work. You can also have a look at this Github issue, which sheds some light on a similar problem in greater detail. Basically, the issue shows the terminal output of playing a file, which would reveal information:

mpv --vo=opengl --hwdec=vaapi:

Playing: test.avi
File tags:
encoder: MEncoder git-ab94fc6-4.4.3
title: test.avi
[stream] Video (+) --vid=1 (mpeg4)
[stream] Audio (+) --aid=1 (mp3)
[vo/opengl/x11] X11 error: GLXBadFBConfig
[vo/opengl] Could not create GL3 context. Retrying with legacy context.
Using software decoding.
share|improve this answer
    
Providing a link to more information is discouraged on SuperUser. Instead you should copy/paste the relevant data and embed it in your post. If that link ever becomes invalid, your answer will loose its value. –  LPChip Sep 2 at 12:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.