Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running ffmpeg in browser - options?

Tags:

ffmpeg

web

I need t create a web app that will utilize ffmpeg for compositing , converting video sources. I cam across videoConverter.js. https://bgrins.github.io/videoconverter.js/

Does anyone know of any other options? Can I use a C# solution?

like image 625
Bachalo Avatar asked Jan 22 '15 22:01

Bachalo


2 Answers

5 years later, actually you can run ffmpeg inside the browser.

Check out https://github.com/ffmpegwasm/ffmpeg.wasm

"ffmpeg.wasm is a pure Webassembly / Javascript port of FFmpeg. It enables video & audio record, convert and stream right inside browsers."

like image 86
Dumi Jay Avatar answered Oct 13 '22 17:10

Dumi Jay


You are going to have a tough time running something like that directly in the browser - and even if you did it would require a lot of code. I would suggest building a small web application that lives on a server that will take a media file as a parameter along with any configuration options that you want to pass along with it and let ffmpeg do the hard work on the server without having to recreate the wheel then return the modified media file. I've done something similar and it works great and in the end is a very small, lightweight application.

like image 20
Max Worg Avatar answered Oct 13 '22 17:10

Max Worg