mainline kernel hardware acceleration
(06-07-2020, 05:31 PM)xmixahlx Wrote: confirmed that the youtube kodi plugin working well with hwaccel (tested up to 1080p). h264 works great. vp9 has occasional artifacts. recommend using Adaptive H264 in MPEG DASH settings.

kodi-git thread updated and added inputstream.adaptive-git script for use with youtube-kodi-addon, etc.

Hey @xmixahlx, I've been following your guides here and I've successfully compiled a kernel with your patch set (minus the pinebook-pro patch because I started with the tsys linux-pinebook-pro v5.7 branch) and although I've built libva libva-v4l2 and ffmpeg versions you've mentioned here I still can't detect the rkvdec device in the /dev/video* devices, just hantro and the webcam. vainfo only shows mpeg2video capabilities with the hantro decoder set as the v4l2-request device. The result currently is that I can run hw accelerated kodi to watch videos, but currently it only works with mpeg2.

Is there some step here that I'm missing? Did I miss a key kernel patch or something? The kernel showed rkvdec as enabled as a module when I was configuring it.
libva and libva-v4l2-request are basically broken except fro mpeg2. current ffmpeg isn't sharing v4l2request in the decoders interface, so mpv also seems broken.

currently only ffmpeg and kodi are working via drm/drmprime with the kernel hwaccel patches. you need drm, rockchip, and v4l2 patches from linux-next as prepared by kwiboo, plus a rkvdec wip patch if you want vp9, hevc, and 10bit avc.

see the tar.lrz file attached above. i will make easier scripts for these now that they are *more stable*.
(06-07-2020, 09:13 PM)xmixahlx Wrote: i will make easier scripts for these now that they are *more stable*.
That would be awesome!
script updated and moved to git, see pbp-tools thread:

Possibly Related Threads…
Thread Author Replies Views Last Post
  Compile of Anbox fails because kernel function kallsyms_lookup_name() is unexported Tsvi Bar-David 6 233 06-30-2020, 06:41 AM
Last Post: tophneal
  eMMC frequently not found by Linux kernel (especially on low battery) v-man 7 408 06-21-2020, 04:30 PM
Last Post: Arwen
  HW Acceleration for 2d/3d on pinebook pro ljones 4 1,185 06-19-2020, 10:02 AM
Last Post: xmixahlx
  kodi-git build script for mainline hwaccel media decoding xmixahlx 19 880 06-16-2020, 10:12 PM
Last Post: xmixahlx
  A true mainline Linux Kernel for the Pinebook Pro tsys 148 25,023 06-16-2020, 03:13 PM
Last Post: xmixahlx
  Manjaro XFCE MPV Hardware Acceleration p3pp3r 0 119 06-15-2020, 09:26 PM
Last Post: p3pp3r
  How does one get working deep/S3 sleep with Ubuntu Focal/5.7 mainline kernel? Syonyk 6 345 06-14-2020, 10:36 PM
Last Post: Syonyk
  dim screen after kernel upgrade bsammon 4 250 03-22-2020, 10:29 PM
Last Post: xmixahlx
  The default OS / kernel had a wifi issue? dawncold 15 1,457 03-02-2020, 06:26 PM
Last Post: lowry
  Booting with modified kernel parameters? zackw 1 301 02-29-2020, 10:14 AM
Last Post: Arwen

Forum Jump:

Users browsing this thread: 1 Guest(s)