Toybrick

标题: opencv采集的视频没走硬件解码? [打印本页]

作者: fly    时间: 2019-12-17 13:54
标题: opencv采集的视频没走硬件解码?
本帖最后由 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    时间: 2019-12-17 15:16
https://github.com/rockchip-linux/gstreamer-rockchip
研究下这个。
作者: fly    时间: 2019-12-17 21:08
jefferyzhang 发表于 2019-12-17 15:16
https://github.com/rockchip-linux/gstreamer-rockchip
研究下这个。

[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上面没有介绍编译的方法





欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3