ffmpeg multiple png fade in/out, audio and overlay with filter_complex_script
I have a set of transparent png images, each image having a coresponding wav audio file (the audio files are of different lengths): 1.png, 1.wav, 2.png, 2.wav, etc…
There is also a 10 seconds looping background video, back.mp4.
The video should be as such:
- an image fades-in for 2 seconds
- the image is displayed while playing the coresponding audio
- the image fades-out for 2 seconds
… and so on for all the images/audio files.
Finally, all of this should be overlaid on top of back.mp4, which needs to loop until the end.
I need to achieve this with a filter_complex_script file (that is automatically generated), preferrably putting everything in the file (using movie/amovie instead of command line parameters to ffmpeg). It should be done also without having to calculate the lengths of the audio files.
I am struggling with this for days, and having problems with looping the image. Either the fade doesn’t show, or the concatenation of the image with the audio gets endless.
Is it even possible to achieve?
Read more here: Source link
