Below is my code that works perfectly fine but starts the slide transition immediately when the background video starts.

ffmpeg -i background.avi -i IMG005.png -filter_complex
-c:v libx264 output.avi

I want the slide transition to start at a certain time and not immediately.
i.e at 6 seconds. I have tried to set setpts=PTS+6/TB and also tried the enable='between(t,6,10)' but the image appears at 6 seconds and never makes any sliding movement.


The overlay expressions have to be adjusted for the start time.

ffmpeg -i background.avi -i IMG005.png
  -c:v libx264 output.avi

(I've simplified the x expression).

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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