Reputation: 189
I have two mov files with a transparent background, say content1.mov and content2.mov. The movie files have the same size and length. I would like to use ffmpeg to create a movie which overlays the two movie files and uses some JPG, say background.jpg as the movie background. Can this be done in ffmpeg?
Upvotes: 0
Views: 582
Reputation: 134303
Use the overlay filter:
ffmpeg -loop 1 -i image.jpg -i content1.mov -i content2.mov -filter_complex "[0][1]overlay=format=auto:shortest=1[bg];[bg][2]overlay=format=auto" output
Upvotes: 1