FORUMS: list search recent posts

# Show two videos simultaneously

FAQ   •   VIEW ALL
 Show two videos simultaneously on Jul 30, 2016 at 10:49:49 am

Hi there!

I'm trying to merge two video sequences into one by alternating each sequence every frame.
I have basically the same sequence twice, one is shot in daylight and the other one by night.
Example:
frame 1- video 1 | frame 2 - video 2 | frame 3 - video 1| frame 4 - video 2 ... and so on.

In my head it looks something like this.

I'm not sure how to achieve this effect. Maybe masking one of the two sequences every other frame? Expressions?

Feedback would be very much appreciated.
Cheers. A

 Re: Show two videos simultaneouslyon Jul 30, 2016 at 12:34:46 pm

If you have the layers placed in the timeline on top of each other, you can add this expression to the Opacity of the top layer:
```currTime = Math.round(time/thisComp.frameDuration); if (currTime%2 != 0) {value=0}else{value=100}```
Mike Sevigny

 Re: Show two videos simultaneouslyon Jul 30, 2016 at 2:07:34 pm

Every second frame will be very fast, 5 frames each alternating would be more like it. Adjustable frame count would be something like this:

```freq=5; currTime = Math.round(time/thisComp.frameDuration); if (currTime%(2*freq) <freq) {value=0}else{value=100}```

 Re: Show two videos simultaneouslyon Aug 1, 2016 at 10:57:45 am

Awesome, thanks very much to the both of you!
I will try out these two variations as soon as possible.

Cheers. A