No hardware acceleration in Fedora 24

*nix specific usage questions
Aliverix
New Cone
New Cone
Posts: 6
Joined: 24 Jul 2016 16:07

No hardware acceleration in Fedora 24

Postby Aliverix » 24 Jul 2016 16:53

Hello,

I have installed VLC 3.0.0-git Vetinari (revision 2b82c9f) (version provided by RPMFusion) on a clean Fedora 24 installation but I am not able to get hardware acceleration working. I'm using a Haswell laptop with integrated Intel graphics and a dedicated Nvidia card, which is currently deactivated. I would like to use VA-API for acceleration, obviously.

I had no trouble getting it to work on Fedora 23 just by adding the "libva-intel-driver" package and specifying "VA-API video decoder via DRM" under "Hardware-accelerated decoding" in Preferences. The main difference is that, in that case, RPMFusion provides VLC 2.2.4

The package seems to be correctly installed:

Code: Select all

libva info: VA-API version 0.39.2 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib64/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_0_39 libva info: va_openDriver() returns 0 vainfo: VA-API version: 0.39 (libva 1.7.1) vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 1.7.1 vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Simple : VAEntrypointEncSlice VAProfileMPEG2Main : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointEncSlice VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileH264MultiviewHigh : VAEntrypointVLD VAProfileH264MultiviewHigh : VAEntrypointEncSlice VAProfileH264StereoHigh : VAEntrypointVLD VAProfileH264StereoHigh : VAEntrypointEncSlice VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc VAProfileJPEGBaseline : VAEntrypointVLD
I'll now list everything I tried.

If starting VLC from terminal, I get the following error:

Code: Select all

Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
No reference to the VA-API version.

As a consequence I tried to install "libvdpau-va-gl" which provides that shared object. Trying to run again VLC from terminal returns the following reference to VA-API:

Code: Select all

libva info: VA-API version 0.39.2 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib64/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_0_39 libva info: va_openDriver() returns 0
With this setup, however, the hardware acceleration doesn't work either. Moreover, I got another problem related to the fullscreen mode, the window occupies the whole screen but the video does not fit the window dimension, remaining on the top-left angle and leaving the rest of the screen black.

Then, I tried to change the output mode under the "Video" section in Preferences. In this way, I realized that the strange behaviour of the fullscreen mode happened only with "VDPAU output".

I tried setting "OpenGL GLX video output", "XVideo output", "X11 video output" "OpenGL video output" but with every one of them the hardware acceleration is not working either and there is no reference to VA-API in the output starting VLC from command line.

I made all these attempts leaving the "Hardware-accelerated decoding" on "VA-API video decoder via DRM".

I'm available for further tests or explanations of my problem.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: No hardware acceleration in Fedora 24

Postby Rémi Denis-Courmont » 24 Jul 2016 19:47

Your video size problem is a known bug in VDPAU VA_GL.

The old setup should work the same as before. Leave video output to auto, and set VA-DRM for decoding.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Aliverix
New Cone
New Cone
Posts: 6
Joined: 24 Jul 2016 16:07

Re: No hardware acceleration in Fedora 24

Postby Aliverix » 24 Jul 2016 21:32

First of all, thank you for your answer. I'll remove the "libvdpau-va-gl" package so that auto defaults to something other than "VDPAU output" resolving the video size problem.

However, in terms of CPU load, it seems that there isn't any difference between any of the settings for "Hardware-accelerated decoding", even with "Disable". I used a 1080p H264 video which, in every case, creates a 50% CPU load, and a 720p H264 video, which creates a 30% CPU load. With the previous version, it was something like 8-10%.

Is there something in particular that I can do to check if the hardware acceleration is really being used?

Thank you again.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: No hardware acceleration in Fedora 24

Postby Rémi Denis-Courmont » 24 Jul 2016 22:29

It's visible in the logs, or via the modules tree.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Aliverix
New Cone
New Cone
Posts: 6
Joined: 24 Jul 2016 16:07

Re: No hardware acceleration in Fedora 24

Postby Aliverix » 24 Jul 2016 22:53

I examined the log files generated trying to play the 1080p video and it seems that the module that handles the decoding is "avcodec". Thus, I examined the debug messages for that module and I found the following ones:

