Open kehuanfeng opened 3 months ago
BTW, I can use ffmpeg to cut the sample video file successfully,
ffmpeg -i file_example_MP4_480_1_5MG.mp4 -ss 10 -t 5 new_example.mp4
It seems that OpenCV is failing to open that video. You can try using a different backend like PyAV:
scenedetect -i file_example_MP4_480_1_5MG.mp4 -b pyav split-video
Can you try that and/or MoviePy and let me know if that works for you?
Description:
Failed to open video with opencv: Ensure file is valid video and system dependencies are up to date.
Command:
Output:
Environment:
Media: https://file-examples.com/wp-content/storage/2017/04/file_example_MP4_480_1_5MG.mp4