javacv icon indicating copy to clipboard operation
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?

Open wxz1211 opened this issue 1 year ago • 4 comments

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!

wxz1211 avatar May 25 '23 04:05 wxz1211

@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? image

wxz1211 avatar May 25 '23 08:05 wxz1211

Probably not...

saudet avatar May 25 '23 10:05 saudet

Probably not...

Is there any way?

wxz1211 avatar May 26 '23 02:05 wxz1211

Using UDP instead of TCP would give us more control over that...

saudet avatar May 26 '23 02:05 saudet