hi,
Why is this error fired ? I'm not sure to understand why I should specify the codec on some video and why this error is fired with some other ones.
File "./video.py", line 63, in add_video
final_render.write_videofile(video, fps=30)
File "<decorator-gen-51>", line 2, in write_videofile
File "/usr/lib/python2.7/site-packages/moviepy/decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "<decorator-gen-50>", line 2, in write_videofile
File "/usr/lib/python2.7/site-packages/moviepy/decorators.py", line 137, in use_clip_fps_by_default
return f(clip, *new_a, **new_kw)
File "<decorator-gen-49>", line 2, in write_videofile
File "/usr/lib/python2.7/site-packages/moviepy/decorators.py", line 22, in convert_masks_to_RGB
return f(clip, *a, **k)
File "/usr/lib/python2.7/site-packages/moviepy/video/VideoClip.py", line 288, in write_videofile
raise ValueError("MoviePy couldn't find the codec associated "
ValueError: MoviePy couldn't find the codec associated with the filename. Provide the 'codec' parameter in write_videofile.
Please provide a minimal code that causes the error. For this kind of questions why are not exactly bugs or feature requests, you may get faster answers by posting on stackoverflow or reddit/python.
The question is now on Stackoverflow.
@Swiffers Did you manage to solve this? Should this issue remain open?
Check file extension. Got this error when tried to VideoClip.write_videofile('file.jpg')
Check file extension. Got this error when tried to VideoClip.write_videofile('file.jpg')
Yeah I feel really dumb now, I wasted an hour figuring out what this error actually is :<
Most helpful comment
Check file extension. Got this error when tried to VideoClip.write_videofile('file.jpg')