ffmpeg -i input.mp4 -ss 00:00:01.000 -vframes 1 output.png
ffmpeg -ss 00:00:01.00 -i input.mp4 -vf 'scale=320:320:force_original_aspect_ratio=decrease' -vframes 1 output.jpg