简体   繁体   English

通过Java RTP捕获

[英]RTP Capture through java

I was wondering if it would be possible to read rtp packets from a ipaddress:port. 我想知道是否有可能从ipaddress:port读取rtp数据包。 I have all the information as to where the rtp is from. 我拥有有关rtp来源的所有信息。 I could listen to it from wire shark. 我可以从鲨鱼那里听。 What I want to do is capture those RTP packets and write them into file. 我要做的是捕获那些RTP数据包并将其写入文件。

I've been looking at JMF and I think this is the way to go. 我一直在研究JMF,我认为这是要走的路。 I would like to know if anyone has made some sample code to implement this requirement. 我想知道是否有人制作了一些示例代码来实现此要求。

Thanks :) 谢谢 :)

you might want to have a look at my RTP2DASH project. 您可能想看看我的RTP2DASH项目。 JMF is as outdated as it gets - don't use it (even if my advice might be a bit late). JMF已经过时了-不要使用它(即使我的建议可能有点晚)。

The RTP2DASH project reads AAC and H264 RTP packets and re-emits an MPEG-DASH stream but it might be easily adopted to simple write MP4 files (as MPEG-DASH is MP4 based) RTP2DASH项目读取AAC和H264 RTP数据包并重新发出MPEG-DASH流,但是可以很容易地采用它来简单地写入MP4文件(因为MPEG-DASH是基于MP4的)

Good luck! 祝好运! Sebastian 塞巴斯蒂安

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM