

It would be interesting to build a benchmark to compare performance of such a large application across different browsers, node.js, and native performance. It is quite likely to bump up against performance bottlenecks - I wrote about some of the issues we bumped into if you are interested in more information.Īlso, it may be possible to make this run on node, and distribute this as an npm module, to make setting up video conversions on a server or desktop much easier. Obviously, this could be expanded and optimized.

This is what we are doing in the browser with. Pontential Uses Audio / Video Editing and Conversion We haven't yet thoroughly tested the performance - use it at your own risk. It is quite a large JavaScript file, and it will take a long time to load and evaluate. The default build in this project is LGPL 2.1, but including different codecs or build parameters when building it yourself can change this. It ends up being around 6.9 MB gzipped.įeel free to use this program, but keep in mind the following things:įFmpeg has license terms that you must abide by. The ffmpeg-all-codecs.js file is around 27.5 MB or so. The ffmpeg.js file is around 24.1 MB or so. Most of the grunt work has been done by and Big is the JavaScript File? Why would you compile FFmpeg into JavaScript? We were curious if it would work, and it seemed like a fun project. Here is a video demonstrating the sample application we made with this library over the weekend: Luckily, there is a project called Emscripten, which is an LLVM to JavaScript compiler, so we were able to compile FFmpeg into JavaScript. But, FFmpeg is not written in JavaScript. This is a huge task, and we knew that existing libraries like FFmpeg would do a great job. The idea for the application was to try and convert any video file into another video format, while allowing filters to be applied to the video – all inside of the browser, without uploading anything. Videoconverter.js was originally conceived and implemented for a project in Node Knockout 2013 called Video Funhouse.

View a Demonstration View a Sample Application

Videoconverter.js is a program that lets you process videos in your browser.
