I have a video clip that I use as a background, then another clip that contains some text, is there a way to make this second clip start playing after x seconds?

background: 00:00:00|-------------------|00:00:05
foreground: 00:00:02|         >---------|00:00:05
                              ^it starts

1 Answer 1


The timestamps of the overlay have to be shifted and overlay filter has to be told to delay start of overlay.

Basic form of command is

ffmpeg -i base -itsoffset X -i overlay -filter_complex "[0][1]overlay=enable='gt(t\,X)'" output

Audio processing and encoding will use default parameters.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.