Fail gracefully when encountering seeking issues during inference #1711
Labels
bug
Something isn't working
fixed in future release
Fix or feature is merged into develop and will be available in future release.
The random access seeking issue has been longstanding and a major pain point.
We often tell our users to reencode their videos, but this is a pain, increases disk footprint, requires an extra processing step and etc. It's also buried deep in the docs, so most people don't find it. Finally, it's a terrible user experience when you run inference on an entire video (which may take hours!) only to have it crash on the very last frame...
In some cases, the same video file can be seeked on one platform but not another due to OS, ffmpeg and other layers of platform-dependent implementation differences.
See #932 and #945 for an in-depth analysis of the root problem.
Since there doesn't seem to be a very good universal solution, one thing we could do is to add a try/except in the inference block (something like we do in this gist).
(@roomrys: This is a good dataset that when git cloned seems to always throw the
KeyError
. -- @talmo: I can't reproduce on my end :()Other relevant issues/discussions:
KeyError
even after re-encoding #1707The text was updated successfully, but these errors were encountered: