I did something similar for an IR learning remote control project. It worked at the carrier frequency (say 38 kHz but it could go higher). I used only one timer in the final design of the replay part.
At the begining of a cycle, it loaded, from an array, the count of the carrier pulses it had to deliver for both the mark and the space. The timer ISR triggered at the timer frequency and decremented the current count. At zero it swapped over from a mark to a space. During the space period it counted dead time. At the end of the space the cycle began again loading the data, from the array, for the next cycle. Thus generating the IR signal.
It is published here with all code etc. if you are interested: Arduino IR Learning Remote Control