Getting “OSError: [WinError 6] The handle is invalid” in VideoFileClip function

不问归期 提交于 2019-12-01 20:09:56

I solved the issue by running the following commands after reading the video.

video_clip.reader.close()
video_clip.audio.reader.close_proc()

See https://github.com/Zulko/moviepy/issues/73 and https://github.com/Zulko/moviepy/issues/164.

Somehow python.exe was failing and because of that internal function like VideoFileClip was giving error in jupyter-notebook.

Then I closed everything and restarted back and voila, error was gone and it's working fine now.

I ran into same issue and I upgraded my moviepy then used video_clip.close() right after reading the image and it worked like a charm.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!