I am getting a lot of "Failed to create hwaccel device. Generic error in an external library" on Ubuntu 20.04 with vaapi specified in DecoderHWAccelName.
Seems to be related to Ubuntu 20.04. Started after upgrade from 18.04.
Anyone else have this problem?
Failed to create hwaccel device.
Re: Failed to create hwaccel device.
What do you have for decoder options? Each encoder/decoder supports different options unfortunately.
Also, next turn on debug and check logs, there might be more information reported by vaapi.
Also, next turn on debug and check logs, there might be more information reported by vaapi.
Re: Failed to create hwaccel device.
Ok so this is what I get from ffmpeg:
ffmpeg -hwaccels
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Hardware acceleration methods:
vdpau
cuda
vaapi
drm
opencl
cuvid
I have "FFMPEG_OUTPUT_OPTIONS" = "-r 25" going to try without that.
I just filled my disk with debug logs. Wthat is an aproriat log target here?
ffmpeg -hwaccels
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Hardware acceleration methods:
vdpau
cuda
vaapi
drm
opencl
cuvid
I have "FFMPEG_OUTPUT_OPTIONS" = "-r 25" going to try without that.
I just filled my disk with debug logs. Wthat is an aproriat log target here?
Re: Failed to create hwaccel device.
It’s a known problem. Look on the Slack channel.
Skip the hw acceleration for the time being.
Skip the hw acceleration for the time being.
-
Re: Failed to create hwaccel device.
Ah, ok. Will remove it for now.
But my resolution is not high. 640x360 doesn't work either.
But my resolution is not high. 640x360 doesn't work either.
-
- Posts: 1322
- Joined: Sat Aug 31, 2019 7:35 am
- Location: San Diego
Re: Failed to create hwaccel device.
What do you mean, n't work either? As opposed to what?640x360 doesn't work either.
Re: Failed to create hwaccel device.
Well, if I set "vaapi" only on the secondary lowres stream then I still get the error. I saw on the slack channel that it seemed to be a problem with hires. >2000 pixels.
But i will just run without it for now.
But i will just run without it for now.
Re: Failed to create hwaccel device.
Does hwacc gives you anything at all now ?
For my 1.34.x instalation, I have it enabled with mocord H264 passthrough, but it gives me literally nothing, compared to disabling it.
For my 1.34.x instalation, I have it enabled with mocord H264 passthrough, but it gives me literally nothing, compared to disabling it.
Re: Failed to create hwaccel device.
To be honest, I am not sure.
Its more like it gives me a warm and fuzzy feeling. Even-thou I read the Iconnor:s explanation about the limited value, still warm and fuzzy
Its more like it gives me a warm and fuzzy feeling. Even-thou I read the Iconnor:s explanation about the limited value, still warm and fuzzy
Re: Failed to create hwaccel device.
Yes, I had the same problem and this is 100% permissions issue. Check ownership of /dev/dri/renderD128 and add www-data to same group (usually it is "video" or "renderer" but if you use docker it can be something completely irrelevant, in my case it was "ssh").