Toybrick

楼主: hisping

RK3399Pro入门教程(7)RTSP库的使用

 

zerollzeng

注册会员

积分
57
楼主
发表于 2019-9-26 16:32:22 | 显示全部楼层
跑例子的时候失败了,请问一下是什么原因?刚拿到板子还不熟悉
[toybrick@localhost build]$ ./rtsp_ssd
mpi: mpp version: Without VCS info
hal_h264d_api: Assertion vcodec_type & ((0x00000200) | (0x00000001) | (0x00000002)) failed at hal_h264d_init:104
hal_h264d_api: hal_h264d_init hard mode error, value=0
hal_h264d_api: Assertion 0 failed at hal_h264d_init:154
mpp_device: mpp_device_init failed to find device for coding 7 type 0
mpp_rt: NOT found ion allocator
mpp_rt: found drm allocator
Segmentation fault

gdb 看了一下在 mpp_dec = MppDecoderCreate(DECODE_TYPE_H264) 这里崩溃了
回复

使用道具 举报

zerollzeng

注册会员

积分
57
沙发
发表于 2019-9-27 09:03:37 | 显示全部楼层
hisping 发表于 2019-9-27 08:48
已近按照教程安装了mpp库?修改了rtsp地址为你自己的网络摄像头了吗?

嗯,都是按照教程来的
回复

使用道具 举报

zerollzeng

注册会员

积分
57
板凳
发表于 2019-9-29 17:15:25 | 显示全部楼层
更新了1.5的固件,没有报上面的错误了,但是还是取不到流是什么原因?
[toybrick@toybrick build]$ ./rtsp_ssd
mpi: mpp version: Without VCS info
mpp_rt: NOT found ion allocator
mpp_rt: found drm allocator
[2019/09/29 05:13:49] D/: listening rtcp port 31544
[2019/09/29 05:13:49] D/: listening rtp port 31553
[2019/09/29 05:13:49] D/: listening rtcp port 31554
[2019/09/29 05:13:49] D/: curlto rtsp://10.1.36.51/shcheck/pg/01.264 , cli 31543:31553, tcp: 0
[2019/09/29 05:13:49] D/: listening rtp port 31543
[2019/09/29 05:13:49] E/: (checkRet in curl_rtsp.cpp:313): [options:124] check error(7)! rtsp://10.1.36.51/shcheck/pg/01.264,
[2019/09/29 05:13:49] E/: (enable in unit_rtsp_client.cpp:279): rtsp client connect rtsp://10.1.36.51/shcheck/pg/01.264 failed.
[2019/09/29 05:13:49] D/: close curl rtsp://10.1.36.51/shcheck/pg/01.264
[2019/09/29 05:13:49] E/: (checkRet in curl_rtsp.cpp:313): [teardown:206] check error(7)! rtsp://10.1.36.51/shcheck/pg/01.264,
[2019/09/29 05:13:49] D/: destroying curl rtsp ...
[2019/09/29 05:13:49] D/: destroying curl rtsp ... done
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.

试了好几个摄像头都不行,直接取服务器的测试视频流也不行...是不是摄像头必须要在同一个网段?摄像头是大华的摄像头
回复

使用道具 举报

zerollzeng

注册会员

积分
57
地板
发表于 2019-9-29 17:16:12 | 显示全部楼层
如果这个不能用的话用ffmpeg有没有性能上的影响?
回复

使用道具 举报

zerollzeng

注册会员

积分
57
5#
发表于 2019-10-8 10:08:34 | 显示全部楼层
hisping 发表于 2019-9-30 09:15
你有试过使用vlc能播放你的rtsp流吗?

谢谢可以了,用vlc也不能打开,后来发现是路由问题,后来人引以为鉴哈哈
回复

使用道具 举报

zerollzeng

注册会员

积分
57
6#
发表于 2019-10-9 15:51:41 | 显示全部楼层
问一个小问题, rtspclient的回调函数只有两个参数,所以enqueue到mpp队列的时候需要用到mpp_dec的全局变量,如果是多线程的情况下需要为每一个线程都创建一个MppDecoder,那么这个mpp_dec有什么比较好的方式来传递进去呢,如果还用全局变量就显得很麻烦,有相关的例子吗?
回复

使用道具 举报

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

本版积分规则

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


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