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
When processing a video containing corrupted segments, the subclipped function (and other methods depending on get_frame) can hang indefinitely without raising an error or timeout. This behavior seems to be caused by the underlying frame_function implementation, which does not handle corrupted frames or set a timeout for frame decoding.
video_path = "path_to_corrupted_video.mp4"
video = VideoFileClip(video_path)
try:
sub_clip = video.subclipped(43, 50)
except Exception as e:
print(f"Error: {e}")
Expected Behavior
Raise an error indicating that the frame cannot be decoded, or
Raise a Timeout error
Actual Behavior
The function hangs indefinitely without raising an error, likely due to the underlying frame decoding stalling when encountering corrupted frames.
Specifications
Python Version: 3.11
MoviePy Version: 2.1.1
Platform Version: Windows10
The text was updated successfully, but these errors were encountered:
When processing a video containing corrupted segments, the
subclipped
function (and other methods depending onget_frame
) can hang indefinitely without raising an error or timeout. This behavior seems to be caused by the underlyingframe_function
implementation, which does not handle corrupted frames or set a timeout for frame decoding.Expected Behavior
Raise an error indicating that the frame cannot be decoded, or
Raise a Timeout error
Actual Behavior
The function hangs indefinitely without raising an error, likely due to the underlying frame decoding stalling when encountering corrupted frames.
Specifications
The text was updated successfully, but these errors were encountered: