You are not logged in.

#1 2016-04-02 11:58:25

kox
Member
Registered: 2015-05-01
Posts: 144

VLC freezes

I noticed very bad performance in VLC last time. I can play a movie normally, but during playback any additional action causes freezes (for example moving the mouse), even outside the player on gnome desktop. I got warnings that libvdpau_va_gl.so is missing, so I installed libvdpau-va-gl and it's even worse. Now after that video doesn't resize at all, even when going fullscreen. Even the very low quality videos cause freezes. I have Intel HD graphics 4000.

Offline

#2 2016-04-02 12:03:43

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: VLC freezes

I am experiencing similar issues on my i7-4790K (HD graphics 4600) in vlc whereas mpv produces smooth video output.

Here is what I am seeing when I run vlc from the shell:

VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80)
[0000000000d49148] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[00007f6f3cc6c0c8] vdpau_avcodec generic error: decoder profile not supported: 10
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[00007f6f3cc6d3e8] vdpau_avcodec generic error: decoder profile not supported: 10
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[00007f6f34008408] vdpau_avcodec generic error: decoder profile not supported: 10
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[00007f6f1c001268] vdpau_display vout display error: source video chroma type not supported

After installing libva-intel-driver and libvdpau-va-gl:

VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80)
[0000000001784148] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
[00007f9800c6c0c8] vdpau_avcodec generic error: decoder profile not supported: 10
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
[00007f9800c6d3e8] vdpau_avcodec generic error: decoder profile not supported: 10
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
[00007f97f0008408] vdpau_avcodec generic error: decoder profile not supported: 10
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
[00007f97e0001268] vdpau_display vout display error: source video chroma type not supported
[00007f9814c09558] core input error: ES_OUT_RESET_PCR called

If this wiki page is accurate, these drivers are not designed for our hardware, further mpv plays video content smoothly without them.  I am wondering if there is a bug affecting vlc 2.2.2-3 for us?

wiki wrote:

The libva-intel-driver package provides MPEG-2 decoding only for GMA 4500 series GPUs.

Last edited by graysky (2016-04-02 12:10:59)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2016-04-02 12:46:01

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

Re: VLC freezes

GMA 4500 (gen4.5) is the last Intel GPU before their HD series. So that wiki reference doesn't apply to the GPUs you two have - HD4000 (gen7) and HD4600 (gen7.5).

libvdpau-va-gl is a wrapper. It never worked really well and nowadays doesn't work with VLC at all. In general, never use wrappers for hardware video decoding, they all have overhead that causes way too much resource usage, so you're almost better off using software decoding. Intel doesn't support VDPAU, so forget about it. Configure your players for VAAPI. Though I see VLC does try to use VAAPI, but fails for some reason. Does it fail the same way (profile not supported) for all videos?

But the thing is, even if you got VAAPI running, VLC's VAAPI support isn't that great, it's not zero-copy and while I haven't checked, I doubt it uses optimized copy-back. mpv has much better support, there's zero-copy (--hwdec=vaapi) and even the copy-back (--hwdec=vaapi-copy) is optimized. Not that there's much sense in using copy-back when zero-copy is available, but still, mpv is overall significantly better than VLC when it comes to VAAPI.

Last edited by Gusar (2016-04-02 12:48:40)

Offline

#4 2016-04-02 19:05:35

kox
Member
Registered: 2015-05-01
Posts: 144

Re: VLC freezes

This is my output. With libvdpau-va-gl installed (resizing not working) and without it.
With the library:

VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80)
[0000000000b9d148] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
[00007f1c30c1aa98] avcodec decoder: Using OpenGL/VAAPI/libswscale backend for VDPAU for hardware decoding.
[00007f1c30c1aa98] avcodec decoder: Using OpenGL/VAAPI/libswscale backend for VDPAU for hardware decoding.
[00007f1c30c1aa98] avcodec decoder: Using OpenGL/VAAPI/libswscale backend for VDPAU for hardware decoding.
[00007f1c30c1aa98] avcodec decoder: Using OpenGL/VAAPI/libswscale backend for VDPAU for hardware decoding.
[00007f1c30c1aa98] avcodec decoder: Using OpenGL/VAAPI/libswscale backend for VDPAU for hardware decoding.
[00007f1c30c1aa98] avcodec decoder: Using OpenGL/VAAPI/libswscale backend for VDPAU for hardware decoding.

Without it: (there is only info that the library is not found)

[0000000000f08148] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory

My cpu is i5-3210M

Offline

Board footer

Powered by FluxBB