FFmpeg Combining Adverts

FFmpeg Combining Adverts

I decide to have a little prototyping session and wanted to see how easy it would be to split a movie into multiple sections based on milliseconds and then insert adverts and combine it all back together in one movie.

You can see my progress on GitHub.


To run the code you will need to download a movie to work with and enter its time in seconds where it shows you to.

You can then run.

node index.js

It wasn’t easy to cut and combine movies with FFmpeg certainly not as easy as I first thought it would be.

If anyone has any suggestions or better more reliable ways to do this I would love to hear them.

Leave a comment