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

How should I set a timeout for RTSP? #1701

Open
weiaiweiai opened this issue Sep 11, 2024 · 0 comments
Open

How should I set a timeout for RTSP? #1701

weiaiweiai opened this issue Sep 11, 2024 · 0 comments

Comments

@weiaiweiai
Copy link

Summary of your issue

How should I set a timeout for RTSP?

I am using NUGET to retrieve OpenCvSharp4. Attempt to obtain every frame of RTSP images and send them out using SOCKET
But when I use it, I find that if the IP cannot connect, VideoCapture. Open will take a long time to execute. I need to set it shorter. How should I proceed?

Below is the original Chinese text

我正在使用NUGET 获取的OpenCvSharp4。尝试获取rtsp的每一帧图片并用SOCKET发送出去.
但是在我使用的时候发现,如果IP无法连接,VideoCapture.Open 就会执行很长的时间,我需要将其设置短一些,我应该如何操作?

Environment

.net Framework4.6.2
OpenCvSharp4 4.10.0.2024.0616

notes

I really hope someone can help me solve the problem, even if it's for a fee

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

1 participant