See https://ottverse.com/thumbnails-screenshots-using-ffmpeg/ for some tips on using frames:v to grab an image from the input file.