pinebook pro tools
#47
(09-19-2020, 10:11 AM)xmixahlx Wrote: iirc rkvdec supports greater resolution decode than hantro for h264. kwiboo wrote support for h264 on hantro, but then dropped in favor of rkvdec.


still using 5.8. no rush on 5.9. i have other projects in the works and those should be discuswed here soon.

ffmpeg uses drm hwaccel. kodi is the most supported software bevayse that is what libreelec uses as frontend. you can process via cli also. see the "mainline hwaccel" thread for more details.
Hello @xmixahlx 

I have finally got back to trying vpu support for Manjaro.
I patched the following packages
  1. Linux Kernel 5.9.11 with vpu patch from your git.
  2. Ffmpeg with the patched you have in pbp-tools git
  3. Libva
  4. libva-utils ( rebuilt)
  5. libva-v4l2-request
After all this I see that hantro and rkvdec is loaded during boot but ffmpeg decoder doesn't list v4l2-request any more
Quote:
Quote:v4l2-ctl --list-devices
rockchip,rk3399-vpu-enc (platform: hantro-vpu):
        /dev/video2
        /dev/video3
        /dev/media1

rockchip-rga (platform:rga):
        /dev/video1

rkvdec (platform:rkvdec):
        /dev/video0
        /dev/media0
Quote:dmesg | grep hantro
[    7.618917] hantro_vpu: module is from the staging directory, the quality is unknown, you have been warned.
[    7.620917] hantro-vpu ff650000.video-codec: Adding to iommu group 0
[    7.623875] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-enc as /dev/video1
[    7.624402] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-dec as /dev/video2

Quote:dmesg | grep rk3399-vpu
[    7.296421] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-enc as /dev/video2
[    7.297825] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-dec as /dev/video3

Quote:ffplay -decoders | grep v4l2
ffplay version n4.3.1-Kodi Copyright © 2003-2020 the FFmpeg developers
  built with gcc 10.2.0 (GCC)
  configuration: --enable-v4l2-request --enable-libdrm --enable-libudev --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-omx --enable-shared --enable-version3 --host-cflags='"-fPIC"'
  libavutil      56. 51.100 / 56. 51.100
  libavcodec    58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter    7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample  3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
V..... h263_v4l2m2m        V4L2 mem2mem H.263 decoder wrapper (codec h263)
V..... h264_v4l2m2m        V4L2 mem2mem H.264 decoder wrapper (codec h264)
V..... hevc_v4l2m2m        V4L2 mem2mem HEVC decoder wrapper (codec hevc)
V..... mpeg1_v4l2m2m        V4L2 mem2mem MPEG1 decoder wrapper (codec mpeg1video)
V..... mpeg2_v4l2m2m        V4L2 mem2mem MPEG2 decoder wrapper (codec mpeg2video)
V..... mpeg4_v4l2m2m        V4L2 mem2mem MPEG4 decoder wrapper (codec mpeg4)
V..... vc1_v4l2m2m          V4L2 mem2mem VC1 decoder wrapper (codec vc1)
V..... vp8_v4l2m2m          V4L2 mem2mem VP8 decoder wrapper (codec vp8)
V..... vp9_v4l2m2m          V4L2 mem2mem VP9 decoder wrapper (codec vp9)

Quote:ffmpeg -re -hwaccel drm -i bbb_1080-30_3M_x265_main_8b_lv51.mkv -f null -
ffmpeg version n4.3.1-Kodi Copyright © 2000-2020 the FFmpeg developers
  built with gcc 10.2.0 (GCC)
  configuration: --enable-v4l2-request --enable-libdrm --enable-libudev --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-omx --enable-shared --enable-version3 --host-cflags='"-fPIC"'
  libavutil      56. 51.100 / 56. 51.100
  libavcodec    58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter    7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample  3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, matroska,webm, from 'bbb_1080-30_3M_x265_main_8b_lv51.mkv':
  Metadata:
    ENCODER        : Lavf58.29.100
  Duration: 00:00:43.80, start: 0.000000, bitrate: 3049 kb/s
    Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 1k tbn, 30 tbc (default)
    Metadata:
      ENCODER        : Lavc58.54.100 libx265
      DURATION        : 00:00:43.800000000
    Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 320 kb/s (default)
    Metadata:
      DURATION        : 00:00:43.776000000
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> wrapped_avframe (native))
  Stream #0:1 -> #0:1 (ac3 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[hevc @ 0xaaaaca429460] v4l2_request_probe_video_device: missing required mem2mem capability
    Last message repeated 1 times
