How to resize JPEG using FFMPEG.

<pre lang="bash">
ffmpeg -i TREE.JPG -y -vf scale=iw*.2:ih*.2 tree.jpg

Another option is to set resolution.

<pre lang="bash">
ffmpeg -i TREE.JPG -y -vf scale=-1:720 tree.jpg

How to resize video using FFMPEG.

<pre lang="bash">
ffmpeg -i TREE.MP4 -s 640x360 -pix_fmt yuv420p -crf 18 tree.mp4

How to create a thumbnail from a video.

<pre lang="bash">
ffmpeg -ss 00:00:00 -i tree.mp4 -vframes 1 tree.jpg