
Term::ttyrec::plus is a module that lets you read ttyrec files. the related module, term::ttyrec is designed more for simple interactions.
term::ttyrec::plus gives you more information and, using a callback, lets you munge the data block and timestamp. it will do all the subtle work of making sure timing is kept consistent, and of rebuilding each frame header.