[hevc @ 0xaaaaca429460] v4l2_request_try_format: pixelformat 892744275 not supported for type 10
[hevc @ 0xaaaaca429460] v4l2_request_probe_video_device: try output format failed
[hevc @ 0xaaaaca429460] v4l2_request_try_format: pixelformat 892744275 not supported for type 10
[hevc @ 0xaaaaca429460] v4l2_request_probe_video_device: try output format failed
Output #0, null, to 'pipe:':
  Metadata:
    encoder        : Lavf58.45.100
    Stream #0:0: Video: wrapped_avframe, nv12, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc (default)
    Metadata:
      DURATION        : 00:00:43.800000000
      encoder        : Lavc58.91.100 wrapped_avframe
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, 5.1(side), s16, 4608 kb/s (default)
    Metadata:
      DURATION        : 00:00:43.776000000
      encoder        : Lavc58.91.100 pcm_s16le
frame=  590 fps= 30 q=-0.0 Lsize=N/A time=00:00:19.84 bitrate=N/A speed=0.998x

I am not sure what else is needed. It still takes alot of cpu when playing via ffplay as mpv is not patched and as v4l2_request is not detected then no point of patching mpv, for kodi I might have to do a fresh pkgbuild for gbm with patched ffmpeg.

Any advice?
Manjaro ARM Team.
Devices: Pinebook Pro & PinePhone.
  Reply


