0.0.9 • Published 2 months ago

video-thumbnailer v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Video Thumbnailer

GitHub license npm npm downloads total npm downloads GitHub watchers GitHub stars GitHub forks open bugs total open issues GitHub pull requests

Get thumbnails from video files (mp4) in a browser using ffmpeg via wasm

npm install video-thumbnailer

Getting started

You can find full example in example/src/routes/+page.svelte built with SvelteKit

import { VideoThumbnailer } from "video-thumbnailer";

await thumbnailer.load();
// or you can select a File from the browser
const urlOrFile =
  "https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4";

// contains a Blob that can be directly set to img.src
const { blob, metadata } = await thumbnailer.getThumbnail(urlOrFile);

Demo

To run the demo:

cd example
npm run dev
# navigate to http://localhost:5173

Demo (GIF) 👇 Demo

Development

To build the library:

cd video-thumbnailer
npm run build

License

MIT

Copyright © 2023 Eugene Hauptmann

0.0.9

2 months ago

0.0.8

2 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago