庐山派 局域网内rtsp推流失败

Viewed 59

问题描述


错误 :局域网内rtsp推流失败
硬件: 庐山派
系统:k230_linux_sdk commit 63097ef8b49292338b09bd7703ba465aef013ee7
软件:camera_rtsp_demo

复现步骤


编译camera_rtsp_demo
make camera_rtsp_demo

测试测试:./camera_rtsp_demo
此时vlc可以正常看rtsp流
重要log:
"rtsp/aaaa" stream
xx Play this stream using the URL "rtsp://192.168.1.21:8554/rtsp/aaaa"
[video4linux2,v4l2 @ 0x2ab5ed2c30] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device
[video4linux2,v4l2 @ 0x2ab5ed2c30] Time per frame unknown
[video4linux2,v4l2 @ 0x2ab5ed2c30] Stream #0: not enough frames to estimate rate; consider increasing probesize
[h264_v4l2m2m @ 0x2ab5ed5a90] Using device /dev/video0
[h264_v4l2m2m @ 0x2ab5ed5a90] driver 'mvx' on card 'Linlon Video device' in mplane mode
[h264_v4l2m2m @ 0x2ab5ed5a90] requesting formats: output=NV12 capture=H264
[h264_v4l2m2m @ 0x2ab5ed5a90] Failed to set timeperframecamera_capture_frame_thread start
capture POLLERR
xx session_url_map_:rtsp://192.168.1.21:8554/rtsp/aaaa
Play this stream using the URL:rtsp://192.168.1.21:8554/rtsp/aaaa
camera_rtsp_demo started.

修改程序,仅修改rtsp的url,
char url[] = "rtsp://192.168.1.205:8554/rtsp/aaaa"; //205是同网段的主机,前面21是k230主机自己的ip。

通过vlc,无法查看到视频
重要Log :
"rtsp/aaaa" stream
xx Play this stream using the URL "rtsp://192.168.1.205:8554/rtsp/aaaa"
[video4linux2,v4l2 @ 0x2ad8b0ac00] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device
[video4linux2,v4l2 @ 0x2ad8b0ac00] Time per frame unknown
[video4linux2,v4l2 @ 0x2ad8b0ac00] Stream #0: not enough frames to estimate rate; consider increasing probesize
[h264_v4l2m2m @ 0x2ad8b0d820] Using device /dev/video0
[h264_v4l2m2m @ 0x2ad8b0d820] driver 'mvx' on card 'Linlon Video device' in mplane mode
[h264_v4l2m2m @ 0x2ad8b0d820] requesting formats: output=NV12 capture=H264
[h264_v4l2m2m @ 0x2ad8b0d820] Failed to set timeperframecamera_capture_frame_thread start
xx session_url_map_:rtsp://192.168.1.205:8554/rtsp/aaaa
Play this stream using the URL:rtsp://192.168.1.205:8554/rtsp/aaaa
camera_rtsp_demo started.

两者都可以通过log等级输出,从输出的内容上看是一样的,内容如下:
cur camera timestamp:495,now time:1756719978405350
cur venc timestamp:495,now time:1756719978417350,venc size:6108,key:1
cur camera timestamp:496,now time:1756719978437974
cur venc timestamp:496,now time:1756719978449662,venc size:6058,key:1
cur camera timestamp:497,now time:1756719978470912
cur venc timestamp:497,now time:1756719978483172,venc size:6351,key:1

硬件板卡


立创·庐山派K230-CanMV

软件版本


k230_linux_sdk :git commit 63097ef8b49292338b09bd7703ba465aef013ee7

其他信息


对比别的开发板推流,205rtsp可以正常看到图相。

1 Answers

你好,需要你协助看一下rtsp的交互数据包信息,可使用wireshark抓取端口号8554的数据流。