1.Unable to find a suitable output format for 'strict -2'
strict -2: Invalid argument
2.The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.
以上所有的解决方法
ffmpeg -i old.mp4 -strict -2 -vf scale=640:-1 new.mp4
这里的 -strict -2必须写在 old.mp4文件之后,否则会出错。这里的640:-1表示长度为640像素,宽度和原视频保持一致(-1),如果你想修改成你想要的,把-1替换即可。