You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the scanning procedure, a video corruption may stop scanning, and it will fall on an Error in the decoding procedure. I expect the scanning process to be more robust, allowing it to ignore such corruptions and continue scanning the remaining frames.
Motivation, pitch
As mentioned in #165, I will repeat my comment here for clarity:
Currently, the VideoDecoder may raise a RuntimeError or other exceptions when decoding videos that are partially corrupted. During the scanning process, it seems to just stop upon encountering the first error.
Ex. In a video containing 10,000 frames with corruption around the 4,000th frame, VideoDecoder._num_frames will only be about 4,000. The last 6,000 frames are discarded and we can not access them through VideoDecoder.
The thing is many real-world videos contain partial corruptions, yet various media players manage to ignore this and play them like there are no errors. Now the implementation of VideoDecoder may not properly align with this approach.
There may be a potential solution. In the scanning process we should somehow get the ``true'' num_frames. And in the decoding process, we can either
ignore a corrupted frame and return a 0 tensor.
or raise an Error, so programmers are to handle it. I prefer this one.
The text was updated successfully, but these errors were encountered:
🚀 The feature
In the scanning procedure, a video corruption may stop scanning, and it will fall on an Error in the decoding procedure. I expect the scanning process to be more robust, allowing it to ignore such corruptions and continue scanning the remaining frames.
Motivation, pitch
As mentioned in #165, I will repeat my comment here for clarity:
Currently, the
VideoDecoder
may raise a RuntimeError or other exceptions when decoding videos that are partially corrupted. During the scanning process, it seems to just stop upon encountering the first error.Ex. In a video containing 10,000 frames with corruption around the 4,000th frame,
VideoDecoder._num_frames
will only be about 4,000. The last 6,000 frames are discarded and we can not access them throughVideoDecoder
.The thing is many real-world videos contain partial corruptions, yet various media players manage to ignore this and play them like there are no errors. Now the implementation of
VideoDecoder
may not properly align with this approach.There may be a potential solution. In the scanning process we should somehow get the ``true'' num_frames. And in the decoding process, we can either
The text was updated successfully, but these errors were encountered: