Jump to content

Hardware Encoders list is blank


Vallefor

Recommended Posts

Vallefor

Recently I buy Emby Premier to test hardware encoding feature but noticed that list is blank.

 

Only QuickSync in Hardware Decoders:

post-148332-0-23106600-1557771279_thumb.png

 

My CPU is Ryzen 2400G with embeded Vega 11

OS: Ubuntu 19.04 (headless)

 

Here my vainfo output:

➜  ~ vainfo --display drm
libva info: VA-API version 1.4.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_4
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.4 (libva 2.4.0)
vainfo: Driver version: Mesa Gallium driver 19.0.2 for AMD RAVEN (DRM 3.27.0, 5.0.0-13-generic, LLVM 8.0.0)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc

I attached my hardware detect log.

Btw in log I see the string "Failed to initialize VA /dev/dri/renderD128. Error -1". First of all I was thinking that emby user have no access to renderD128, but I checked that it in video groups:

➜  ~ groups emby
emby : emby video plugdev deluge

And when I run command:

sudo -u emby sh -c '/opt/emby-server/bin/ffdetect vaenc'

Everything is fine and I see output:

➜  ~ sudo -u emby sh -c '/opt/emby-server/bin/ffdetect vaenc'
[sudo] password for vallefor: 
ffdetect version 4.0.3-emby_2019_03_26 Copyright (c) 2018-2018 softworkz for Emby LLC
  built with gcc 6.3.0 (crosstool-NG crosstool-ng-1.23.0)
  configuration: --cc=x86_64-pc-linux-gnu-gcc --prefix=/home/embybuilder/Buildbot/x64/ffmpeg-x64/staging --pkg-config=pkg-config --disable-doc --disable-ffplay --disable-vdpau --disable-xlib --enable-fontconfig --enable-gnutls --enable-gpl --enable-iconv --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libwebp --enable-libx264 --enable-libzvbi --enable-version3 --enable-libsmbclient --enable-cuda-nvcc --enable-cuvid --enable-libmfx --enable-nvdec --enable-nvenc --enable-vaapi --enable-cross-compile --cross-prefix=x86_64-pc-linux-gnu- --extra-libs='-lexpat -lfreetype -lfribidi -lfontconfig -liconv -lpng -lz -lvorbis -logg -lnettle -lhogweed -lgmp -laddns-samba4 -lasn1util-samba4 -lauthkrb5-samba4 -lCHARSET3-samba4 -lcliauth-samba4 -lcli-cldap-samba4 -lcli-ldap-common-samba4 -lcli-nbt-samba4 -lcli-smb-common-samba4 -lcom_err -lcommon-auth-samba4 -ldbwrap-samba4 -ldcerpc-binding -ldcerpc-samba-samba4 -ldl -lflag-mapping-samba4 -lgenrand-samba4 -lgensec-samba4 -lgse-samba4 -lgssapi_krb5 -llibcli-lsa3-samba4 -llibsmb-samba4 -linterfaces-samba4 -liov-buf-samba4 -lk5crypto -lkrb5 -lkrb5samba-samba4 -lkrb5support -lldb -lldbsamba-samba4 -lmessages-dgm-samba4 -lmessages-util-samba4 -lmsghdr-samba4 -lmsrpc3-samba4 -lndr -lndr-krb5pac -lndr-nbt -lndr-samba-samba4 -lndr-standard -lreplace-samba4 -lsamba-cluster-support-samba4 -lsamba-credentials -lsamba-debug-samba4 -lsamba-errors -lsamba-hostconfig -lsamba-modules-samba4 -lsamba-security-samba4 -lsamba-sockets-samba4 -lsamba-util -lsamba3-util-samba4 -lsamdb -lsamdb-common-samba4 -lsecrets3-samba4 -lserver-id-db-samba4 -lserver-role-samba4 -lsmbconf -lsmbd-shim-samba4 -lsmb-transport-samba4 -lsocket-blocking-samba4 -lsys-rw-samba4 -ltalloc -ltalloc-report-samba4 -ltdb -ltdb-wrap-samba4 -ltevent -ltevent-util -ltime-basic-samba4 -lutil-cmdline-samba4 -lutil-reg-samba4 -lutil-setid-samba4 -lutil-tdb-samba4 -luuid -lwbclient -lwinbind-client-samba4 -ldrm' --arch=x86_64 --target-os=linux --enable-shared --disable-static
  WARNING: library configuration mismatch
  avutil      configuration: --prefix=/usr --extra-version=0ubuntu1 --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-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 14.100 / 56. 22.100
