We describe an efficient implementation for converting MPEG-2/MPEG-4 Advanced Audio Coding (AAC) encoded data to Dolby Digital AC-3. We describe many techniques to exploit the information in the AAC bitstream to simplify the AC-3 encoder. These techniques can be straightforwardly used in other transcoding schemes between different multimedia standards.