Change the background clip after tracking - multiple clips loaded
Whatever you have as background image on the 3D view is just for viewing and work on the scene, but never gets rendered.

The background for rendering is set on diferent places depending on how you are rendering.


On the node editor:





If you're not using nodes: