Video Codec
  

When you start tracking with "Capture to file" checked, a dialog box like the following pops up:

Choosing the Codec

You should select uncompressed video. This gives the highest frame rates for tracking and maximum video quality.