-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
FFmpegFrameGrabber's timeout doesn't work in some cases? #711
Comments
Does the same thing happen on the command line with the ffplay application? |
ffplay works some differently. At start it works exactly as I think I will have to use something like this:
|
Yes it's not a decision. Grabber stayed locked. |
BTW, I'm pretty sure what we need is an interrupt callback, so please give it a try (see #170), and if it works, please make a contribution by sending a pull request! |
I'll try it tomorrow. |
Great, thanks! Be sure to try the |
Great thanks!!!
There is some difference in behaviour after timeout. When network is disabled (before brabber was started) grabber throws exception: "org.bytedeco.javacv.FrameGrabber$Exception: avformat_open_input() error -138: Could not open input...". When connections is lost (after a few grabbed frames) Code for test:
|
Actually I don't know is it timeout or lock.
1. When network is disabled
When network is enabled this code instantly returns message: Did not find a video or audio stream inside "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov.WRONGURL"
When network is disabled
grabber.start();
gets stuck.2. Whe connection is lost
I noticed that FFmpegFrameGrabber's timeout doesn't trigger on connection is lost for one of my cameras.
I tried this code for ubiquiti cam mini:
When I unplug network cable this code gets stuck on
grab()
. But it happens only with ubiquiti cam mini.For this link "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov" code exits after about 10 seconds after cable unplugging.
The cause may be warnings which I get during connection to ubiquiti cam mini:
This warning doesn't take effect on video and audio grabbing from camera. I see video with audio in a good quality.
The text was updated successfully, but these errors were encountered: