2021-05-30, 10:40
2021-05-30, 11:16
I have an older Intel chip that doesn't have HW decoding of HEVC. On it, the failure looks like this for your reference. Note that the command will just use the CPU without vaapi to do the math so look for the error.
No support for codec hevc profile 2.
Failed setup for format vaapi_vld: hwaccel initialisation returned error.
Code:
% VID=jellyfish-40-mbps-hd-hevc-10bit.mkv
% ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i $VID -f null -
ffmpeg version n4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.2.0 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-shared --enable-version3
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Input #0, matroska,webm, from 'jellyfish-40-mbps-hd-hevc-10bit.mkv':
Metadata:
COMPATIBLE_BRANDS: iso4hvc1iso6
MAJOR_BRAND : iso4
MINOR_VERSION : 1
ENCODER : Lavf56.3.100
Duration: 00:00:30.10, start: 0.067000, bitrate: 39993 kb/s
Stream #0:0(und): Video: hevc (Main 10), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default)
Metadata:
CREATION_TIME : 2016-02-06 03:48:02
LANGUAGE : und
HANDLER_NAME : [email protected]
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
[hevc @ 0x563a05411d80] No support for codec hevc profile 2.
[hevc @ 0x563a05411d80] Failed setup for format vaapi_vld: hwaccel initialisation returned error.
Output #0, null, to 'pipe:':
Metadata:
COMPATIBLE_BRANDS: iso4hvc1iso6
MAJOR_BRAND : iso4
MINOR_VERSION : 1
encoder : Lavf58.76.100
Stream #0:0(und): Video: wrapped_avframe, yuv420p10le(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn (default)
Metadata:
CREATION_TIME : 2016-02-06 03:48:02
LANGUAGE : und
HANDLER_NAME : [email protected]
encoder : Lavc58.134.100 wrapped_avframe
frame= 391 fps=114 q=-0.0 Lsize=N/A time=00:00:13.04 bitrate=N/A speed=3.81x
video:205kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Exiting normally, received signal 2.
2021-05-30, 11:23
Have you tried building kodi-git and testing decoding there? Note this will build from master so recommend that you backup your
~/.kodi
before trying it.
2021-05-30, 11:32
i did successfully build it a few weeks ago with the same problem, tried to compile this morning with:
[ 28%] Building CXX object build/filesystem/CMakeFiles/filesystem.dir/UPnPFile.cpp.o
[ 28%] Linking CXX static library filesystem.a
[ 28%] Built target filesystem
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
[lee@plasma kodi-git]$
[ 28%] Building CXX object build/filesystem/CMakeFiles/filesystem.dir/UPnPFile.cpp.o
[ 28%] Linking CXX static library filesystem.a
[ 28%] Built target filesystem
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
[lee@plasma kodi-git]$
2021-05-30, 14:15
i just cloned https://aur.archlinux.org/kodi-git.git then ran makepkg -s
edit: same error with yay -S kodi-git-gbm
edit: same error with yay -S kodi-git-gbm
2021-05-30, 14:17
(2021-05-30, 14:15)deadite66 Wrote: i just cloned https://aur.archlinux.org/kodi-git.git then ran makepkg -s
Right, but just like the official PKGBUILD, this will build all three targets, gbm, wayland, and x11. I am asking which one fails for you.
Code:
...
echo "building kodi-wayland"
cmake "${_args[@]}" -DCORE_PLATFORM_NAME=wayland ../"$_gitname"
make
echo "building kodi-gbm"
cmake "${_args[@]}" -DCORE_PLATFORM_NAME=gbm ../"$_gitname"
make
# build x11 version last that will make it fallback in the launcher script
echo "building kodi-x11"
cmake "${_args[@]}" -DCORE_PLATFORM_NAME=x11 ../"$_gitname"
make
2021-05-30, 16:15
(2021-05-30, 14:29)deadite66 Wrote: both yay -S kodi-git-gbm and yay -S kodi-git-x11 same error.
AUR helpers like yay cause more problems than they solve. Use makepkg. I just built kodi-git without errors. You can d/l from here if you don't want to build on your own: http://repo-ck.com/x86_64/kodi-git/
2021-05-30, 17:32
nothing changed, still black screen.
installed kodi-git-gbm launched via kodi-standalone-service
installed kodi-git-gbm launched via kodi-standalone-service
2021-05-30, 20:05
Since you showed that ffmpeg 4.3.2 and 4.4 both worked, I believe the issue is with Kodi code. Building the latest git did not help. This is you, right? Not sure why it was closed.
2021-05-30, 20:26
You might want to comment summarizing the findings of what you tried here and ask for a reopen questioning whether or not there is something in the Kodi code base that needs to be tweaked.