bgrins / videoconverter.js

[UNMAINTAINED] Convert videos in your browser
http://bgrins.github.io/videoconverter.js/
Other
2.34k stars 300 forks source link

How to use complex filters to add an image overlaying a video. #52

Open Quentinnod opened 7 years ago

Quentinnod commented 7 years ago

Hi,

Thanks for this very helpful library.

I would like to add overlaying images to a video. I know which command can do that but I can't execute it with videoconverter.js. How can I include this functionality in the library, I've never used emscripten and I would like to know what are the steps to do such a thing.

This is my command: ffmpeg -i input.mp4 -i img1.png -i img2.png -filter_complex overlay=0:0:enable='between(t,0,10)' overlay=0:0:enable='between(t,5,20)' -pix_fmt tuv420p -c:a copy out.mp4

Thanks a lot for your help.

Quentin