Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.