Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've figured out how to composite 2 videos using the overlay command, but was wondering if there is also a way to offset or shift the 2nd video in time, so you don't see the overlayed video until after a certain amount of time has elapsed?

share|improve this question
up vote 2 down vote accepted

Yes, use the itsoffset option to offset a particular stream.

See my answer here for specific usage examples: Fix an m4v video that has lagging audio (audio and video out of sync)

You want to supply two input files, offset one with -itsoffset by specifying a (positive) delay value, use the -filter_complex overlay, and then use the -map options to select the proper streams to put it back together.

Note that you cannot use -c copy to copy video streams – you will have to tell FFmpeg to re-encode.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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