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

网线插拔影响decode中的process解码方法 #50

Open
yuhan159 opened this issue Aug 29, 2024 · 3 comments
Open

网线插拔影响decode中的process解码方法 #50

yuhan159 opened this issue Aug 29, 2024 · 3 comments

Comments

@yuhan159
Copy link

我在盒子(BM1684)上配置了双网卡,当我在运行程序时,拔掉其中的一根网线,发现程序中的数据流转停止了,其中decode.cc中的process方法停止运行了,且日志中没有输出任何错误。
两个网卡的网络都能访问摄像头。

@Yi-sir
Copy link

Yi-sir commented Aug 29, 2024

我们使用hk的摄像头做过测试,拔掉网线再插上,可以重连。重连过程中会打印

IVS_INFO("grabFrame failed! Try to reconnect...");
这部分日志

@yuhan159
Copy link
Author

yuhan159 commented Sep 2, 2024

请问有试过同时插两根网线,然后只拔掉一根吗? 因为我们是插着两根网线,然后拔掉一根。这样做的测试

@Yi-sir
Copy link

Yi-sir commented Sep 3, 2024

之前理解错了,stream里面是看av_read_frame这个接口的返回值来判断是否能重连的。如果这个行为不会导致返回值异常,那可能暂时确实无法正常处理。可以先确认下这个行为会如何影响ffmpeg api

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