Fnr
Fnr

Reputation: 2274

Run fluent-ffmpeg in browser javascript (client side)

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...

Upvotes: 2

Views: 5715

Answers (1)

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/[email protected]/dist/ffmpeg.min.js"></script>

Upvotes: 10

Related Questions