This question already has an answer here:
I'm composting a blender scene into live footage. I have objects interacting with my "ground." what I want to do is set up the ground to render out transparent so that we can't see it in the composite video, but the objects interacting with the ground still need shadows. How can I set this up?