bytedeco/javacv

How to grab fast/low quality frames

Open

#1,887 opened on Sep 9, 2022

View on GitHub
 (1 comment) (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 building a local video player and I'm currently trying to create the feature similar to youtube where it shows little preview frames when hovering on the seekbar/slider at the bottom of the screen. However its currently very heavy on the cpu and lags noticeably with higher resolution videos. Is there a way to grab lower quality frames or decrease the resolution or bitrate to make the feature more efficient? (I already tried setVideoOption("preset", "ultrafast"), but it didn't have any noticeable impact.)

Contributor guide