Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No RTP data #18

Closed
cklxiaocui opened this issue Feb 28, 2019 · 3 comments
Closed

No RTP data #18

cklxiaocui opened this issue Feb 28, 2019 · 3 comments

Comments

@cklxiaocui
Copy link

cklxiaocui commented Feb 28, 2019

你好,我使用master分支的代码,
1.在docker ubuntu16.04中执行以下命令

./recv_video_and_audio_example  rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov/
控制台打印如下:
Start play rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov/
Then put video data into test_video_recv.h264; And put audio data into test_audio_recv.mp3
MediaInfoCheck: 6781888
MyRTP_SetUp TCP: 0
Setup Session audio: MyRtsp: Success
MyRTP_SetUp TCP: 0
Setup Session video: MyRtsp: Success
PLAY Session audio: MyRtsp: Success
PLAY Session video: MyRtsp: Success
recv video data 1: 33 bytes
No RTP data
No RTP data
No RTP data
No RTP data
No RTP data
No RTP data

2.分析
通过wireshark / tcpdump 等抓包,发现rtsp交互流程到Play之后,但是使用VLC可以播放rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov/,通过对比之后,发现rtsp交互流程正确,但是服务器没有向客户端发送rtp数据包,所以 udpsession中的OnNewSource方法没有被触发。请问能帮我测下上边的rtsp地址吗?或者给我一些建议

3. 提一个bug
我发现libjrtp的依赖库jthread没有被正确的连接,编译完之后,libjrtp 生成的rtpconfig.h中,没有#define RTP_SUPPORT_THREAD

#define RTP_SUPPORT_IPV4MULTICAST

**// No support for JThread was enabled**

#define RTP_SUPPORT_SDESPRIV

#define RTP_SUPPORT_PROBATION
@Ansersion
Copy link
Owner

recv_video_and_audio_example使用UDP接收数据,之所以没有收到媒体数据是因为UDP数据无法内网穿透,如果你要用TCP,可以参考#14

@Ansersion
Copy link
Owner

之前测试有些问题,所以我目前是把jthread给禁用了,如果你要用的话,可以在config.XXX最后添加一行
RTP_JTHREAD = ENABLE

@cklxiaocui
Copy link
Author

好的,谢谢。我昨天测试发现,使用自己内网的rtsp源是可以播放的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants