We present an experimental study of the infrared absorption spectra of solid enriched ortho-hydrogen and para-deuterium in th, e ordered state for pressures up to 6 kbar. From our observations we can conclude that the structure of the ordered state remains the Pa3 space group for all pressures studied. We find that the low-frequency optical phonon remains sharp at increased density and we have determined the mode Griineisen constants as y(H2) = 1.95:e0.03 and 7(192)= 1.87J: 0.03. The high-frequency optical phonon remains broad, and develops a double-peaked structure with increasing density, which is explained by anharmonicity and two-phonon decay. Comparison is made to theoretical expressions and numerical results for the absorption due to various microscopic processes involving phonons and combinations of librons and phonons. The integrated absorption intensity is also obtained, and compared with calculations based upon the quadrupole-induced dipole mechanism.