Templates

Before and after video from two of your clips

Drop in the before and the after. Get one video that wipes from one to the other. Free.

The shoreline at sunset as it came out of the model, wiped right to left into the same shot graded teal and orange
Wipe. A clean edge sweeps the after in from the right.FFmpeg node

Before

After

Each up to 25 MB. The sound comes from the after clip.

Look

Free. It lands in your chat.

Everything on this page was made on Treza. See pricing

The same transitions on other footage

Each one is the FFmpeg node's own output, from the same command the button sends.

A car in neon rain at night, wiped into the same shot with the Vintage film look

A night drive, graded

The raw shot, then the grade wipes in.

FFmpeg node
A living room in soft light, pushed aside by the same room with the Golden hour look

A room in warmer light

The after slides the before away.

FFmpeg node
A model in a long grey coat, dissolving into the same shot in black and white with the Noir look

Colour to noir

One shot fading into its black and white twin.

FFmpeg node

How it works

  1. 01

    Drop in two clips

    The before in one box, the after in the other.

  2. 02

    Pick a transition

    Wipe, slide or dissolve.

  3. 03

    Get one video back

    It lands in your chat as an MP4, free.

What the button sends

Each transition is one FFmpeg filter graph run by Treza's FFmpeg node on your two clips: both brought to 30 fps in the before clip's frame, two seconds of the before, then the after with its sound.

Wipe
[0:v]setpts=PTS-STARTPTS,fps=30,scale='if(gte(iw,ih),1920,1080)':'if(gte(iw,ih),1080,1920)':force_original_aspect_ratio=decrease:force_divisible_by=2,pad='if(gte(iw,ih),1920,1080)':'if(gte(iw,ih),1080,1920)':(ow-iw)/2:(oh-ih)/2:color=black,setsar=1,split=2[a][r0];[r0]trim=end_frame=1,tpad=stop_duration=60:stop_mode=clone[r];[1:v]setpts=PTS-STARTPTS,fps=30[b0];[b0][r]scale2ref=force_original_aspect_ratio=decrease:force_divisible_by=2[b1][r1];[b1]pad='if(eq(iw,1920)+eq(ih,1080),1920,1080)':'if(eq(iw,1920)+eq(ih,1080),1080,1920)':(ow-iw)/2:(oh-ih)/2:color=black[b2];[b2][r1]scale2ref[b3][r2];[r2]nullsink;[b3]setsar=1[b];[a]tpad=stop_mode=clone:stop_duration=3,trim=duration=3[a1];[a1][b]xfade=transition=wipeleft:duration=1:offset=2

Sound: -af "adelay=2000:all=1"

Slide
[0:v]setpts=PTS-STARTPTS,fps=30,scale='if(gte(iw,ih),1920,1080)':'if(gte(iw,ih),1080,1920)':force_original_aspect_ratio=decrease:force_divisible_by=2,pad='if(gte(iw,ih),1920,1080)':'if(gte(iw,ih),1080,1920)':(ow-iw)/2:(oh-ih)/2:color=black,setsar=1,split=2[a][r0];[r0]trim=end_frame=1,tpad=stop_duration=60:stop_mode=clone[r];[1:v]setpts=PTS-STARTPTS,fps=30[b0];[b0][r]scale2ref=force_original_aspect_ratio=decrease:force_divisible_by=2[b1][r1];[b1]pad='if(eq(iw,1920)+eq(ih,1080),1920,1080)':'if(eq(iw,1920)+eq(ih,1080),1080,1920)':(ow-iw)/2:(oh-ih)/2:color=black[b2];[b2][r1]scale2ref[b3][r2];[r2]nullsink;[b3]setsar=1[b];[a]tpad=stop_mode=clone:stop_duration=3,trim=duration=3[a1];[a1][b]xfade=transition=slideleft:duration=1:offset=2

Sound: -af "adelay=2000:all=1"

Dissolve
[0:v]setpts=PTS-STARTPTS,fps=30,scale='if(gte(iw,ih),1920,1080)':'if(gte(iw,ih),1080,1920)':force_original_aspect_ratio=decrease:force_divisible_by=2,pad='if(gte(iw,ih),1920,1080)':'if(gte(iw,ih),1080,1920)':(ow-iw)/2:(oh-ih)/2:color=black,setsar=1,split=2[a][r0];[r0]trim=end_frame=1,tpad=stop_duration=60:stop_mode=clone[r];[1:v]setpts=PTS-STARTPTS,fps=30[b0];[b0][r]scale2ref=force_original_aspect_ratio=decrease:force_divisible_by=2[b1][r1];[b1]pad='if(eq(iw,1920)+eq(ih,1080),1920,1080)':'if(eq(iw,1920)+eq(ih,1080),1080,1920)':(ow-iw)/2:(oh-ih)/2:color=black[b2];[b2][r1]scale2ref[b3][r2];[r2]nullsink;[b3]setsar=1[b];[a]tpad=stop_mode=clone:stop_duration=3,trim=duration=3[a1];[a1][b]xfade=transition=fade:duration=1:offset=2

Sound: -af "adelay=2000:all=1"

For a video the chain goes into -i {input} -i {input2} -filter_complex "<chain>,format=yuv420p[v]" -map "[v]" -map "1:a?" -c:v libx264 -crf 20 -preset medium -af "adelay=2000:all=1" -c:a aac -b:a 192k -shortest -movflags +faststart {output}, with {input} the before clip and {input2} the after. The sound is the after clip's, from the moment it comes in.

Before and after video, answered

Is the before and after video free?

Yes. It runs on Treza's FFmpeg node, which is free: an account with no credits can run it ten times a day.

How long is the result?

Two seconds of the before clip, a one second transition, then the after clip to its end, up to a minute. A before clip shorter than three seconds holds its last frame.

Can the two clips be different shots?

Yes. A room before and after a renovation, a progress check, a photo retouch: any two clips work. Shoot both from the same spot and the change reads best.

What happens to the sound?

The after clip's sound plays from the moment it comes in, and the before clip is silent. If the after clip has no sound, the result is silent.

Does it work with vertical phone clips?

Yes. A vertical before clip gives a 1080x1920 video, and a wide one gives 1920x1080. The after clip is fitted inside that frame, never stretched.

What formats can I upload?

MP4, MOV, WebM and the usual phone formats. Keep each file under 25 MB here; longer footage can be uploaded in chat directly.