Error when write_videofile with moviepy

在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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章