bytedeco/javacv

getLengthInVideoFrames's return value is not accurate frame count

Open

#1,941 opened on Nov 20, 2022

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

Repository metrics

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

Description

Hi, I'm using FFMpegFrameGrabber to a mp4 file , I use getLengthInvideoFrame after start method, and I get 2108 frames, But when I grab every video frames, totally only 2107 frames, the getLengthInvideoFrame returned is not the real frame count, How can I get the accurately frame count beore grab one by one? Thank you

Contributor guide