mainline kernel hardware acceleration
#2
mpeg2video hwaccel is tested working.

testing requirements:
patched kernel (libreelec; optionally kwiboo v4l2 5.5 wip and rkvdec, plus bbrezillon patches)
patched libva (plus pulls 332,340)
patched libva-v4l2-request (plus pulls 28,29,30)
patched ffmpeg (v4l2-request-hwaccel) -- recommend 4.2.2 or -master
> build with --enable-v4l2-request --enable-libdrm --enable-libudev --enable-pic --enable-shared (plus optional config)

determine video decoder:
dmesg | grep rk3399-vpu-dec
note video device (i.e. /dev/video1)

export variables:
export LIBVA_DRIVER_NAME=v4l2_request
export LIBVA_V4L2_REQUEST_VIDEO_PATH=/dev/video1

vainfo output:
Quote:libva info: VA-API version 1.6.1
libva info: User environment variable requested driver 'v4l2_request'
libva info: Trying to open /usr/local/lib/aarch64-linux-gnu/dri/v4l2_request_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.6 (libva 2.6.0)
vainfo: Driver version: v4l2-request
vainfo: Supported profile and entrypoints
     VAProfileMPEG2Simple            : VAEntrypointVLD
     VAProfileMPEG2Main              : VAEntrypointVLD
     VAProfileH264Main               : VAEntrypointVLD
     VAProfileH264High               : VAEntrypointVLD
     VAProfileH264ConstrainedBaseline: VAEntrypointVLD
     VAProfileH264MultiviewHigh      : VAEntrypointVLD
     VAProfileH264StereoHigh         : VAEntrypointVLD

vlc abbreviated output:
> opengl video, vaapi hwaccel
Quote:libva info: VA-API version 1.6.1
libva info: User environment variable requested driver 'v4l2_request'
libva info: Trying to open /usr/local/lib/aarch64-linux-gnu/dri/v4l2_request_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva info: va_openDriver() returns 0
[0000ffff5cc19640] avcodec decoder: Using v4l2-request for hardware decoding

ffmpeg -decoders | grep v4l2request output:
Quote: V..... h263_v4l2request h263 (v4l2request) (codec h263)
V..... h264_v4l2request h264 (v4l2request) (codec h264)
V..... hevc_v4l2request hevc (v4l2request) (codec hevc)
V..... mpeg1_v4l2request mpeg1 (v4l2request) (codec mpeg1video)
V..... mpeg2_v4l2request mpeg2 (v4l2request) (codec mpeg2video)
V..... mpeg4_v4l2request mpeg4 (v4l2request) (codec mpeg4)
V..... vc1_v4l2request vc1 (v4l2request) (codec vc1)
V..... vp8_v4l2request vp8 (v4l2request) (codec vp8)
V..... vp9_v4l2request vp9 (v4l2request) (codec vp9)

screenshot eye candy


Messages In This Thread
RE: mainline kernel hardware acceleration - by xmixahlx - 02-18-2020, 01:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to mainline kernel on daniel thompson's debian installer? hellojack 14 9,824 09-07-2023, 09:38 PM
Last Post: Der Geist der Maschine
  kernel module that supports usb-c hdmi alexandre 16 17,014 05-14-2023, 09:58 PM
Last Post: rathofkhan3
  Manjaro update broke hardware video acceleration with mpv myself600 2 1,812 01-25-2023, 09:12 AM
Last Post: myself600
Question Debian (Vanilla) no output on display after Kernel update (6.0.8-1) as365n4 1 1,651 12-09-2022, 12:43 PM
Last Post: as365n4
  bootloader menu to pick a kernel - what is the current situation in in early 2022? maxtothemax 4 3,776 02-05-2022, 03:04 PM
Last Post: maxtothemax
  Kernel panics solostian 17 16,741 01-26-2022, 08:08 AM
Last Post: TRS-80
  Kernel 5.17 will improve VP9 support? jiyong 1 2,541 01-16-2022, 08:26 PM
Last Post: xmixahlx
  red/green power led not working with kernel 5.14 alchemist 4 4,519 11-04-2021, 04:09 AM
Last Post: alchemist
  Very slow glamor 2D acceleration hjalfi 3 4,664 09-06-2021, 12:54 PM
Last Post: jbrock
  Sound stuttering on Manjaro gnome after latest kernel upgrade? pjsf 0 2,083 07-13-2021, 10:37 PM
Last Post: pjsf

Forum Jump:


Users browsing this thread: 8 Guest(s)