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替換即可。