我有以下简单的Python代码:
yellow_output = 'test_videos_output/solidYellowleft.mp4'
clip1 = VideoFileClip("test_videos/solidYellowLeft.mp4")
yellow_clip = clip1.fl_image(process_image)
yellow_clip.write_videofile(yellow_output, audio=False)
“ process_image”函数仅返回您提供的内容(为测试目的而创建)。
在OSX 10.11.6上运行Python 3.5.4,ffmpeg 2.8.6
我得到错误:
OSError: [Errno 32] Broken pipe
MoviePy error: FFMPEG encountered the following error while writing file test_videos_output/solidWwhiteright.mp4:
b"Unrecognized option 'preset'.\nError splitting the argument list: Option not found\n"
视频文件未生成;如何摆脱这个错误;这样我就可以生成MP4文件了吗?
注意:相同的代码可以在Ubuntu 16.04上愉快地运行
参考方案
这里可能提到的相同问题:
https://github.com/Zulko/moviepy/issues/657
请尝试此注释中的以下内容:
https://g