[DEVICE]
DeviceIndex=0
DEVICEINFO:VendorName=Advanced Micro Devices, Inc. [AMD/ATI]
DEVICEINFO:DeviceName=Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series]
DEVICEINFO:SubsytemVendorName=Gigabyte Technology Co., Ltd
DEVICEINFO:SubsytemDeviceName=Radeon RX Vega 11
DEVICEINFO:VendorId=4098
DEVICEINFO:DeviceId=5597
DEVICEINFO:SubsytemVendorId=5208
DEVICEINFO:SubsytemDeviceId=53248
DEVICEINFO:DevPath=/sys/bus/pci/devices/0000:0a:00.0
DEVICEINFO:DrmCard=/dev/dri/card0
DEVICEINFO:DrmRender=/dev/dri/renderD128
DEVICEINFO:IsEnabled=1
DEVICEINFO:IsBootVga=1
DEVICEINFO:ApiVersionMajor=1
DEVICEINFO:ApiVersionMinor=4
DEVICEINFO:Driver=Mesa Gallium driver 19.0.2 for AMD RAVEN (DRM 3.27.0, 5.0.0-13-generic, LLVM 8.0.0)
[DECODER]
CodecName=MPEG2VIDEO
CodecProfile=MPEG2_SIMPLE
CodecId=2
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=MPEG2VIDEO
CodecProfile=MPEG2_MAIN
CodecId=2
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=WMV3
CodecProfile=VC1_SIMPLE
CodecId=71
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=VC1
CodecProfile=VC1_SIMPLE
CodecId=70
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=WMV3
CodecProfile=VC1_MAIN
CodecId=71
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=VC1
CodecProfile=VC1_MAIN
CodecId=70
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=WMV3
CodecProfile=VC1_COMPLEX
CodecId=71
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=WMV3
CodecProfile=VC1_ADVANCED
CodecId=71
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=VC1
CodecProfile=VC1_COMPLEX
CodecId=70
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=VC1
CodecProfile=VC1_ADVANCED
CodecId=70
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=H264
CodecProfile=H264_CONSTRAINED_BASELINE
CodecId=27
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=H264
CodecProfile=H264_MAIN
CodecId=27
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=H264
CodecProfile=H264_HIGH
CodecId=27
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=HEVC
CodecProfile=HEVC_MAIN
CodecId=173
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=HEVC
CodecProfile=HEVC_MAIN_10
CodecId=173
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 P010 
RTFormat=257
[/DECODER]
[DECODER]
CodecName=MJPEG
CodecProfile=MJPEG_HUFFMAN_BASELINE_DCT
CodecId=7
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=VP9
CodecProfile=VP9_0
CodecId=167
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[DECODER]
CodecName=VP9
CodecProfile=VP9_2
CodecId=167
MaxWidth=4096
MaxHeight=4096
ColorFormats=NV12 
RTFormat=1
[/DECODER]
[/DEVICE]

Whats wrong with my setup?

hw_detect_log.txt

Link to comment
Share on other sites

@@Vallefor - Have you made any attempts to install QuickSync/The Intel Media SDK?

 

In case of Ryzen with integrated GPU, I'm not sure if it works without having a monitor connected.

Please connect a monitor and restart.

 

 

But even if that would get you going: generally - in case of AMD - you'll need their proprietary drivers. We're regularly seeing issues when these are not installed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...