Manual

56
XIX.ABOUTTHEALGORITHMS
NX oers a very wide range of encoding algorithms. To some this may seem daunng. Here’s a short guide on how to
choose whats best for your applicaon:
1 Do I have lots and lots of bandwidth? If you’re running on an enrely unconstrained network like
a campus LAN or local Wi-Fi, Mono or Stereo Linear PCM Mode will oer the highest audio quality
with lowest delay. If you’re hing the public Internet at any point in the link, however, avoid Linear
PCM Mode.
2 Do I require interacvity? If you need to chat back and forth across the link, choose one of our
low-delay algorithms like AAC-ELD or Opus. The deciding factor between these algorithms is digital
bandwidth.
3 Is audio quality the paramount concern? AAC or HE-AAC are the best choices for applicaons that
need excellent audio quality. If delay is also a concern, consider AAC-ELD, which along with Opus,
should be the default choice for radio remote broadcasts. If you are running on an unconstrained
network, Linear PCM or FLAC would be a good choice.
4 Do I need to deliver two unrelated audio signals to the same locaon? AAC, HE-AAC and AAC-LD
oer Dual Mono opons that allow uncorrelated signals (such as dual language broadcasts) to be
combined to a single outgoing stream. Note: It isn’t possible to send one stream to locaon A and
one to locaon B. However, it is possible to send the combined stream to locaons A and B and
have them tap only their respecve channels (although this can be a confusing soluon subject to
operator error).
OPUS
Opus is an audio coding format that is gaining in popularity on the web. It has a good balance between audio quality and
delay over a range of bitrates. It allows interoperaon with web services like WebRTC and apps like Linphone. Its a good
choice for remote broadcasts for most users.
LINEARPCM
This encoder does not compress audio at all. It uses a 48 kHz sampling rate and simply applies small frames of linear
audio to IP packets. This mode is only useful on high bandwidth LAN or managed WAN environments. Mono Mode
requires a network capacity of 768 kb/s, and Stereo Mode requires a network bandwidth over 1.5 Mb/s.
FLAC
This encoder compresses the audio data using a lossless algorithm. This means that the audio extracted from the
decoder is idencal to the audio input to the encoder, with no coding arfacts. FLAC typically removes 30-40% of the
network data compared to Linear PCM, but the actual data rate is variable and is based on the complexity of the coded
audio. Using FLAC over Linear PCM typically results in a slightly higher (5 ms) overall delay.