dukebw / lintel

A Python module to decode video frames directly, using the FFmpeg C API.
Apache License 2.0
261 stars 38 forks source link

Ran out of frames during seek. #38

Open longweiwei opened 4 years ago

longweiwei commented 4 years ago

hi @dukebw when i use lintel to extact frames from video ,it always arise Ran out of frames during seek. What does this message mean and whether an error has occurred! and after reading some video ,the program exited abnormally as follows: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

Pony23333 commented 4 years ago

Met the same issue. And there is another kind of issue: "Ran out of frames. Looping". However, it does not currupt but gives a well performance on dataset UCF-101 (I test it with this). The number of frames I set is 16, which should be OK for UCF-101.


Edit on Jan 10 OK I did several experiments and found when the number of frames exceed the total frames in the video, "Ran out of frames. Looping" will happen, which make sense.

tusharsangam commented 1 year ago

This library is life saver dude, our cluster has a really bad file i/o right now, so I cached the binary videos in memory & used lintel to decompress on the fly, I commented on the print statement "Ran out of frames during seek." in C code that worked suppress the constant the error message. No effect on decompressed videos, verified by plotting. Brought down the training time from 1-2 weeks to 1 day