Jump to content

Sash0k

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Sash0k

  1. Hello again. I've compiled libva-v4l2-request for actual orangepipc 5.7.15-sunxi #20.08 Works better than 5.4.45, no artifacts in 720p Patched sources: https://github.com/Sash0k/libva-v4l2-request
  2. Hello. Thanks to you post, i've started VPU acceleration in H3 (OrangePI PC). For your SBC seems it will be the same. Seems, it will be better to upgrade backend headers, than downgrade kernel Try this patch: https://github.com/bootlin/libva-v4l2-request/pull/30/files Details: https://forum.armbian.com/topic/11184-hardware-graphicvideo-acceleration-in-h3-mainline/?do=findComment&comment=105564
  3. Finally got it! No kernel modifications needed, only v4l2-request. Key notes: Use bootlin code, latest master (not release-2019.03 tag) I merged just one small patch from https://github.com/bootlin/libva-v4l2-request/pull/30/files (seems, it's unecessary) Download kernel sources with corresponding version. For my armbian is: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.45.tar.xz Extract 2 files from kernel/include/media mpeg2-ctrls.h and h264-ctrls.h and replace ones in v4l2-request Replace V4L2_PIX_FMT_H264_SLICE_RAW to V4L2_PIX_FMT_H264_SLICE in v4l2-request source code Compile and install (instruction is as 2 posts above) Don't forget to set VLC as in https://linux-sunxi.org/Sunxi-Cedrus Tested with VLC, usable with issues: Artifacts in some videos h264 720p and higher, for example: https://imgur.com/nYFArT4 (360/480 works fine) Scaling (fullscreen, resizing) not works, slowdown with message [a310cb88] main filter error: Failed to create video converter Minor issues in console output on playback (see bold) Thanks to: @jernej for this post:
  4. Unfortunately, no success. First, mainline bootlin backend is outdated, h264 broken. It has some pull requests, that not merged. Tryng to recompile Philipp Zabel's version, and merge his work for h264 This version works with artifacts in VLC:
  5. Trying to add VA-API into actual Armbian Focal (Linux orangepipc 5.4.45-sunxi #20.05.4) Install instruction Next, export driver: $ export LIBVA_DRIVER_NAME=v4l2_request and check it with vainfo tool. Have an error: $ vainfo libva info: VA-API version 1.7.0 libva info: User environment variable requested driver 'v4l2_request' libva info: Trying to open /usr/lib/arm-linux-gnueabihf/dri/v4l2_request_drv_video.so libva info: va_openDriver() returns -1 vaInitialize failed with error code -1 (unknown libva error),exit To fix, add symbolic link to installed driver: $ sudo ln -s /usr/lib/dri/v4l2_request_drv_video.so /usr/lib/arm-linux-gnueabihf/dri/ And seems everything is ok $ vainfo libva info: VA-API version 1.7.0 libva info: User environment variable requested driver 'v4l2_request' libva info: Trying to open /usr/lib/arm-linux-gnueabihf/dri/v4l2_request_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.7 (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 VAProfileHEVCMain : VAEntrypointVLD
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines