Stream video from ffmpeg and capture with OpenCV

倖福魔咒の 提交于 2019-11-29 02:16:26

hope it's not too late to answer, but I have tried the same thing some time ago, and here is how I did it.

The video-decoding backend for OpenCV is actually ffmpeg, so all its facitilites are available in OpenCV as well. Not all the interface is exposed, and that adds some difficulties, but you can send the rtp stream address to OpenCV.

cap.open("rtp://xxx.xxx.xxx.xxx:1234");

Important: OpenCV is not able to access password-protected rtp streams. To do that, you would need to provide the username and the password, there is no API exposed for it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!