Code: Select all

avcodec debug: available hardware decoder output format 109 (vdpau) avcodec debug: available hardware decoder output format 53 (vaapi_vld) avcodec debug: available software decoder output format 0 (yuv420p) avcodec warning: thread type 1: disabling hardware acceleration
However I'm not able to interpret their meaning in detail... What's happening?

The full log is the following, generated with verbose=2:

Code: Select all

-- logger module started -- core debug: VLC media player - 3.0.0-git Vetinari core debug: Copyright © 1996-2016 the VideoLAN team core debug: revision 2b82c9f core debug: configured with ./configure '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--disable-optimizations' '--disable-silent-rules' '--with-pic' '--disable-rpath' '--with-binary-version=3.0.0' '--with-kde-solid=/usr/share/kde4/apps/solid/actions' '--enable-lua' '--enable-live555' '--enable-opencv' '--enable-sftp' '--enable-omxil' '--enable-omxil-vout' '--enable-faad' '--enable-twolame' '--enable-realrtsp' '--enable-flac' '--enable-tremor' '--enable-speex' '--enable-theora' '--enable-libass' '--enable-shout' '--enable-xcb' '--enable-xvideo' '--enable-svg' '--enable-aa' '--enable-caca' '--enable-jack' '--enable-pulse' '--enable-ncurses' '--enable-lirc' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' core debug: searching plug-in modules core debug: loading plugins cache file /usr/lib64/vlc/plugins/plugins.dat core debug: recursively browsing `/usr/lib64/vlc/plugins' core debug: plug-ins loaded: 488 modules core debug: opening config file (/home/egeretto/.config/vlc/vlcrc) core debug: looking for logger module matching "any": 4 candidates file debug: opening logfile `vlc-log.txt' core debug: using logger module "file" core debug: translation test: code is "C" core debug: looking for keystore module matching "memory": 4 candidates core debug: using keystore module "memory" core debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 FPU core debug: Creating an input for 'Media Library' core debug: Input is a meta file: disabling unneeded options core debug: using timeshift granularity of 50 MiB core debug: using default timeshift path core debug: `file/xspf-open:///home/egeretto/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/egeretto/.local/share/vlc/ml.xspf' core debug: creating demux: access='file' demux='xspf-open' location='/home/egeretto/.local/share/vlc/ml.xspf' file='/home/egeretto/.local/share/vlc/ml.xspf' core debug: looking for access_demux module matching "file": 21 candidates core debug: no access_demux modules matched core debug: creating access: file:///home/egeretto/.local/share/vlc/ml.xspf core debug: (path: /home/egeretto/.local/share/vlc/ml.xspf) core debug: looking for access module matching "file": 29 candidates core debug: using access module "filesystem" core debug: looking for stream_filter module matching "prefetch,cache_read": 12 candidates cache_read debug: Using stream method for AStream* cache_read debug: starting pre-buffering cache_read debug: received first data after 0 ms cache_read debug: pre-buffering done 296 bytes in 0s - 22235 KiB/s core debug: using stream_filter module "cache_read" core debug: looking for stream_filter module matching "any": 12 candidates core debug: no stream_filter modules matched core debug: looking for stream_filter module matching "record": 12 candidates core debug: using stream_filter module "record" core debug: creating demux: access='file' demux='xspf-open' location='/home/egeretto/.local/share/vlc/ml.xspf' file='/home/egeretto/.local/share/vlc/ml.xspf' core debug: looking for demux module matching "xspf-open": 69 candidates xspf debug: using XSPF playlist reader core debug: using demux module "playlist" core debug: `file/xspf-open:///home/egeretto/.local/share/vlc/ml.xspf' successfully opened core debug: looking for xml reader module matching "any": 1 candidates core debug: using xml reader module "xml" xspf debug: parsed 0 tracks successfully core debug: EOF reached core debug: removing module "playlist" core debug: removing module "record" core debug: removing module "cache_read" core debug: removing module "filesystem" core debug: creating audio output core debug: looking for audio output module matching "any": 5 candidates pulse debug: using library version 8.0.0 pulse debug: (compiled with version 8.0.0, protocol 30) pulse debug: connected locally to unix:/run/user/1000/pulse/native as client #26 pulse debug: using protocol 30, server protocol 30 pulse debug: adding sink 0: alsa_output.pci-0000_00_03.0.hdmi-stereo (Built-in Audio Digital Stereo (HDMI)) pulse debug: adding sink 1: alsa_output.pci-0000_00_1b.0.analog-stereo (Built-in Audio Analog Stereo) core debug: using audio output module "pulse" core debug: keeping audio output core debug: Creating an input for preparsing 'test.1080p.h264.mkv' core debug: looking for interface module matching "hotkeys,none": 17 candidates core debug: using interface module "hotkeys" core debug: looking for interface module matching "globalhotkeys,none": 17 candidates core debug: using interface module "xcb_hotkeys" core debug: looking for interface module matching "dbus,none": 17 candidates dbus debug: listening on dbus as: org.mpris.MediaPlayer2.vlc core debug: using interface module "dbus" core: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. core debug: looking for interface module matching "any": 17 candidates dbus debug: Getting All properties dbus debug: Getting All properties dbus debug: Getting All properties dbus debug: Getting All properties dbus debug: Getting All properties dbus debug: Getting All properties dbus debug: Getting All properties dbus debug: Getting All properties dbus debug: Getting All properties dbus debug: Getting All properties dbus debug: Getting All properties dbus debug: Getting All properties dbus debug: Getting All properties core debug: meta ok for (null), need to fetch art core debug: looking for meta fetcher module matching "any": 1 candidates lua debug: Trying Lua scripts in /home/egeretto/.local/share/vlc/lua/meta/fetcher lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/fetcher lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/fetcher/tvrage.luac lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/fetcher/tvrage.luac lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher core debug: no meta fetcher modules matched core debug: searching art for test.1080p.h264.mkv core debug: looking for art finder module matching "any": 2 candidates lua debug: Trying Lua scripts in /home/egeretto/.local/share/vlc/lua/meta/art lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/art lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/01_googleimage.luac lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/01_googleimage.luac lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/03_lastfm.luac lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/03_lastfm.luac lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art core debug: no art finder modules matched core debug: looking for meta fetcher module matching "any": 1 candidates lua debug: Trying Lua scripts in /home/egeretto/.local/share/vlc/lua/meta/fetcher lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/fetcher lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/fetcher/tvrage.luac core debug: using meta fetcher module "lua" core debug: removing module "lua" core debug: searching art for test.1080p.h264.mkv core debug: looking for art finder module matching "any": 2 candidates lua debug: Trying Lua scripts in /home/egeretto/.local/share/vlc/lua/meta/art lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/art lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/01_googleimage.luac lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/03_lastfm.luac lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art core debug: no art finder modules matched core debug: art not found for test.1080p.h264.mkv core debug: looking for extension module matching "any": 1 candidates lua debug: Opening Lua Extension module lua debug: Trying Lua scripts in /home/egeretto/.local/share/vlc/lua/extensions lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/extensions lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/extensions/VLSub.luac lua debug: Scanning Lua script /usr/lib64/vlc/lua/extensions/VLSub.luac lua debug: Script /usr/lib64/vlc/lua/extensions/VLSub.luac has the following capability flags: 0x5 lua debug: Trying Lua scripts in /usr/share/vlc/lua/extensions core debug: using extension module "lua" core debug: using interface module "qt" core debug: processing request item: null, node: Playlist, skip: 0 core debug: rebuilding array of current - root Playlist core debug: rebuild done - 1 items, index -1 core debug: starting playback of new item core debug: resyncing on test.1080p.h264.mkv core debug: test.1080p.h264.mkv is at 0 core debug: creating new input thread core debug: Creating an input for 'test.1080p.h264.mkv' core debug: requesting art for new input thread core debug: using timeshift granularity of 50 MiB core debug: using default timeshift path core debug: `file:///home/egeretto/Videos/test.1080p.h264.mkv' gives access `file' demux `' path `/home/egeretto/Videos/test.1080p.h264.mkv' core debug: specified demux: any core debug: creating demux: access='file' demux='any' location='/home/egeretto/Videos/test.1080p.h264.mkv' file='/home/egeretto/Videos/test.1080p.h264.mkv' core debug: looking for meta fetcher module matching "any": 1 candidates core debug: looking for access_demux module matching "file": 21 candidates core debug: no access_demux modules matched core debug: creating access: file:///home/egeretto/Videos/test.1080p.h264.mkv core debug: (path: /home/egeretto/Videos/test.1080p.h264.mkv) core debug: looking for access module matching "file": 29 candidates core debug: using access module "filesystem" core debug: looking for stream_filter module matching "prefetch,cache_read": 12 candidates cache_read debug: Using stream method for AStream* cache_read debug: starting pre-buffering cache_read debug: received first data after 0 ms cache_read debug: pre-buffering done 1024 bytes in 0s - 33333 KiB/s core debug: using stream_filter module "cache_read" core debug: looking for stream_filter module matching "any": 12 candidates core debug: no stream_filter modules matched core debug: looking for stream_filter module matching "record": 12 candidates core debug: using stream_filter module "record" core debug: creating demux: access='file' demux='any' location='/home/egeretto/Videos/test.1080p.h264.mkv' file='/home/egeretto/Videos/test.1080p.h264.mkv' core debug: looking for demux module matching "mkv": 69 candidates qt debug: IM: Setting an input mkv debug: | + Seek head mkv debug: | - info at 4151 mkv debug: | + Information mkv debug: | | + TimecodeScale=1000000 mkv debug: | | + Muxing Application=libebml v1.3.0 + libmatroska v1.4.1 mkv debug: | | + Writing Application=mkvmerge v7.0.0 ('Where We Going') 64bit built on Jun 22 2014 08:19:39 mkv debug: | | + Duration=4077574 mkv debug: | | + Date=lun giu 27 04:27:12 2016 mkv debug: | | + UID=139895652 mkv debug: | - tracks at 4312 mkv debug: | + Tracks mkv debug: | | + Track Entry mkv debug: | | | + Track Number=1 mkv debug: | | | + Track UID=1 mkv debug: | | | + Track Type=video mkv debug: | | | + Track Lacing=0 mkv debug: | | | + Track MinCache=1 mkv debug: | | | + Track CodecId=V_MPEG4/ISO/AVC mkv debug: | | | + Track CodecPrivate size=45 mkv debug: | | | + Track Default Duration=41708333 mkv debug: | | | + Track Language=`und' mkv debug: | | | + Track Video mkv debug: | | | | + width=1920 mkv debug: | | | | + height=1074 mkv debug: | | | | + display width=1920 mkv debug: | | | | + display height=1074 mkv debug: | | + Track Entry mkv debug: | | | + Track Number=2 mkv debug: | | | + Track UID=706915596 mkv debug: | | | + Track Type=audio mkv debug: | | | + Track CodecId=A_AC3 mkv debug: | | | + Track Default Duration=32000000 mkv debug: | | | + Track Language=`und' mkv debug: | | | + Track Audio mkv debug: | | | | + afreq=48000 mkv debug: | | | | + achan=6 mkv debug: | - cues at 4145899501 mkv debug: | + Cues lua debug: Trying Lua scripts in /home/egeretto/.local/share/vlc/lua/meta/fetcher lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/fetcher lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/fetcher/tvrage.luac mkv debug: MKV/Ebml Parser: m_el[mi_level] == NULL mkv debug: | - loading cues done. mkv debug: | + Information mkv debug: | + Tracks mkv debug: | + Cluster lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/fetcher/tvrage.luac lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher core debug: no meta fetcher modules matched core debug: searching art for test.1080p.h264.mkv core debug: looking for art finder module matching "any": 2 candidates mkv debug: NEW START CHAPTER uid=0 mkv debug: found 2 es core debug: selecting program id=0 mkv debug: seek: preroll{ track: 1, pts: 0, fpos: 5599 } mkv debug: seek: preroll{ track: 2, pts: 0, fpos: 58950 } mkv debug: seek: preroll{ start-pts: 1, start-fpos: 5599} mkv debug: Starting the UI Hook core debug: using demux module "mkv" core debug: looking for a subtitle file in /home/egeretto/Videos/ core debug: looking for decoder module matching "any": 45 candidates lua debug: Trying Lua scripts in /home/egeretto/.local/share/vlc/lua/meta/art lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/art lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/01_googleimage.luac lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/01_googleimage.luac lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac avcodec debug: CPU flags: 0x000fd3db avcodec debug: allowing 4 thread(s) for decoding avcodec debug: codec (h264) started avcodec debug: using frame thread mode with 4 threads core debug: using decoder module "avcodec" core debug: looking for decoder module matching "any": 45 candidates core debug: using decoder module "a52" core debug: looking for meta reader module matching "any": 2 candidates lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/03_lastfm.luac lua debug: Trying Lua scripts in /home/egeretto/.local/share/vlc/lua/meta/reader lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/reader lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/reader/filename.luac lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/03_lastfm.luac lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art core debug: no art finder modules matched core debug: looking for meta fetcher module matching "any": 1 candidates lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader core debug: no meta reader modules matched core debug: `file:///home/egeretto/Videos/test.1080p.h264.mkv' successfully opened lua debug: Trying Lua scripts in /home/egeretto/.local/share/vlc/lua/meta/fetcher lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/fetcher lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/fetcher/tvrage.luac core debug: Buffering 0% a52 debug: A/52 channels:6 samplerate:48000 bitrate:384000 core debug: reusing audio output core debug: Buffering 13% pulse debug: using surround-51 channel map core debug: Buffering 27% core debug: Buffering 41% core debug: Buffering 55% avcodec debug: available hardware decoder output format 109 (vdpau) avcodec debug: available hardware decoder output format 53 (vaapi_vld) avcodec debug: available software decoder output format 0 (yuv420p) avcodec warning: thread type 1: disabling hardware acceleration core debug: Buffering 69% core debug: Buffering 97% core debug: Stream buffering done (501 ms in 1 ms) core debug: looking for text renderer module matching "any": 3 candidates pulse debug: digital pass-through not available pulse debug: changed buffer metrics: maxlength=4194312, tlength=138240, prebuf=0, minreq=46080 pulse debug: connected to sink alsa_output.pci-0000_00_1b.0.analog-stereo core debug: output 'f32l' 48000 Hz 3F2R/LFE frame=1 samples/24 bytes core debug: looking for audio volume module matching "any": 2 candidates pulse debug: changing sink 1: alsa_output.pci-0000_00_1b.0.analog-stereo (Built-in Audio Analog Stereo) freetype debug: Building font databases. freetype debug: Took 1 microseconds core debug: using audio volume module "float_mixer" core debug: input 'a52 ' 48000 Hz 3F2R/LFE frame=1536 samples/1536 bytes core debug: looking for audio filter module matching "scaletempo": 14 candidates scaletempo debug: format: 48000 rate, 6 nch, 4 bps, fl32 scaletempo debug: params: 30 stride, 0,200 overlap, 14 search scaletempo debug: 1,000 scale, 1440,000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode core debug: using audio filter module "scaletempo" core debug: conversion: 'a52 '->'f32l' 48000 Hz->48000 Hz 3F2R/LFE->3F2R/LFE core debug: looking for audio converter module matching "any": 11 candidates core debug: using meta fetcher module "lua" core debug: removing module "lua" core debug: searching art for test.1080p.h264.mkv core debug: looking for art finder module matching "any": 2 candidates core debug: no audio converter modules matched core debug: looking for audio converter module matching "any": 11 candidates core debug: using audio converter module "a52tofloat32" core debug: conversion pipeline complete core debug: conversion: 'f32l'->'f32l' 48000 Hz->48000 Hz 3F2R/LFE->3F2R/LFE core debug: conversion pipeline complete core debug: looking for audio resampler module matching "any": 3 candidates core debug: using audio resampler module "samplerate" core debug: using text renderer module "freetype" core debug: looking for video filter2 module matching "any": 64 candidates lua debug: Trying Lua scripts in /home/egeretto/.local/share/vlc/lua/meta/art swscale debug: 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma: RGBA with scaling using Bicubic (good quality) core debug: using video filter2 module "swscale" lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/art lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac core debug: looking for video filter2 module matching "any": 64 candidates yuvp debug: YUVP to YUVA converter core debug: using video filter2 module "yuvp" core debug: Deinterlacing available core debug: deinterlace -1, mode blend, is_needed 0 core debug: looking for vout window module matching "qt,any": 5 candidates qt debug: requesting video window... core debug: resized to 1920x897 core debug: resized to 472x0 core debug: resized to 1920x1074 lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/01_googleimage.luac core debug: using vout window module "qt" core debug: looking for inhibit module matching "any": 2 candidates dbus_screensaver debug: found service org.freedesktop.ScreenSaver core debug: using inhibit module "dbus_screensaver" core debug: Opening vout display wrapper core debug: looking for vout display module matching "any": 15 candidates core debug: VoutDisplayEvent 'resize' 1920x1074 xcb debug: connected to X11.0 server xcb debug: vendor : Fedora Project xcb debug: version: 11804000 xcb debug: using screen 0x115 vdpau_display debug: device creation failure: error 1 lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac core debug: VoutDisplayEvent 'resize' 1920x1074 xcb debug: connected to X11.0 server xcb debug: vendor : Fedora Project xcb debug: version: 11804000 xcb debug: using screen 0x115 core debug: looking for opengl module matching "glx": 3 candidates lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/03_lastfm.luac lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art core debug: no art finder modules matched core debug: art not found for test.1080p.h264.mkv glx debug: using GLX extension version 1.4 core debug: using opengl module "glx" core debug: resized to 1920x1074 core debug: VoutDisplayEvent 'resize' 1920x1074 core debug: resized to 1920x1074 core debug: VoutDisplayEvent 'resize' 1920x1074 core debug: resized to 1920x934 core debug: VoutDisplayEvent 'resize' 1920x934 core debug: using vout display module "xcb_glx" core debug: original format sz 1920x1090, of (0,0), vsz 1920x1074, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0 core debug: removing module "freetype" core debug: looking for text renderer module matching "any": 3 candidates freetype debug: Building font databases. freetype debug: Took 0 microseconds core debug: using text renderer module "freetype" avcodec warning: plane 0 not aligned: disabling direct rendering core debug: Received first picture core debug: Decoder wait done in 86 ms pulse debug: cannot synchronize start pulse debug: deferring start (8979 us) pulse warning: starting late (-24029 us) pulse debug: started pulse debug: changing sink 1: alsa_output.pci-0000_00_1b.0.analog-stereo (Built-in Audio Analog Stereo) core debug: auto hiding mouse cursor core debug: auto hiding mouse cursor core debug: exiting core debug: removing all interfaces core debug: exiting core debug: removing module "qt" core debug: deactivating the playlist core debug: incoming request - stopping current input core debug: incoming request - stopping current input core debug: dead input core error: cannot delete callback 0x7f9c9423eab0 from nonexistent variable 'next-title' core error: cannot delete callback 0x7f9c9423eab0 from nonexistent variable 'prev-title' core error: cannot delete callback 0x7f9c9423eab0 from nonexistent variable 'menu-popup' core error: cannot delete callback 0x7f9c9423eab0 from nonexistent variable 'menu-title' core error: cannot delete callback 0x7f9c9423e950 from nonexistent variable 'next-chapter' core error: cannot delete callback 0x7f9c9423e950 from nonexistent variable 'prev-chapter' core debug: killing decoder fourcc `h264', 0 PES in FIFO core debug: removing module "avcodec" qt debug: IM: Deleting the input avcodec debug: ffmpeg codec (h264) stopped core debug: saving a free vout core debug: reusing provided vout core debug: killing decoder fourcc `a52 ', 0 PES in FIFO core debug: removing module "a52" core debug: removing module "samplerate" core debug: removing module "a52tofloat32" core debug: removing module "scaletempo" core debug: removing module "float_mixer" core debug: keeping audio output core debug: removing module "mkv" core debug: Program doesn't contain anymore ES mkv debug: Stopping the UI Hook core debug: removing module "record" core debug: removing module "cache_read" core debug: removing module "filesystem" core debug: nothing to play core debug: destroying useless vout core debug: removing module "xcb_glx" core debug: removing module "glx" pulse debug: changing sink 1: alsa_output.pci-0000_00_1b.0.analog-stereo (Built-in Audio Analog Stereo) dbus_screensaver debug: got cookie 140626217 core debug: removing module "dbus_screensaver" qt debug: releasing video... qt debug: Video is not needed anymore core debug: removing module "freetype" core debug: removing module "yuvp" core debug: removing module "swscale" core debug: removing module "pulse" qt debug: requesting exit... qt debug: waiting for UI thread... qt debug: QApp exec() finished qt debug: Video is not needed anymore qt debug: Killing extension dialog provider qt debug: ExtensionsDialogProvider is quitting... core debug: removing module "lua" lua debug: Deactivating all loaded extensions lua debug: All extensions are now deactivated core debug: removing module "dbus" core debug: removing module "xcb_hotkeys" core debug: removing module "hotkeys" core debug: destroying core debug: saving Media Library to file /home/egeretto/.local/share/vlc/ml.xspf.tmp5000 core debug: looking for playlist export module matching "export-xspf": 4 candidates core debug: using playlist export module "export" core debug: removing module "export" core debug: removing module "memory" -- logger module stopped --

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: No hardware acceleration in Fedora 24

