https://github.com/alfg/ffmpeg-webassembly-example
FFmpeg + WebAssembly
https://github.com/alfg/ffmpeg-webassembly-example
cpp emscripten ffmpeg libav wasm webassembly
Last synced: 12 months ago
JSON representation
FFmpeg + WebAssembly
- Host: GitHub
- URL: https://github.com/alfg/ffmpeg-webassembly-example
- Owner: alfg
- License: mit
- Created: 2021-05-15T03:36:01.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-20T03:08:03.000Z (almost 5 years ago)
- Last Synced: 2025-03-22T17:01:45.254Z (about 1 year ago)
- Topics: cpp, emscripten, ffmpeg, libav, wasm, webassembly
- Language: Dockerfile
- Homepage: https://dev.to/alfg/ffmpeg-webassembly-2cbl
- Size: 8.68 MB
- Stars: 23
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FFmpeg WebAssembly Example
A minimal example of building FFmpeg's `libav` to WebAssembly via [Emscripten](https://emscripten.org/) using Docker.
https://dev.to/alfg/ffmpeg-webassembly-2cbl
## Usage
Build the WebAssembly files using Docker and copy the output to `www/`:
```
docker-compose run mp4info make
cp -a dist/. www/
```
Run the server:
```
npm install express
node server.js
```
Load the demo in a browser and select the `tears-of-steel-10s.mp4` file:
http://localhost:8080/www
## License
MIT