[ffmpeg] Extracting a frame to png, scaling and cropping .
Extrating a frame into image
ffmpeg -i intput.mp4 -ss 00:00:00.000 -vframes 1 output.png
Scaling image
ffmpeg -i intput.png -vf scale=w:h output.png
where, w is width, h is height
Croping image
ffmpeg -i input.png -vf “crop=w:h:x:y” output.png
where, w : width , h height , x and y are the left top coordinates of image