Bachalo
Bachalo

Reputation: 7219

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?

Upvotes: 2

Views: 1756

Answers (1)

av501
av501

Reputation: 6729

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.

Upvotes: 4

Related Questions