Firefly开源社区

12
发表新贴

【步骤+问题】编译标准版 libva1.7测试程序失败!编码测试硬件解码

85

积分

0

威望

0

贡献

技术小白

积分
85
发表于 2016-12-22 14:38:48     
isle 发表于 2016-12-22 10:50
下载到板子上编译是可以的,你这个编译linva的没有问题的。但是你们没有libva的driver。所以libva加载不了 ...

十分感谢,因为我安装的是ubuntu16.04的系统, 使用bbs上发布的系统版本:ubuntu_1604_2016_10181213,上面已经有你的测试的例子test_dec.sh  和test_enc.sh.,我想着上面已经有针对rk的libva的driver了,是不是已经有了啊?gstreamer进行测试的时候,可以进行硬件解码的。
并且增加了环境变量export LIBVA_DRIVER_NAME=rockchip
之后运行仍然不行!
如果需要安装rk的libva的driver有网址或者参考资料可以提供一下吗?谢谢
回复

使用道具 举报

936

积分

20

威望

19

贡献

社区版主

Rank: 7Rank: 7Rank: 7

积分
936
发表于 2016-12-23 09:22:39     
如果是官方的固件,libva和driver都已经有了的啊。
rockchip的libva的driver在这里 https://github.com/rockchip-linux/rockchip-va-driver
回复

使用道具 举报

23

积分

0

威望

0

贡献

游客

积分
23
发表于 2017-1-5 20:31:43     
编译:https://github.com/rockchip-linux/rockchip-va-driver
rockchip_driver.h:147:2: error: unknown type name ‘VABufferInfo
有人遇到这个问题吗?
回复

使用道具 举报

76

积分

0

威望

0

贡献

技术小白

积分
76
发表于 2017-3-21 15:52:11     
isle 版主,https://github.com/rockchip-linux/rockchip-va-driver  下载后在rk3288里cmake少了libva库


CMake Error at CMakeLists.txt:15 (message):
  failed to find libva (VA-API Library)
回复

使用道具 举报

76

积分

0

威望

0

贡献

技术小白

积分
76
发表于 2017-3-23 15:24:51     
isle 版主,在ubuntu  16.04固件,在/usr/local/bin/test_dec.sh  用  gsteamer  解码播放1080p ok,硬件调用  /usr/lib/arm-linux-gnueabihf/dri/rockchip_drv_video.so  ;
                用https://github.com/01org/libva-utils  的vainfo demo查看,test  demo测试,va_getDriverName()  返回-1,调用/usr/lib/arm-linux-gnueabihf/dri/rockchip_drv_video.so,但硬解码失败;

这是什么原因了?
root@localhost:/usr/local/bin# ./test_dec.sh
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'rockchip'
libva info: Trying to open /usr/lib/arm-linux-gnueabihf/dri/rockchip_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'pipeline0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)NULL;
Redistribute latency...
init done status 0 dpb_size 20
h264d ctx created
~~ AllocateAsicBuffers, support:3
Width 1920 Height 1088
videoRange 0, matrixCoefficients 2
(ret == H264DEC_HDRS_RDY) decInput.dataLen 720903
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:09.999815165
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
************* freeDpbMem buffer index 17
************* freeDpbMem buffer index 18
************* freeDpbMem buffer index 19
deinit DONE
回复

使用道具 举报

76

积分

0

威望

0

贡献

技术小白

积分
76
发表于 2017-3-23 15:26:18     
这是当时的截图;test_dec.sh硬解ok;libva-utils 测试失败;
Screenshot_2017-03-23_07-11-41.png
回复

使用道具 举报

返回列表
12
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表