Messages In This Thread
pinebook pro tools - by xmixahlx - 06-11-2020, 03:09 AM
RE: pinebook pro tools - by Eight Bit - 06-11-2020, 11:29 AM
RE: pinebook pro tools - by xmixahlx - 06-11-2020, 11:47 AM
RE: pinebook pro tools - by xmixahlx - 06-13-2020, 03:22 PM
RE: pinebook pro tools - by Syonyk - 06-13-2020, 03:44 PM
RE: pinebook pro tools - by xmixahlx - 06-13-2020, 06:42 PM
RE: pinebook pro tools - by Odel - 06-14-2020, 04:12 PM
RE: pinebook pro tools - by xmixahlx - 06-14-2020, 04:48 PM
RE: pinebook pro tools - by xmixahlx - 06-18-2020, 01:27 AM
RE: pinebook pro tools - by as400 - 06-18-2020, 12:09 PM
RE: pinebook pro tools - by xmixahlx - 06-19-2020, 02:48 PM
RE: pinebook pro tools - by codanostra - 06-19-2020, 02:58 AM
RE: pinebook pro tools - by xmixahlx - 06-19-2020, 05:13 PM
RE: pinebook pro tools - by Syonyk - 06-20-2020, 05:46 PM
RE: pinebook pro tools - by xmixahlx - 06-19-2020, 06:38 PM
RE: pinebook pro tools - by as400 - 06-21-2020, 09:00 AM
RE: pinebook pro tools - by xmixahlx - 06-21-2020, 09:36 AM
RE: pinebook pro tools - by xmixahlx - 06-24-2020, 04:28 PM
RE: pinebook pro tools - by xmixahlx - 06-27-2020, 05:03 PM
RE: pinebook pro tools - by xmixahlx - 06-29-2020, 08:11 PM
RE: pinebook pro tools - by xmixahlx - 06-30-2020, 04:17 PM
RE: pinebook pro tools - by Odel - 07-02-2020, 12:56 AM
RE: pinebook pro tools - by xmixahlx - 07-02-2020, 09:20 AM
RE: pinebook pro tools - by Odel - 07-03-2020, 10:19 PM
RE: pinebook pro tools - by xmixahlx - 07-07-2020, 03:34 PM
RE: pinebook pro tools - by xmixahlx - 07-13-2020, 11:18 PM
RE: pinebook pro tools - by charlespine - 07-19-2020, 01:55 AM
RE: pinebook pro tools - by xmixahlx - 07-19-2020, 02:33 AM
RE: pinebook pro tools - by charlespine - 07-19-2020, 10:41 AM
RE: pinebook pro tools - by charlespine - 07-20-2020, 01:53 PM
RE: pinebook pro tools - by xmixahlx - 07-21-2020, 12:13 AM
RE: pinebook pro tools - by xmixahlx - 07-25-2020, 01:53 AM
RE: pinebook pro tools - by spikerguy - 07-30-2020, 12:43 PM
RE: pinebook pro tools - by xmixahlx - 07-30-2020, 12:55 PM
RE: pinebook pro tools - by spikerguy - 07-30-2020, 04:37 PM
RE: pinebook pro tools - by xmixahlx - 07-30-2020, 04:52 PM
RE: pinebook pro tools - by spikerguy - 08-19-2020, 10:20 AM
RE: pinebook pro tools - by xmixahlx - 08-26-2020, 06:00 PM
RE: pinebook pro tools - by tekk - 08-29-2020, 01:39 PM
RE: pinebook pro tools - by xmixahlx - 08-30-2020, 11:50 AM
RE: pinebook pro tools - by mjhammel - 08-31-2020, 09:32 AM
RE: pinebook pro tools - by xmixahlx - 08-31-2020, 11:16 AM
RE: pinebook pro tools - by mjhammel - 09-02-2020, 10:29 AM
RE: pinebook pro tools - by mjhammel - 09-02-2020, 10:48 AM
RE: pinebook pro tools - by jh76 - 09-14-2020, 10:00 AM
RE: pinebook pro tools - by xmixahlx - 09-19-2020, 10:11 AM
RE: pinebook pro tools - by spikerguy - 11-27-2020, 01:31 PM
RE: pinebook pro tools - by xmixahlx - 12-06-2020, 01:16 PM
RE: pinebook pro tools - by mjhammel - 03-08-2021, 05:33 PM
RE: pinebook pro tools - by mjhammel - 03-12-2021, 06:58 PM
RE: pinebook pro tools - by xmixahlx - 04-03-2021, 04:13 PM
RE: pinebook pro tools - by mjhammel - 04-05-2021, 09:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Upgrading Armbian from v24.2.1 gnome, breaks pinebook pro Sb2024 0 115 11-10-2024, 02:50 PM
Last Post: Sb2024
  Pinebook pro won't boot after bootloader installation jwensouls 4 942 08-21-2024, 04:17 AM
Last Post: KC9UDX
  [Pinebook Pro/Mobian/XFCE4] can fix touch or screen in greeter not both SynthGal 0 401 05-31-2024, 09:42 AM
Last Post: SynthGal
  Debian on Pinebook Pro u974615 7 2,893 03-31-2024, 10:11 AM
Last Post: u974615
  Pinebook Pro upgrading from the factory image yamsoup 12 4,113 02-22-2024, 04:02 PM
Last Post: tllim
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 3,221 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 3,511 12-11-2023, 03:47 AM
Last Post: calinb
  Gentoo on Pinebook Pro RELEASE jannik2099 54 103,566 12-08-2023, 11:25 PM
Last Post: tllim
  Boot Order in Pinebook Pro food 8 2,698 11-23-2023, 07:37 AM
Last Post: KC9UDX
  PineBook Pro seems to go to deep sleep, but doesn't wake up pogo 11 7,421 08-31-2023, 04:20 PM
Last Post: TRS-80

Forum Jump:


Users browsing this thread: 3 Guest(s)