Although the concept of merging the layer does not exist in After Effects like it does in Photoshop, still there are some alternatives that might help you out.
To merge layers in After Effects, follow the steps given below:
- Select the two layers
- Choose to Pre-compose
- Make a new composition that holds these two videos
- Now you can work upon this composition.