i have been working in a video website [platform: php] where i need to upload videos in Amazon S3 server and extract thumbnail. 

I have created a bucket and uploaded video file successfully in that bucket. But i don't know how to extract the thumbnail from that uploaded video. So, that's where i stuck.

Any help will be appreciated. Thanks in advance!