anyc / avcut

Frame-accurate video cutting with only small quality loss
GNU General Public License v2.0
112 stars 13 forks source link

Performance improvment #3

Open benbro opened 8 years ago

benbro commented 8 years ago

When you have a long video, it takes minutes to run, even when the dropped segment is very short.

Is it possible to jump to the timestamp and scan backwards/forward until it finds a keyframe instead of scanning the whole file?

anyc commented 8 years ago

Right now it is difficult as avcut relies on the number of decoded frames as a last resort to match packets and frames in some cases. I had an idea for another approach but this needs more research.