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
"[1:v]sscale=530x680,setsar=1/1[v1];[0:v][v1]overlay=x='if(lte(-w+(t)*100,20),-w+(t)*100,20)':y=20"
-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.