Postby Rémi Denis-Courmont » 25 Jul 2016 09:56

It means you're using FFmpeg, which no longer allows enabling hardware acceleration and threading at the same time. You need to use libav.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Aliverix
New Cone
New Cone
Posts: 6
Joined: 24 Jul 2016 16:07

Re: No hardware acceleration in Fedora 24

Postby Aliverix » 27 Jul 2016 01:02

Ok, thank you for your help. I think that the vlc package pulled ffmpeg as a dependency, is it possible to change something in Preferences in order to switch to libav, which I have already installed? Or is it a problem of the package and I should open a bug report?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: No hardware acceleration in Fedora 24

Postby Rémi Denis-Courmont » 27 Jul 2016 08:51

This is decided while compiling VLC. You can't change it at run-time.

You can work-around the bug by disabling threading, but that will affect performance of unaccelerated video codecs.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Aliverix
New Cone
New Cone
Posts: 6
Joined: 24 Jul 2016 16:07

Re: No hardware acceleration in Fedora 24

Postby Aliverix » 27 Jul 2016 09:09

Ok, fine. I'll try to open a bug report on RPMFusion and see if they are willing to change the compile-time options.

Thank you again for the attention you gave me.

Aliverix
New Cone
New Cone
Posts: 6
Joined: 24 Jul 2016 16:07

