V853/V851s 增加 OpenCV, FFmpeg 编译包
-
opencv.tar.gz
ffmpeg.tar.gz
解压放到openwrt/package
文件夹即可 -
好东西
移植需要做哪些工作吗? -
@xiaowenge 参考OpenWRT的文档编写makefile即可
-
@yuzukitsuru
ffmpeg 可以直接用libcedarc 吗? -
@yuzukitsuru 大佬,将opencv已经打包进去,编译生成新镜像后,测试了一下opencv-sample,发现opencv无法打开GC2053的video0节点,然后我外接一个USB摄像头就,修改程序读取的节点可以程序就正常读取video1节点。
下面是读取默认GC2053 video0节点时的报错
root@TinaLinux:/# opencv-camera VIDEOIO ERROR: V4L2: Unable to c[ 702.464977] [VIN_ERR]video0 has already stream off apture video memory.VIDEOIO ERRO[ 702.473357] [VIN_ERR]gc2053_mipi is not used, video0 cannot be close! R: V4L: can't open camera by index 0 /dev/video0 does not support memory mapping Could not open video device.
这个GC2053节点使用camerademo可以正常拍照测试。
当我外接一个usb摄像头,修改代码读取video1节点时,就可正常显示
root@TinaLinux:/# ls /dev/video* /dev/video0 /dev/video1 /dev/video12 root@TinaLinux:/# opencv-camera [ 47.443615] random: crng init done [ 47.447436] random: 2 urandom warning(s) missed due to ratelimiting Successfully opened video device
请问为什么GC2053节点无法被opencv程序读取呢?
-
@YuzukiTsuru 请问要添加python的第三方库编译包,比如matplotlib,也是这样做吗?
-
@yuzukitsuru 还有,python第三方库(比如matplotlib)的编译包,是怎样得到的,交叉编译吗?
-
@lingzhi12321 一样的交叉编译
-
@whycanservice 是像官方教程编译helloworld这样交叉编译吗?识别不了.py文件,报错:file format not recognized; treating as linker script
-
@lingzhi12321 以aiohttp为例,参考下列makefile即可
tina-v853\openwrt\package\feeds\lang\python\python-aiohttp
# # Copyright (C) 2019-2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/) # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=aiohttp PKG_VERSION:=3.7.4 PKG_RELEASE:=1 PYPI_NAME:=$(PKG_NAME) PKG_HASH:=5d84ecc73141d0a0d61ece0742bb7ff5751b0657dab8405f899d3ceb104cc7de PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com> PKG_LICENSE:=Apache-2.0 PKG_LICENSE_FILES:=LICENSE PKG_CPE_ID:=cpe:/a:aio-libs_project:aiohttp include ../pypi.mk include $(INCLUDE_DIR)/package.mk include ../python3-package.mk define Package/python3-aiohttp SECTION:=lang CATEGORY:=Languages SUBMENU:=Python TITLE:=Async http client/server framework (asyncio) URL:=https://github.com/aio-libs/aiohttp DEPENDS:= \ +python3-light \ +python3-attrs \ +python3-chardet \ +python3-multidict \ +python3-async-timeout \ +python3-yarl \ +python3-logging \ +python3-codecs \ +python3-cgi \ +python3-openssl \ +python3-typing-extensions endef define Package/python3-aiohttp/description Asynchronous HTTP client/server framework for asyncio and Python3. endef $(eval $(call Py3Package,python3-aiohttp)) $(eval $(call BuildPackage,python3-aiohttp)) $(eval $(call BuildPackage,python3-aiohttp-src))
请注意如果需要matpltlib需要移植完整的xserver到开发板上,会占用大量内存
-
@whycanservice 仿写了一个Makefile,放tina-v853-open/openwrt/package/feeds/lang/python/scikit-image下了,在make menuconfig里并不能看到。劳烦帮忙看一下,哪里不对是吗?
-
@null037 hello 请问,您解决这个问题了吗。我也碰到了一样的情况
-
@null037
请问问题解决了么? 我和你遇到同样的问题。 -
@yuzukitsuru 大佬 FFmpeg 不包含 FFplay 啊?
-
@null037 在 V853/V851s 增加 OpenCV, FFmpeg 编译包 中说:
@yuzukitsuru 大佬,将opencv已经打包进去,编译生成新镜像后,测试了一下opencv-sample,发现opencv无法打开GC2053的video0节点,然后我外接一个USB摄像头就,修改程序读取的节点可以程序就正常读取video1节点。
下面是读取默认GC2053 video0节点时的报错
root@TinaLinux:/# opencv-camera VIDEOIO ERROR: V4L2: Unable to c[ 702.464977] [VIN_ERR]video0 has already stream off apture video memory.VIDEOIO ERRO[ 702.473357] [VIN_ERR]gc2053_mipi is not used, video0 cannot be close! R: V4L: can't open camera by index 0 /dev/video0 does not support memory mapping Could not open video device.
这个GC2053节点使用camerademo可以正常拍照测试。
当我外接一个usb摄像头,修改代码读取video1节点时,就可正常显示
root@TinaLinux:/# ls /dev/video* /dev/video0 /dev/video1 /dev/video12 root@TinaLinux:/# opencv-camera [ 47.443615] random: crng init done [ 47.447436] random: 2 urandom warning(s) missed due to ratelimiting Successfully opened video device
请问为什么GC2053节点无法被opencv程序读取呢?
@null037
请问问题解决了么? 我和你遇到同样的问题。 -
看到大佬帖子 有人试过吗
https://gloomyghost.com/live/20240121.aspx
成功了请踢我一下 -
@YuzukiTsuru 我无法让它在 V851S 上工作,你所说的 “替换 rootfs” 到底是什么意思?
-
您好,编译包放进去了,重新编译烧写固件后,没有反应是什么问题呀?
-
@yuzukitsuru 如何解决这个问题呢 ?
-
@null037 请帮帮我
-
@yuzukitsuru
请问,这个FFmpeg,是否已经支持了851的硬件编码:我准备用4G网络+ffmpeg+rtsp来推流到服务器 -
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号