Render transperent shadows in cycles?
I'm not sure what you want, but if I understand correctly, you can make the background image color information remain in the image while still making it completely transparent.

This can be done with the Set alpha node, with an Alpha of 0:



However, in the video you linked to the scene is rendered without any information about the background image at all.

Here is a setup that will do this: