bytedeco/javacv

FFmpegFrameGrabber gets stuck for a long time

Open

#2,083 opened on Aug 11, 2023

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Java (1,583 forks)batch import
help wantedquestion

Repository metrics

Stars
 (6,985 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide