bytedeco/javacv

Is there a way to synchronize grabber to the latest frame, like some features in video players.

Open

#1,575 opened on Jan 25, 2021

View on GitHub
 (10 comments) (0 reactions) (0 assignees)Java (1,583 forks)batch import
enhancementhelp wanted

Repository metrics

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

Description

When I use FFmpegFrameGrabber to extract an image from a RTSP url every 2 seconds, the actual FrameRate is sometimes lower than 25(grabber.getVideoFrameRate ()) due to network reasons。 After a period of time, I found that the time of the video in the picture will lag behind the current time, and continue to lag behind. Is there a way to synchronize grabber to the latest frame, like some features in VideoPlayers.

Contributor guide