Open programmer290399 opened 5 years ago
@programmer290399 That's weird. It did run fine till last time(I tested). Let me test it . . .
thanks @Kogam22 for replying . I think it is something to do with the moviepy package as it has changed and been updated after this project was pushed . Also I searched on the reason behind this error and found some information which may find useful.
trim_merge.py
file (using multiprocessing pool ) so that they all have individual handles but I realized that it is not at all an efficient method I think it is something to do with the moviepy package as it has changed and been updated after this project was pushed .
@programmer290399 I think you are correct there, because I am getting something like this :
Using TensorFlow backend.
Traceback (most recent call last):
File "/home/yahyaa/PycharmProjects/MagikMoments/MagikMoments/src/classifier.py", line 8, in <module>
from MagikMoments.src.trim_merge import CombineClips
File "/home/yahyaa/PycharmProjects/MagikMoments/MagikMoments/src/trim_merge.py", line 6, in <module>
from moviepy.editor import VideoFileClip, concatenate_videoclips
File "/home/yahyaa/PycharmProjects/MagikMoments/venv/lib/python3.6/site-packages/moviepy/editor.py", line 26, in <module>
imageio.plugins.ffmpeg.download()
File "/home/yahyaa/PycharmProjects/MagikMoments/venv/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 40, in download
"imageio.ffmpeg.download() has been deprecated. "
RuntimeError: imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead.'
I too use a virtual env on PyCharm.
Yes That's caused by the update of imageio
I also came across this issue , this can be solved by just running
pip install imageio==2.4.1
on windows
@programmer290399 Any success ? Sorry, I was busy with other work :sweat_smile:
Yes , I used ffmpeg_extract_subclip
instead of subclip
method , which was causing OSError: [WinError 6] The handle is invalid
and the error was resolved .
the problem lies inside the trim_merge.py
file's two functions (viz cut_moments
& combine_clips
) similarly if replace the functions inside
Similarly we can resolve the issue by replacing the concatenate_videoclips
method with its ffmpeg_tools
analog from combine_clips
function too. 🙂
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
Can you guide me how to resolve this issue and how to set it up on my machine?