ffmpegで動画の1フレーム目の画像を取得

コピペ用にメモ。
動画ファイルの1秒から1フレーム目を取得する

ffmpeg -i input.mp4 -ss 1 -vframes 1 -f image2 output.png