Firefly Open Source Community

Title: rockchip_drv_video.so [Print This Page]

Author: rpk.firefly    Time: 5/20/2018 14:32
Title: rockchip_drv_video.so
Last edited by rpk.firefly In 5/20/2018 14:47 Editor

I want to test the video hardware codecs on the RK3399 to transcode video.

I noticed that ffmpeg is apparently able to access hardware for h.264 and h.265v video.

I installed vainfo and vdpauinfo:

        sudo apt-get install vainfo
        sudo apt-get install vdpauinfo


First I tried running vainfo:

        [firefly@firefly] ~ 1182: sudo vainfo

        error: XDG_RUNTIME_DIR not set in the environment.
        libva info: VA-API version 0.39.0
        libva info: va_getDriverName() returns 0
        libva info: Trying to open /usr/lib/aarch64-linux-gnu/dri/rockchip_drv_video.so
        libva info: va_openDriver() returns -1
        vaInitialize failed with error code -1 (unknown libva error),exit


Aside from XDR_RUNTIME_DIR not being set the command reports an error regarding the rockchip video driver - as it turns out one isn't installed:
        [firefly@firefly] ~ 1183: ls /usr/lib/aarch64-linux-gnu/dri/

        ./   dummy_drv_video.so    r600_drv_video.so
        ../  nouveau_drv_video.so  radeonsi_drv_video.so


A similar library error is reported missing in action when I attempt to use vdpauinfo:

        [firefly@firefly] ~cv 1184: sudo vdpauinfo

        display: :0.0   screen: 0
        Failed to open VDPAU backend libvdpau_rockchip.so: cannot open shared object file: No such file or directory
        Error creating VDPAU device: 1

It's obvious that vainfo knows it's a rockchip device, so that's a good sign. I'm going to look around and see if I can locate a package with the drivers, but I'm wondering if this is the correct approach.

Has anyone else managed to utilize ffmpeg to access the harware video codecs?




Author: halreed394    Time: 1/10/2026 18:23
Your article was truly enlightening and inspiring, thank you! Thanks to the Updated SCS-C03 test cram test, I reached new career heights¡ªnow, I¡¯m offering it to you for free!
Author: zachpar821    Time: 12 hour before
I deeply appreciate your article, it was truly unforgettable. Free New C_S4CPR_2508 exam duration resources¡ªyour key to climbing the career ladder!




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1