Jump to content

Sample Rates: Difference between revisions

From Rivendell Wiki
No edit summary
No edit summary
 
Line 1: Line 1:
For the Rivendell Radio Automation System, the most common and recommended sample rates are:
= Rivendell Audio Sample Rate Recommendations =


44.1 kHz — traditional music/CD workflow
The most common and recommended sample rates for the [https://rivendellaudio.org Rivendell Radio Automation System] are:
48 kHz — broadcast/video standard and generally preferred for modern radio


Rivendell itself supports multiple PCM sample rates, but the important thing is that the entire chain matches:
{| class="wikitable"
! Sample Rate
! Recommended Use
! Notes
|-
| '''44.1 kHz'''
| Traditional music/CD workflow
| Best when the majority of source audio comes from CD rips
|-
| '''48 kHz'''
| Modern broadcast and streaming
| Preferred for FM, streaming, JACK/PipeWire, and modern processing chains
|}


audio interface
Rivendell supports multiple PCM sample rates, but the most important rule is consistency across the entire audio chain.
JACK/PipeWire
Rivendell audio store
GlassCoder & GlassGUI/BUTT/DarkIce/Liquidsoap
Stereo Tool
streaming encoder


The System Sample Rate should be chosen before importing audio and should not be changed later on an active system.
== Keep the Entire Audio Chain Matched ==


Recommended setups
All major components should run at the same sample rate:


Modern FM / streaming station
* Audio Interface
* JACK / PipeWire
* Rivendell Audio Store
* GlassCoder & GlassGUI / BUTT / DarkIce / Liquidsoap
* Stereo Tool
* Streaming Encoder


Use:
<div class="mw-message-box mw-message-box-warning">
'''Important:''' The Rivendell '''System Sample Rate''' should be selected before importing audio and should not be changed later on an active system.
</div>


48 kHz
== Recommended Setups ==
16-bit or 24-bit PCM


Why:
=== Modern FM / Streaming Station ===


Native rate for most broadcast hardware
'''Recommended Format'''
Matches AAC, Opus, and most streaming pipelines
Avoids resampling when using JACK/PipeWire and modern processors
Better interoperability with video/social content


Legacy music library/CD-focused workflow
* '''48 kHz'''
* '''16-bit or 24-bit PCM'''


Use:
'''Why 48 kHz?'''


44.1 kHz
* Native rate for most broadcast hardware
Mainly if your source material is overwhelmingly CD rips
* Matches AAC, Opus, and modern streaming pipelines
* Avoids unnecessary resampling in JACK/PipeWire workflows
* Better compatibility with video and social media content
* Preferred by most modern audio processors


This avoids resampling imported audio, but modern broadcast chains generally benefit more from 48 kHz consistency.
=== Legacy Music Library / CD-Focused Workflow ===


What NOT to use
'''Recommended Format'''


Avoid:
* '''44.1 kHz'''


96 kHz
Best suited when the majority of source material originates from audio CDs.
192 kHz


They dramatically increase:
This minimizes resampling during import, although modern broadcast chains generally benefit more from maintaining 48 kHz consistency end-to-end.


CPU usage
== What NOT To Use ==
JACK/PipeWire overhead
storage
network bandwidth


...with essentially no listener benefit for radio broadcast or streaming.
Avoid using the following sample rates for normal radio operations:


Best practice for Rivendell systems
* '''96 kHz'''
* '''192 kHz'''


A very stable modern chain is:
These dramatically increase:


Rivendell audio store - 48 kHz
* CPU usage
JACK/PipeWire - 48 kHz
* JACK/PipeWire overhead
Stereo Tool - 48 kHz
* Storage requirements
Liquidsoap internal - 48 kHz
* Network bandwidth usage
Streaming encoder - 48 kHz input
Final MP3/AAC stream - 44.1 or 48 kHz


For most setups, keeping everything at 48 kHz end-to-end will minimize:
...while providing essentially no listener benefit for radio broadcast or streaming applications.


xruns
== Best Practices for Rivendell Systems ==
resampler artifacts
 
clock drift
A stable modern Rivendell broadcast chain typically uses:
unnecessary ffmpeg processing
 
{| class="wikitable"
! Component
! Recommended Sample Rate
|-
| Rivendell Audio Store
| '''48 kHz'''
|-
| JACK / PipeWire
| '''48 kHz'''
|-
| Stereo Tool
| '''48 kHz'''
|-
| Liquidsoap Internal Processing
| '''48 kHz'''
|-
| Streaming Encoder Input
| '''48 kHz'''
|-
| Final MP3/AAC Stream
| '''44.1 kHz or 48 kHz'''
|}
 
== Benefits of Keeping Everything at 48 kHz ==
 
For most modern broadcast and streaming systems, maintaining a consistent '''48 kHz''' workflow minimizes:
 
* XRUNs
* Resampler artifacts
* Clock drift
* Unnecessary FFmpeg processing
* CPU overhead
 
This results in a cleaner, more stable, and lower-latency audio chain.

Latest revision as of 16:57, 9 May 2026

Rivendell Audio Sample Rate Recommendations

The most common and recommended sample rates for the Rivendell Radio Automation System are:

Sample Rate Recommended Use Notes
44.1 kHz Traditional music/CD workflow Best when the majority of source audio comes from CD rips
48 kHz Modern broadcast and streaming Preferred for FM, streaming, JACK/PipeWire, and modern processing chains

Rivendell supports multiple PCM sample rates, but the most important rule is consistency across the entire audio chain.

Keep the Entire Audio Chain Matched

All major components should run at the same sample rate:

  • Audio Interface
  • JACK / PipeWire
  • Rivendell Audio Store
  • GlassCoder & GlassGUI / BUTT / DarkIce / Liquidsoap
  • Stereo Tool
  • Streaming Encoder

Important: The Rivendell System Sample Rate should be selected before importing audio and should not be changed later on an active system.

Modern FM / Streaming Station

Recommended Format

  • 48 kHz
  • 16-bit or 24-bit PCM

Why 48 kHz?

  • Native rate for most broadcast hardware
  • Matches AAC, Opus, and modern streaming pipelines
  • Avoids unnecessary resampling in JACK/PipeWire workflows
  • Better compatibility with video and social media content
  • Preferred by most modern audio processors

Legacy Music Library / CD-Focused Workflow

Recommended Format

  • 44.1 kHz

Best suited when the majority of source material originates from audio CDs.

This minimizes resampling during import, although modern broadcast chains generally benefit more from maintaining 48 kHz consistency end-to-end.

What NOT To Use

Avoid using the following sample rates for normal radio operations:

  • 96 kHz
  • 192 kHz

These dramatically increase:

  • CPU usage
  • JACK/PipeWire overhead
  • Storage requirements
  • Network bandwidth usage

...while providing essentially no listener benefit for radio broadcast or streaming applications.

Best Practices for Rivendell Systems

A stable modern Rivendell broadcast chain typically uses:

Component Recommended Sample Rate
Rivendell Audio Store 48 kHz
JACK / PipeWire 48 kHz
Stereo Tool 48 kHz
Liquidsoap Internal Processing 48 kHz
Streaming Encoder Input 48 kHz
Final MP3/AAC Stream 44.1 kHz or 48 kHz

Benefits of Keeping Everything at 48 kHz

For most modern broadcast and streaming systems, maintaining a consistent 48 kHz workflow minimizes:

  • XRUNs
  • Resampler artifacts
  • Clock drift
  • Unnecessary FFmpeg processing
  • CPU overhead

This results in a cleaner, more stable, and lower-latency audio chain.