müngi
müngi

Reputation: 9

overlay and combine ffmpeg at once

Initial situation

Using video1 as "starting", "background" clip. then after second 5 i'd like to overlay video2 on it. Resulting in a 15 seconds clip.

let me explain it more graphically

video1: 111111111111111111
video2:          222222222222222222
result: 111111111333333333222222222

Using the FFmpeg overlay filter like this

ffmpeg -i K00187_KOMIKER_NIAVARANI_MICHAEL_01.mp4 -i alpha_vid.flv \
  -filter_complex "overlay" test.mp4

Of course this just overlays both videos and stops right after video1 has ended.

Upvotes: 0

Views: 1426

Answers (1)

Zombo
Zombo

Reputation: 1

This sounds like a job for -itsoffset

ffmpeg -i K00187_KOMIKER_NIAVARANI_MICHAEL_01.mp4 -itsoffset 10 \
  -i alpha_vid.flv -filter_complex overlay test.mp4

Upvotes: 1

Related Questions