2 Star 2 Fork 0

jackyyellow / rkmedia

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

1. 项目简介

本项目用于学习rv1126平台的rkmedia框架,用git进行管理, 为了跟进更新,建议使用git来获取版本

对于windows系统,可按该教程 安装并使用git;对于ubuntu系统,可使用下面指令安装

sudo apt install git

拷贝本仓库:

git clone https://gitee.com/jackyyellow/rkmedia.git

更新本仓库

git pull origin/master

PS: 更新前可能需要清空所有修改,更直接的方式就是删除仓库重新克隆(=^=)

切换章节

本项目章节都有一个标签,可以通过下面的命令查看并切换到对应章节

# 查看所有标签
git tag
# 切换到对应章节
git checkout ch1

2. 目录说明

  • build 存放编译的临时文件 不放入git
  • doc 存放相关文档
  • examples 参考demo 获取路径 ${SDK_ROOT}/external/rkmedia/example
  • include 项目相关头文件
  • lib 项目相关库文件
  • src 项目源码
  • output 输出文件存放目录 不放入git
  • partice 小练习,下章揭晓答案
  • toolchain 交叉编译工具链,需要自己创建并下载
  • CMakeLists.txt cmake配置脚本

2.1交叉编译工具链获取方式:

主要有两种获取方式:

1.通过在sdk上面编译buildroot后获取

编译指令:

cd ${SDK_ROOT}       # 进入sdk根目录
./build.sh lunch     # 选择合适的板极配置
./build.sh buildroot # 编译buildroot

编译后toolchain存放目录为:

    ${SDK_ROOT}/buildroot/output/xxxxxxx/host

2.直接使用正点原子rv1126的工具链

网盘链接

工具链位于

05.开发工具/01.交叉编译工具/atk-dlrv1126-toolchain-arm-buildroot-linux-gnueabihf-x86_64-20221205-v1.0.1.run

执行完后,会安装在/opt/atk-dlrv1126-toolchain 目录下

toolchain目录结构如下:

cd toolchain && tree . -d -L 1
.
├── arm-buildroot-linux-gnueabihf # sysroot在里面
├── bin
├── etc
├── include
├── lib
├── lib64 -> lib
├── libexec
├── man
├── mkspecs
├── sbin
├── share
├── usr -> .
└── var

3. 编译运行

本项目基于cmake进行构建,因此需要预先安装cmake

sudo apt install cmake

为防止cmake和编译生成的临时文件污染项目,需要在build文件夹下进行配置和编译

cd build
cmake ..
make -j12

生成的文件在install文件夹下,将其放入板端即可运行

# adb连接的使用下面命令部署
adb push install /root/
# ssh连接的使用下面命令部署  ip根据需要自行修改
scp -r install 192.168.20.123:/root/

其本质是rkmedia_vi_venc_rtsp,但改名为main,运行指令为

./main -w 1920 -h 1080 -a /etc/iqfiles

4. 文档目录索引

01-cmake构建项目.md
02-rkmedia简介.md

Copyright <2024> <COPYRIGHT jackyyellow> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

用于学习瑞星微rv1126的rkmedia框架 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C
1
https://gitee.com/jackyyellow/rkmedia.git
git@gitee.com:jackyyellow/rkmedia.git
jackyyellow
rkmedia
rkmedia
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891