[SOLVED] No hardware acceleration in Fedora 24

Postby Aliverix » 30 Jul 2016 14:19

Now that I have access to the machine affected, I tried the workaround you suggested. For the record, in Preferences (All) > Input / Codecs > Video codecs > FFmpeg, I changed the value of Threads from 0 (auto) to 1. In this way, reproducing the 1080p H264 video now consumes around 7% CPU.

I'll mark this as solved, but I wonder why the automatic mode (0) doesn't select one thread when using FFmpeg and hardware acceleration available. I understand the issue is not present with libav but, I suppose, it is something you should consider.

Again, thank you for your help.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: No hardware acceleration in Fedora 24

Postby Rémi Denis-Courmont » 30 Jul 2016 22:28

FFmpeg forbids combining multithreading and hardware acceleration. It's not something VLC developers can consider; it's all down to FFmpeg.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

sheepdestroyer
New Cone
New Cone
Posts: 1
Joined: 18 Aug 2016 06:12

Re: No hardware acceleration in Fedora 24

Postby sheepdestroyer » 18 Aug 2016 06:16

According to this thread on FFmpeg devel :

https://ffmpeg.org/pipermail/ffmpeg-dev ... tml#187471

What every other players do is first trying to enable hwaccel on single thread and if that fails, recreate a multi-threaded non accelerated context. Why is not that possible for VLC?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: No hardware acceleration in Fedora 24

Postby Rémi Denis-Courmont » 18 Aug 2016 09:52

This has been discussed times over. The FFmpeg developers prefer to ignore it. I don't want to explain it in vain again.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 18 guests