javacv
javacv copied to clipboard
what is the method that can make the grabImage() method return null at the expected time in the event of a sudden network outage?
hi, I use FFmpegGrabber to pull the rtsp stream, with parameters timeout and stimeout set to 5 seconds. If the network is connected at the beginning, the program can obtain the decoded video frames And when the network suddenly disconnects while it is already running, is the timeout and stimeout above effective? Because the return value of the grabImage() method is null, but sometimes the running time of this method exceeds one minute before returning null, what is the method that can make the grabImage() method return null at the expected time in the event of a sudden network outage? thx!
@saudet Is this the reason why it takes a long time for grabImage() to return null when the network is down? Sometimes grabImage() waits for more than 10 minutes before returning null?
Probably not...
Probably not...
Is there any way?
Using UDP instead of TCP would give us more control over that...