# Load Source
Clip1 = AVISource("movie.avi")
Clip2 = AVISource("movie.avi")
# Apply any trim necessary: first value is the starting frame, second value is the ending frame
Clip1 = Clip1.Trim(0,0)
Clip2 = Clip2.Trim(0,0)
Clip_Subtract1 = Clip1
Clip_Subtract2 = Clip2
# Set the number you want the frame count to start from
initial_frame_clip1 = 0
initial_frame_clip2 = initial_frame_clip1
# Stack the output clips and draw subtitles (this is automatic and does not need to be changed)
prefix = "Frame: "
Clip1 = StackVertical(Clip1.BlankClip(color=$000C47).Crop(0,0,0,-(Clip1.Height-56)), Clip1).ShowTime(size=18, text_color=color_white, y=20).ScriptClip("subtitle(prefix + string(current_frame + initial_frame_clip1), size=18, text_color=color_white, align=8, y=28)")
Clip2 = StackVertical(Clip2.BlankClip(color=$470000).Crop(0,0,0,-(Clip2.Height-56)), Clip2).ShowTime(size=18, text_color=color_white, y=20).ScriptClip("subtitle(prefix + string(current_frame + initial_frame_clip2), size=18, text_color=color_white, align=8, y=28)")
StackHorizontal(Clip1, Clip2)
Subtitle("A", align=8, size=48, text_color=color_white, halo_color=color_blue, x=(last.width/2)-35, y=2)
Subtitle("A", align=8, size=48, text_color=color_white, halo_color=color_blue, x=35, y=2)
Subtitle("B", align=8, size=48, text_color=color_white, halo_color=color_red, x=(last.width/2)+35, y=2)
Subtitle("B", align=8, size=48, text_color=color_white, halo_color=color_red, x=last.width-35, y=2)
# Stack a "subtract" call underneath the existing script.
StackVertical(Last, StackHorizontal(Clip_Subtract1.BlankClip.PointResize(Clip_Subtract1.Width/2, Clip_Subtract1.Height), Subtract(Clip_Subtract1, Clip_Subtract2), Clip_Subtract1.BlankClip.PointResize(Clip_Subtract1.Width/2, Clip_Subtract1.Height)))