A closed captioning configuration system is described. The system receives
parameters of a digital video presentation and computes closed captioning
parameters to drive a closed captions encoder, creating closed captions
which are compatible with the presentation. In various implementations,
the configuration system may be integrated into a video encoder, a closed
captions encoder, or both. The configuration system, through analysis of
the presentation parameters, can drive captioning for presentations which
may differ by frame rate, interlacing, or frame encoding mode, and
account for repetition of fields or frames.