ffmpeg合成视频出错
2021-09-23 本文已影响0人
lihao_李浩
问题描述
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
对169*300大小的图片进行批量合成视频时出现以上错误。
具体错误
原因
是因为图像的宽为169,不能被2整除,所以导致合成视频失败。
解决
重新调整图片大小为偶数即可