Sliding a Video From Right to Left ( The image is below )
Slide the text image across a video - start after 3 seconds end at 30 seconds.
between=(t,3,30)
Start location 1220 (x=1220) with each step of t move left 60px (x=1220-t*60).
Set y axis at 50px (y=50[out])
ffmpeg -i vids/Bhengs-Sari-Sari-Philippine-Home-Store.mp4 -i vids/spin5a.mp4 \ -filter_complex "[0:v][1:v]overlay=enable='between=(t,5,30)':x=20+t*28:y=t*10[out]" \ -map "[out]" -t 30 vids/videoslide.mp4
Trim a clip video from vids/1.mkv - Start at second 0 until second 18
[0:v]trim=start=0:end=18,setpts=PTS-STARTPTS[firstclip];
Starting at second 1 trim a clip from vids/2.mkv
[1:v]trim=start=1,setpts=PTS-STARTPTS[secondclip];
get the tailing (fadeoutsrc) 2 seconds of vids/1.mkv to create a fade
[0:v]trim=start=17:end=19,setpts=PTS-STARTPTS[fadeoutsrc];
Get a beginning (fadeinsrc) clip Starting at second 0 from vids/2.mkv
[1:v]trim=start=0:end=2,setpts=PTS-STARTPTS[fadeinsrc];
Create a fadein from [fadeinsrc]
[fadeinsrc]format=pix_fmts=yuva420p,
fade=t=in:st=0:d=1:alpha=1[fadein];
between=(t,3,30)
Create a fadeout from [fadeoutsrc]
[fadeoutsrc]format=pix_fmts=yuva420p,
fade=t=out:st=0:d=1:alpha=1[fadeout];
Copy fadein and fadeout to a buffer
[fadein]fifo[fadeinfifo];
[fadeout]fifo[fadeoutfifo];
overlay the two buffers
[fadeoutfifo][fadeinfifo]overlay[crossfade];
Take the first-clip, the crossfade and the second-clip
and concat them and call the result [output]
[firstclip][crossfade][secondclip]concat=n=3[output];
Crossfade the audio from first-clip and second-clip and call it [audio]
[0:a][1:a] acrossfade=d=1 [audio]
Now map the video and the audio and save as vids/resultZ1.mp4
-map "[output]" -map "[audio]" -y vids/resultZ1.mp4
ffmpeg -i vids/1.mkv -i vids/2.mkv -an -filter_complex " [0:v]trim=start=0:end=18,setpts=PTS-STARTPTS[firstclip]; [1:v]trim=start=1,setpts=PTS-STARTPTS[secondclip]; [0:v]trim=start=17:end=19,setpts=PTS-STARTPTS[fadeoutsrc]; [1:v]trim=start=0:end=2,setpts=PTS-STARTPTS[fadeinsrc]; [fadeinsrc]format=pix_fmts=yuva420p, fade=t=in:st=0:d=1:alpha=1[fadein]; [fadeoutsrc]format=pix_fmts=yuva420p, fade=t=out:st=0:d=1:alpha=1[fadeout]; [fadein]fifo[fadeinfifo]; [fadeout]fifo[fadeoutfifo]; [fadeoutfifo][fadeinfifo]overlay[crossfade]; [firstclip][crossfade][secondclip]concat=n=3[output]; [0:a][1:a] acrossfade=d=1 [audio] " -map "[output]" -map "[audio]" -y vids/resultZ1.mp4