Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

rockchip_drv_video.so

46

Credits

1

Prestige

0

Contribution

new registration

Rank: 1

Credits
46

rockchip_drv_video.so

Posted at 5/20/2018 14:32:39      View:4702 | Replies:0        Print      Only Author   [Copy Link] 1#
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?



Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list