A proof of concept that allows you to embed any ffmpeg command line arguments into a nodejs application. Add additional routing, file uploading and downloading and you can make an interface around ffmpeg on a page. Without being able to see their source code, I suspect websites such as freeconvert take this approach to facilitate some of their services.
The proof of concept relies on one library:
- @ffmpeg-installer/ffmpeg: used to simplify acquiring ffmpeg
The demo data are mp4s of the game Supreme Comamnder: Forged Alliance, maintained by Forged Alliance Forever. Specifically, it is about this pull request. The example works out of the box with any data, as long as:
- They use the same encoding
- They are of the same resolution
The file order.txt defines the order in which the files are concatenated.