YuzuKi X 100ask V831s使用的rtsp传输实时预览摄像头数据
-
1.硬件要求
1.YuzukiHD × 100ASK V831s开发板
2.GC2053 MIPI摄像头
3.TF卡
2.编译sample_rtsp
输入
make menuconfig
进入以下目录
输入Y选中 mpp sample rtsp
保存并退出。先清理:
cleanmpp
再编译:
mkmpp
编译完成后,进入下面目录下,可以发现生成了sample_rtsp和sample_rtsp.conf
cd ~/tina-v853/out/v851s-perf1/compile_dir/target/eyesee-mpp-middleware/eyesee-mpp-middleware/sample/sample_rtsp
将生成的这两个文件拷贝到TF卡中备用。
3.下载VLC软件
进入VideoLAN,根据电脑的版本下载对应的版本,并安装。
4.上机试验
注意上电前将TF卡和摄像头连接到开发板上
启动开发板后先连接到WIFI,连接WIFI方式为:YuzuKi X 100ask V831s开发板联网连接完WiFi获取IP后,查看TF分区
df -h
挂载TF分区
mount /dev/mmcblk0p1 /mnt/
进入/mnt目录
修改sample_rtsp.conf文件vim sample_rtsp.conf
修改rtsp_net_type = 3 ,原本是使用网线eth0联网修改为使用WiFi联网。输入:wq保存退出。
执行下面语句,启动rtsp传输
./sample_rtsp -path ./sample_rtsp.conf
复制红色框内的语句rtsp://192.168.137.57:8554/ch1
-
@null037
打开VLC media player软件
打开网络串流
将复制出来的网络URL输入进去
点击播放。
可得到从摄像头上获取的数据。注意:
可以通过修改sample_rtsp.conf文件中红框的内容对推流的视频进行录制。
录制的视频可以使用读卡器在电脑端利用VLC播放。
-
谢谢百问网韦老师高老师,可以开始折腾了。
-
@whycan
Hi,
in which folder should I run cleanmpp and mkmpp to get the sample_rtsp and sample_rtsp.conf files.
I'm trying to do this but getting rejected:
bash: cleanmpp: command not found
bash: mkmpp: command not found -
@sergpenshin SDK is updated, and this command is deprecated. try to use this stand alone package for build https://github.com/YuzukiHD/Yuzukilizard/tree/master/Software/sunxi-mpp
Copyright © 2023 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号