Francois Tarlier takes a look at the process of preparing a scene for tracking in Blender. He also teases that there may be a script coming that does exactly what is shown in the demonstration.

“until I release my script (if I find time to work on it :/). I have done this tutorial which shows manually what the script does. So you can setup your scene which will recieve the tracking data a fit perfectly”