MP3 Audio Encoding

MP3 is a widely supported lossy audio compression format used for music, podcasts, web delivery, and legacy media workflows. It trades audio fidelity for compact file size and broad playback compatibility.

These samples show how to encode uncompressed audio to MP3 with TTranscoder::run, TTranscoder::push and TTranscoder::pull.

  • MP3 Encoder (Run) - Encode uncompressed audio to an MP3 file with TTranscoder::run.

  • MP3 Encoder (Push) - Push uncompressed audio samples into the transcoder to produce MP3 output.

  • MP3 Encoder (Pull) - Pull encoded MP3 samples from the transcoder with TTranscoder::pull and write them to a file.