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
The issue seems to come from the ffmpeg info parser assuming the presence of certain metadata fields. Instead of failing, MoviePy should probably try to set some reasonable default value for these fields if they are not critical, to improve compatibility with media files.
Specifications
Tested on a wide variety of OS and Python versions:
Expected Behavior
MoviePy should continue to work with the same videos it did previously, even if those videos aren't fully compliant (e.g. are missing some metadata).
Actual Behavior
The same video crashes on MoviePy 2.0 but works with MoviePy 1.x.
Steps to Reproduce the Problem
See the
corrupt_video.mp4
file from https://github.com/Breakthrough/PySceneDetect/tree/resources/tests/resources and the associated unit test in https://github.com/Breakthrough/PySceneDetect/blob/95d20ddca57bb8cba77354697cc092643bd04afb/tests/test_video_stream.py#L359The issue seems to come from the ffmpeg info parser assuming the presence of certain metadata fields. Instead of failing, MoviePy should probably try to set some reasonable default value for these fields if they are not critical, to improve compatibility with media files.
Specifications
Tested on a wide variety of OS and Python versions:
The text was updated successfully, but these errors were encountered: