在udacity项目P3中运行python drive.py model.h5 run1,根据run1中图片生成视频时出现如下错误:
Traceback (most recent call last):
File “…/anaconda3/envs/carnd-term1/lib/python3.5/site-packages/moviepy/video/io/ffmpeg_writer.py”, line 134, in write_frame
self.proc.stdin.write(img_array.tobytes())
BrokenPipeError: [Errno 32] Broken pipe
….
….
OSError: [Errno 32] Broken pipe
MoviePy error: FFMPEG encountered the following error while writing file run1output_video.mp4:
b”Unrecognized option ‘preset’.\nError splitting the argument list: Option not found\n”
解决方法:
在终端运行命令:
conda install -c conda-forge ffmpeg