Search code examples
ffmpegcomposite

Composite 2 video(.mov) files using ffmpeg


Novice user of ffmpeg but going thru whatever docs I can find online.

For a current project I will need to composite 2 videos together to create a .flv file.

Does anyone know the commands to do this?


Solution

  • This works for me:

    ffmpeg -i background_file.l -i file_to_overlay.flv -filter_complex overlay=0:0 -acodec aac -strict -2 out.flv
    

    See http://ffmpeg.org/ffmpeg.html#overlay-1 for more details. Also you can add the scaler in the filter chain and scale things appropriately too.

    Do a ffmpeg -filters to see the filters available.