Short answer: Track Matte.
Matte (a shape like the inner part - where you want the footage to show)
Trees (or whatever footage you want to show up in the letters)
Use the matte layer as a track matte for the trees layer.
Parent the Matte to the text color layer and animate them moving.
Animate the trees moving differently.