Creating Video Transitions

FFmpeg-Documents-Home

Creating image Transitions

Creating Video Transitions

EXAMPLE
EXAMPLE 
ffmpeg -y -loop 1 -t 5 -i vids/001.png -loop 1 -t 5 -i vids/002.png -loop 1 -t 5 -i vids/003.png  -filter_complex " \
    [0:v]split[v01][v02]; \
    [v01]trim=0:4[v0_main]; \
    [v02]trim=4:5[v0_transition]; \
    [v0_transition]setpts=PTS-STARTPTS[v0_transition]; \
    [v0_transition][1:v]overlay=x=0:y=if( lte( (-w+t*1500)\,0)\,-    w+t*1500\, 0)[v1_main]; \
    [v0_main][v1_main]concat=n=3[outv]\
    "   -map "[outv]"   -y vids/trans-out.mp4

Create a Video transition

Add text to a video consisting of a blackscreen only black.mpk existing video. In this case text to one side. example: Notice control over font type, size, and color.
Text may also be scrolled on a video of pure black or any other colored backgrounds .

EXAMPLE
ffmpeg -y  -i vids/new.mp4 -i vids/ZOOM.mp4 -i vids/old.mp4  -filter_complex " \
    [0:v]split[v01][v02]; \
    [v01]trim=0:4[v0_main]; \
    [v02]trim=4:5[v0_transition]; \
    [v0_transition]setpts=PTS-STARTPTS[v0_transition]; \
    [v0_transition][1:v]overlay=x=0:y=if( lte( (-w+t*1500)\,0)\,-    w+t*1500\, 0)[v1_main]; \
    [v0_main][v1_main]concat=n=3[outv]\
    "   -map "[outv]"   -y vids/trans-vid-zoom.mp4