You are not logged in.

#1 2014-10-04 16:01:29

Sublime2k
Member
Registered: 2014-03-17
Posts: 46

[Solved] Problem with playback in mpv

I just finished a fresh install of Arch on Lenovo N500.

When I try to run a .mkv file with mpv, I get this error:

Playing: /path/to/video.mkv
[stream] Video (+) --vid=1 (h264)
[stream] Audio (+) --aid=1 --alang=eng (*) (mp3)
[stream] Subs  (+) --sid=1 'video.srt' (subrip) (external)
[vo/opengl/x11] X11 error: GLXBadFBConfig
[vo/opengl] Could not create GL3 context. Retrying with legacy context.

Same thing happens when I try to run a .flv file. I haven't tested with other file types.

I'm using Intel open source drivers and I have these packages installed:

xf86-video-intel
mesa-dri
lib32-mesa-libgl
libva-intel-driver
libva

I have no idea what's the problem. Mpv works fine on my main PC (using AMD GPU).

Searching didn't come up with anything useful.

Thanks in advance for help.

Last edited by Sublime2k (2014-10-04 23:40:58)

Offline

#2 2014-10-04 22:11:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Problem with playback in mpv

Try different video output.

Offline

#3 2014-10-04 22:44:10

Sublime2k
Member
Registered: 2014-03-17
Posts: 46

Re: [Solved] Problem with playback in mpv

That doesn't help. I've tried the following:

vo=opengl

Playing: /path/to/video.mkv
[stream] Video (+) --vid=1 (h264)
[stream] Audio (+) --aid=1 --alang=eng (*) (mp3)
[stream] Subs  (+) --sid=1 'video.srt' (subrip) (external)
[vo/opengl/x11] X11 error: GLXBadFBConfig
[vo/opengl] Could not create GL3 context. Retrying with legacy context.

vo=opengl-hq

Playing: /path/to/video.mkv
[stream] Video (+) --vid=1 (h264)
[stream] Audio (+) --aid=1 --alang=eng (*) (mp3)
[stream] Subs  (+) --sid=1 'video.srt' (subrip) (external)
[vo/opengl-hq/x11] X11 error: GLXBadFBConfig
[vo/opengl-hq] Could not create GL3 context. Retrying with legacy context.

vo=opengl-old

Playing: /path/to/video.mkv
[stream] Video (+) --vid=1 (h264)
[stream] Audio (+) --aid=1 --alang=eng (*) (mp3)
[stream] Subs  (+) --sid=1 'video.srt' (subrip) (external)
AO: [alsa] 48000Hz stereo 2ch s16
VO: [opengl-old] 1280x720 => 1280x720 yuv420p

vo=sdl

Playing: /path/to/video.mkv
[stream] Video (+) --vid=1 (h264)
[stream] Audio (+) --aid=1 --alang=eng (*) (mp3)
[stream] Subs  (+) --sid=1 'video.srt' (subrip) (external)
[vo] Video output sdl not found!
Error opening/initializing the selected video_out (-vo) device.
Video: no video
Video: no video
AO: [alsa] 48000Hz stereo 2ch s16


Exiting... (Quit)

vo=vaapi

Playing: /path/to/video.mkv
[stream] Video (+) --vid=1 (h264)
[stream] Audio (+) --aid=1 --alang=eng (*) (mp3)
[stream] Subs  (+) --sid=1 'video.srt' (subrip) (external)
AO: [alsa] 48000Hz stereo 2ch s16
VO: [vaapi] 1280x720 => 1280x720 yuv420p


Exiting... (Quit)

vo=vdpau

Playing: /path/to/video.mkv
[stream] Video (+) --vid=1 (h264)
[stream] Audio (+) --aid=1 --alang=eng (*) (mp3)
[stream] Subs  (+) --sid=1 'video.srt' (subrip) (external)
[vo/vdpau] Error when calling vdp_device_create_x11: 1
Error opening/initializing the selected video_out (-vo) device.
Video: no video
Video: no video
AO: [alsa] 48000Hz stereo 2ch s16


Exiting... (Quit)

To make matters even more confusing, vaapi, vdpau and sdl have sound, but no video.

Offline

#4 2014-10-04 22:54:33

Sublime2k
Member
Registered: 2014-03-17
Posts: 46

Re: [Solved] Problem with playback in mpv

During the boot process, I also get these error messages, I'm not sure if they matter:

[6.570151] [drm:init_ring_common] *ERROR* render ring initialization failed
ctl 0001f001 (valid? 1) head 000104a4 tail 00000000 start 003eb000 [expected 003eb000]
[6.570185] [drm:i915_gem_init] *ERROR* Failed to initialize GPU, declaring it wedged
[7.953399] [drm:intel_enable_lvds] *ERROR* timed out waiting for panel to power on

After that, X loads fine and everything works fine (excluding mpv). For example, Flash videos in Firefox have video and sound as usual.

Offline

#5 2014-10-04 22:56:28

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: [Solved] Problem with playback in mpv

According to the news in the Arch website, you need mesa-vdpau to make it work.


Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

#6 2014-10-04 22:59:26

Sublime2k
Member
Registered: 2014-03-17
Posts: 46

Re: [Solved] Problem with playback in mpv

Kolibry wrote:

According to the news in the Arch website, you need mesa-vdpau to make it work.

I already have mesa-vdpau and mesa-dri installed.

Offline

#7 2014-10-04 23:08:46

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [Solved] Problem with playback in mpv

Sublime2k wrote:

During the boot process, I also get these error messages, I'm not sure if they matter:

Of course they matter. "Failed to initialize GPU" couldn't be any clearer.

Sublime2k wrote:

After that, X loads fine and everything works fine (excluding mpv).

It only appears to work fine, but there's no acceleration anywhere.

Sublime2k wrote:

For example, Flash videos in Firefox have video and sound as usual.

That's because flash is pure software (no hardware acceleration) unless libvdpau-va-gl is installed.

It seems a lot of people have issues with Intel on the 3.16 kernel. Try the -lts kernel.

Kolibry wrote:

According to the news in the Arch website, you need mesa-vdpau to make it work.

Intel does not use VDPAU, so no, you don't need mesa-vdpau. It's only needed for hardware decoding on radeon and nouveau.

Offline

#8 2014-10-04 23:23:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Problem with playback in mpv

Try using the other acceleration method (UXA or SNA). Later try disabling dri

Option "DRI" "false"

although it's just guesswork.

Which intel card do you have?

Offline

#9 2014-10-04 23:40:42

Sublime2k
Member
Registered: 2014-03-17
Posts: 46

Re: [Solved] Problem with playback in mpv

It turns out that it's a kernel problem (3.16.3) after all.

I just installed linux-lts and it's working fine.

Thanks for help everyone, I'll mark the topic as solved now.

Offline

Board footer

Powered by FluxBB