How to use ofQTKitGrabber to also record data - numbers and text

quicktime allows the creation of movies that contain more than one track. most of the time that is sound.
but how would i record any type of data (numbers, text) along with every new frame.

this would allow me to later on play the movie and also retrieve the recorded data.