Background Video is shown in Rendered mode but not when szene is rendered
Try any of these node setups in the compositor:

Movie as background:



Image as background:



Source:
cycles not rendering movie clip used as background