Need help about ffmpeg for creating and showing thumbnail of a video


I want to create thumbnail from uploaded video in the website using ffmpeg and show the uploaded video from the front end of the site after creating thumbnail.How can i do this? Is it possible to create thumbnail during upload video in the website? Is there anyone can help me explain me this by example?