Skip to content

FFmpeg for browser and node, powered by WebAssembly

License

Notifications You must be signed in to change notification settings

xcxzxx/ffmpeg.wasm

 
 

Repository files navigation

Please visit Kagami/ffmpeg.js if you are looking for ffmpeg.js

ffmpeg.wasm

ffmpeg.wasm

Node Version Actions Status npm (tag) Maintenance License: MIT Code Style Downloads Total Downloads Month

Use FFmpeg directly in your browser without any backend services!!

Transcode

transcode-demo

codepen

Source Code

Browsers support

Chrome
Chrome
last 2 versions

Examples:

Name Demo Source Code
Webcam codepen Link

Supported Formats

  • mp4 (x264)
  • webm (vp8/vp9) (^0.8.0)
  • mp3 (^0.8.0)

ffmpeg.wasm provides simple to use APIs, to transcode a video you only need few lines of code:

const fs = require('fs');
const { createFFmpeg } = require('@ffmpeg/ffmpeg');

const ffmpeg =