|
【技术讨论】
firefly_rkmedia_demo使用问题
发表于 2021-9-18 11:41:06
浏览:5619
|
回复:3
打印
只看该作者
[复制链接]
楼主
本帖最后由 sp2_hybrid 于 2021-9-18 11:50 编辑
操作按照https://dev.t-firefly.com/thread-104607-1-1.html
首先,在文件buildroot/configs/firefly_rv1126_rv1109_defconfig中添加firefly_rkmedia_demo=y
- BR2_PACKAGE_FIREFLY_RKMEDIA_DEMO=y
- BR2_PACKAGE_ZBAR=y
复制代码 然后使用进行编译
- ./build.sh aio-rv1126-jd4.mk
- ./build.sh
复制代码 完成之后将生成的img文件烧录到rv1126板子上,在服务器上编译firefly_rkmedia_demo,然后放到板子上跑,其中手动将firefly_rkmedia_demo中的librtsp.so等动态库添加到了/usr/lib/目录下。
使用ffrtsp_demo_test 和 rkmedia_rtspget_vdec_venc_rtsp_test进行测试
- ffrtsp_demo_test rtsp://admin:bh123456@192.168.29.247/
- rkmedia_rtspget_vdec_venc_rtsp_test
复制代码 rkmedia_rtspget_vdec_venc_rtsp_test.cc中的url已经正确修改
上面两个可执行文件都会卡在Started playing session. . .
- ......
- [URL:"rtsp://admin:bh123456@192.168.29.247/Streaming/Channels/101/"]: Set up the "video/H264" subsession (client ports 54628-54629)
- [URL:"rtsp://admin:bh123456@192.168.29.247/Streaming/Channels/101/"]: Created a data sink for the "video/H264" subsession
- Sending request: PLAY rtsp://admin:bh123456@192.168.29.247/Streaming/Channels/101/ RTSP/1.0
- CSeq: 5
- Authorization: Digest username="admin", realm="IP Camera(F6112)", nonce="fafc8c7ccc5addbbbd1960afef116af9", uri="rtsp://admin:bh123456@192.168.29.247/Streaming/Channels/101/", response="9b444b4b6c1c226c39be62720e8dda53"
- User-Agent: ffrtspGet (LIVE555 Streaming Media v2017.10.28)
- Session: 1630772209
- Range: npt=0.000-
- Received 207 new bytes of response data.
- Received a complete PLAY response:
- RTSP/1.0 200 OK
- CSeq: 5
- Session: 1630772209
- RTP-Info: url=rtsp://admin:bh123456@192.168.29.247/Streaming/Channels/101/trackID=1;seq=36565;rtptime=3574293780
- Date: Mon, Sep 13 2021 01:26:20 GMT
- [URL:"rtsp://admin:bh123456@192.168.29.247/Streaming/Channels/101/"]: Started playing session...
复制代码 使用netstat命令查看端口使用情况
- [root@RV1126_RV1109:~]# netstat -tuwx
- Active Internet connections (w/o servers)
- Proto Recv-Q Send-Q Local Address Foreign Address State
- tcp 0 0 RV1126_RV1109:ssh DESKTOP-28TMA82:6018 ESTABLISHED
- tcp 0 0 RV1126_RV1109:60276 DEFAULT:554 ESTABLISHED
- netstat: /proc/net/tcp6: No such file or directory
- udp 0 0 RV1126_RV1109:34331 XiaoQiang:domain ESTABLISHED
- udp 0 0 RV1126_RV1109:51434 XiaoQiang:domain ESTABLISHED
复制代码
不知道问题出在哪里,希望能得到解答
|
|