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
I can iter_frames with no issue, but get_frame does not work for large values:
video=mpy.VideoFileClip("vid.mp4")
np_frame0=video.get_frame(324) # errornp_frame0=video.get_frame(323) # oknp_frame0=video.get_frame(324) # ok
The error is SError: MoviePy error: failed to read the first frame of video file /data/deeplabcut_projects/Tail-suspension-Matt Wright-2019-11-09/videos/5475.vglut3.chr2.tst.half.second.stimDLC_resnet50_Tail-suspensionNov9shuffle1_5000_labeled.mp4. That might mean that the file is corrupted. That may also mean that you are using a deprecated version of FFMPEG. On Ubuntu/Debian for instance the version in the repos is deprecated. Please update to a recent version from the website.
Note that I can "rescue" the error by not seeking too far into the future. If I choose 324 in the future I get an error, but 323 is ok, and subsequently I can grab 324.
The text was updated successfully, but these errors were encountered:
Expected Behavior
I can
iter_frames
with no issue, butget_frame
does not work for large values:The error is
SError: MoviePy error: failed to read the first frame of video file /data/deeplabcut_projects/Tail-suspension-Matt Wright-2019-11-09/videos/5475.vglut3.chr2.tst.half.second.stimDLC_resnet50_Tail-suspensionNov9shuffle1_5000_labeled.mp4. That might mean that the file is corrupted. That may also mean that you are using a deprecated version of FFMPEG. On Ubuntu/Debian for instance the version in the repos is deprecated. Please update to a recent version from the website.
Note that I can "rescue" the error by not seeking too far into the future. If I choose 324 in the future I get an error, but 323 is ok, and subsequently I can grab 324.
The text was updated successfully, but these errors were encountered: