-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
Description
Cache images from ffmpeg so that ffmpeg does not need to be called each time for every frame.
If you can cache images, then when you grab images, always grab more than 1 in a way so you don't grab any that you already have. The overhead of opening ffmpeg and seeking to the position you want is very high, so it would be better to grab 3-10 frames at a time.
Maybe add something where you could hold a number so that when you press left or right, it will jump that many frames. Then you don't need to wait for it to load so many images.
You could also detect key repeat rates and limit the frame loading, skipping some frames you are pretty sure won't be needed.