As a side-effect we can now actually store the line offset in the line21dec element, and have to perform fewer transformations in the decklink elements (which were also buggy as they assumed a single byte triplet per meta).
This is the inverse of ccextractor: it takes a video and closed caption stream and places the closed caption metas on the video output buffers.