简体   繁体   English

如何使用live555流媒体转发

[英]How to use live555 streaming media forwarding

I use Live555 h.264 stream client to query the frame packets from an IP camera, I use ffmpeg to decode the buffer and analysis the frame by OpenCV.(those pipeline are based on testRTSPClient sample, I decode the h.264 frame buffer in DummySink::afterGettingFrame() by ffmpeg) 我使用Live555 h.264流客户端查询来自IP摄像机的帧数据包,我使用ffmpeg解码缓冲区并通过OpenCV分析帧。(那些管道基于testRTSPClient样本,我解码h.264帧缓冲区DummySink :: afterGettingFrame()由ffmpeg提供)

And now I wanna stream the frame to another client(remote client) OnDemand mode in real-time, the frame may added the analysis result(boundingboxs, text, etc), how to use Live555 to achieve this? 而现在我想将帧流式传输到另一个客户端(远程客户端)OnDemand模式实时,框架可能会添加分析结果(boundingboxs,文本等),如何使用Live555来实现这一目标?

Well, your best bet is to re-encode the resultant frame (with bounding boxes etc), and pass this to an RTSPServer process which will allow you to connect to it using an rtsp url, and stream the encoded data to any compatible rtsp client. 好吧,最好的办法是重新编码结果帧(带边界框等),并将其传递给RTSPServer进程,该进程允许您使用rtsp url连接到它,并将编码数据流式传输到任何兼容的rtsp客户端。 There is a good reference on the FAQ for how to do this http://www.live555.com/liveMedia/faq.html#liveInput which walks you through the steps taken, and provides example source code which you can modify for your needs. 关于如何执行此操作的常见问题解答有很好的参考http://www.live555.com/liveMedia/faq.html#liveInput ,它将引导您完成所采取的步骤,并提供可根据需要修改的示例源代码。

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

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