Run fluent-ffmpeg in browser javascript (client side)

Viewed 1418

In my program I use fluent-ffmpeg to convert a video into streamable HLS format (m3u8). but this is very cpu heavy and I'm wondering if it could be run at client-side in the browser. In this manner I'll be offloading some work from the server. If so, how to install it to be available in html <script> tag? I also tried asking in their github directly but no response so far...

1 Answers

I know what you are looking for, take a look at the ffmpeg.wasm project, with it you will be able to use ffmpeg "on the client side", passing the following code:

<script src="https://unpkg.com/@ffmpeg/ffmpeg@0.10.0/dist/ffmpeg.min.js"></script>
Related