As already mentioned, Javascript cannot do this.
If you want to create thumbnails for your videos, you need to create a thumbnail server, and then just show the image on the client, like any other image.
My method of choice for this is the ffmpeg decoder. It can handle many file formats and is capable of doing what you want. Therefore, if you have a video called hello.avi , you can do:
ffmpeg -itsoffset -1 -i /path/to/hello.avi -vcodec mjpeg -vframes 1 -an -f rawvideo -s 200x150 /path/to/hello.jpg
You can run this command (correcting paths and measurements ...) using any language on the server side that will be used and create a thumbnail of the video file.
source share