Capture video thumbnail image on file upload

I have a requirement in a project in which when a user uploads a file then a thumbnail of the file to be generated automatically. How can this be achieved using YII 2.0 ?

This can be what your are looking for : Kartik V Fileinput widget