bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.42k stars 1.57k forks source link

FFmpegFrameGrabber gets stuck for a long time #2083

Open tank520 opened 11 months ago

tank520 commented 11 months ago

I'm using javacv-platform 1.5.8 to record rtmp stream of ip camera.(multi thread)

I set timeout param: grabber.setOption("rw_timeout", 5 1000_000 + ""); grabber.setOption("stimeout", 10 1000_000 + "");

problem: when rtmp stream is lost or not stable, grabFrame() get stuck for a long time (1 or 2 hours), and i don't know why.