以下のコマンドでできる。スケールのところを変えれば動画サイズも変えることができる。
ffmpeg -r 30 -i input.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" output.mp4
以下のコマンドでできる。スケールのところを変えれば動画サイズも変えることができる。
ffmpeg -r 30 -i input.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" output.mp4