Toybrick

opencv采集的视频没走硬件解码?

fly

注册会员

积分
70
楼主
发表于 2019-12-17 13:54:46    查看: 6414|回复: 2 | [复制链接]    打印 | 只看该作者
本帖最后由 fly 于 2019-12-17 13:59 编辑

翻了几个帖子,关于硬件解码的比较少。
代码也是这个代码
import cv2
print(cv2.__version__)
cap = cv2.VideoCapture("rtsp://192.168.10.113:554/ch1/main/av_stream")ret, frame = cap.read()
while ret:
    ret, frame = cap.read()
    if not ret:
        continue
cv2.imshow("frame0",frame)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break
cv2.destroyAllWindows()

echo 0x0100 > /sys/module/rk_vcodec/parameter/debug
来打开硬解码调试信息,看下日志就知道有没有走硬解码
-----》没有打印日志,为什么呢?

帧率非常低现在,应该是cpu解码了。。



回复

使用道具 举报

jefferyzhang

版主

积分
13011
沙发
发表于 2019-12-17 15:16:40 | 只看该作者
回复

使用道具 举报

fly

注册会员

积分
70
板凳
 楼主| 发表于 2019-12-17 21:08:06 | 只看该作者

[root@localhost gstreamer-rockchip-master]# autoconf -i
configure.ac:13: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:16: error: possibly undefined macro: AS_VERSION
configure.ac:19: error: possibly undefined macro: AS_NANO
configure.ac:22: error: possibly undefined macro: AM_CONFIG_HEADER
configure.ac:24: error: possibly undefined macro: AM_MAINTAINER_MODE
configure.ac:46: error: possibly undefined macro: AS_LIBTOOL
configure.ac:55: error: possibly undefined macro: AS_AUTOTOOLS_ALTERNATE
configure.ac:62: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
configure.ac:63: error: possibly undefined macro: AM_GNU_GETTEXT
configure.ac:110: error: possibly undefined macro: AM_PROG_CC_C_O
configure.ac:113: error: possibly undefined macro: AM_PROG_AS
configure.ac:119: error: possibly undefined macro: AM_CONDITIONAL
configure.ac:142: error: possibly undefined macro: AS_GCC_INLINE_ASSEMBLY

感谢回复, 下载下来autoconf的时候,报了很多缺的东西,这个组件编译前有没有需要安装的包列表?我统一下载一下,谢谢。github上面没有介绍编译的方法
回复

使用道具 举报

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

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表