Firefly开源社区

标题: rk3288 视频硬件vpu解码 [打印本页]

作者: x5762210    时间: 2017-3-14 12:02
标题: rk3288 视频硬件vpu解码
哪里有资源?怎么都是android的?

1、rk3288  四路高清1080p解码,保存图片;
2、rk3288  基于ubuntu的1080p解码怎么做?
作者: x5762210    时间: 2017-3-23 16:48
怎么没人回复我呀,ubuntu  16.04  固件有  用gsteamer调用vaapi  硬解码的例子,但不知道用ffmpeg编程怎么调用这接口!!!



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
Freeing pipeline ...
作者: x5762210    时间: 2017-3-23 16:49
test_dec.sh

#!/bin/sh
export DISPLAY=:0.0
export LIBVA_DRIVER_NAME=rockchip

# gst-launch-1.0  filesrc location=/usr/local/test.mp4 ! \
# qtdemux ! vaapidecode ! video/x-raw,format=NV12 ! videoconvert ! xvimagesink

gst-launch-1.0  filesrc location=/usr/local/test.mp4 ! \
qtdemux ! vaapidecode ! vaapisink

# --gst-debug=vaapi:9
作者: 黄同学    时间: 2017-12-25 15:31
大哥!解决了吗?解决了把解决方案说一下好吗?
作者: suchb    时间: 2018-1-2 22:14
x5762210 发表于 2017-3-23 16:48
怎么没人回复我呀,ubuntu  16.04  固件有  用gsteamer调用vaapi  硬解码的例子,但不知道用ffmpeg编程怎么 ...

兄弟 你这例子哪里找的
作者: suchb    时间: 2018-1-2 22:14
x5762210 发表于 2017-3-23 16:48
怎么没人回复我呀,ubuntu  16.04  固件有  用gsteamer调用vaapi  硬解码的例子,但不知道用ffmpeg编程怎么 ...

你这例子从哪里找的
作者: andy9100    时间: 2018-4-12 11:21
楼主你好,请问你用的哪个镜像测试的,我测试gstream cpu占用100%
作者: andy9100    时间: 2018-4-12 11:22
你gstreamer版本多少?




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1