-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hello there !!
I was trying to re-implement this project on my windows 10 machine and I follwed the steps to set it up locally now I am facing this error just after
[MoviePy] Writing video clips/clip-0.mp4
Traceback (most recent call last):
File ".\classifier.py", line 192, in <module>
main()
File ".\classifier.py", line 183, in main
trim_merge.cut_moments(input_video, moments_timestamps)
File "D:\rps\retech2.0\MagikMoments\src\trim_merge.py", line 60, in cut_moments
new_clip.write_videofile(f"clips/clip-{clip_count}.mp4") # , audio_codec='aac')
File "<C:\Users\saahi\AppData\Local\Programs\Python\Python36\lib\site-packages\decorator.py:decorator-gen-51>", line 2, in write_videofile
File "C:\Users\saahi\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "<C:\Users\saahi\AppData\Local\Programs\Python\Python36\lib\site-packages\decorator.py:decorator-gen-50>", line 2, in write_videofile
File "C:\Users\saahi\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\decorators.py", line 137, in use_clip_fps_by_default
return f(clip, *new_a, **new_kw)
File "<C:\Users\saahi\AppData\Local\Programs\Python\Python36\lib\site-packages\decorator.py:decorator-gen-49>", line 2, in write_videofile
File "C:\Users\saahi\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\decorators.py", line 22, in convert_masks_to_RGB
return f(clip, *a, **k)
File "C:\Users\saahi\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\video\VideoClip.py", line 327, in write_videofile
progress_bar=progress_bar)
File "C:\Users\saahi\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\video\io\ffmpeg_writer.py", line 213, in ffmpeg_write_video
ffmpeg_params=ffmpeg_params) as writer:
File "C:\Users\saahi\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\video\io\ffmpeg_writer.py", line 127, in __init__
self.proc = sp.Popen(cmd, **popen_params)
File "C:\Users\saahi\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 596, in __init__
_cleanup()
File "C:\Users\saahi\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 205, in _cleanup
res = inst._internal_poll(_deadstate=sys.maxsize)
File "C:\Users\saahi\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 1035, in _internal_poll
if _WaitForSingleObject(self._handle, 0) == _WAIT_OBJECT_0:
OSError: [WinError 6] The handle is invalid
Can you guide me how to resolve this issue and how to set it up on my machine?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels