Have you looked for a package on npmjs.com?
use unpkg if you are making a static site.
Well, I would recommend to use https://jsdelivr.com if you want to use npm package in frontend (Make sure they has Front-end support!!)
You can’t convert a video in the browser, you need to do that with server side code.
How about images?