Renradio Broadcast SE-V2.0 — manual

SE (Streaming Engine) runs the same radio as V4.9 without Liquidsoap: ffmpeg decodes, a purpose-built mixer handles transitions and the hourly news, JACK is the audio bus and ffmpeg + ices2 feed Icecast. There is no database: settings live in /opt/renradio/config/renradio.json, the play position in /opt/renradio/data/playorder-state.json.

1. How it works

files → ffmpeg (decode) → mixer (Python) → ring buffer → JACK "renradio" → ffmpeg (capture) → ices2 → Icecast

The mixer renders the programme ahead of time (2 s by default); JACK only copies finished audio. A slow disk or CPU spike shorter than the buffer is inaudible, and changing settings no longer restarts the engine.

ServicePurpose
renradio-jackJACK server, dummy driver (a clock, no sound card)
renradioengine: playlists, transitions, hourly news, schedule, live, fx
renradio-streamffmpeg (JACK capture) → ices2 (or ffmpeg MP3) → Icecast; keeps the connection when the engine restarts
renradio-webthis web interface (port 8787)

2. Control

The top of the dashboard shows what is on air, what comes next, the buffer and the underrun counters. Buttons: Skip (uses the configured transition), Test hourly news now, Rescan library, Restart engine / stream. Commands travel as small files through /opt/renradio/data/control/.

3. Saving settings

Saving validates the values, writes renradio.json, lets the engine check it (--check) and then the running engine picks the change up by itself: transitions, volumes, hourly news, schedule and fx apply immediately without a gap. Only Icecast/encoder changes restart the stream; JACK sample rate/period restart the whole chain. The dashboard verifies that the engine reports the new config_signature and restores the previous file on failure.

4. Transitions

ModeBehaviour
Soft crossfadeOverlap of duration; old track fades out over fade-out, new one in over fade-in (both ≤ duration).
Crossover / overlapSame overlap; short fade-in (max 0.3 s) while the old track fades over the whole overlap.
HardNo overlap: the next track starts on the sample where the previous one ends.

An overlap never exceeds 40 % of a track. Transitions also for hourly news applies the same transition between pips, news, hour jingle and the music after it, except at the end of the news: the hour jingle (or, without a jingle, the music) always starts only after the last words of the news.

5. End silence

Silence at the end of a file (below the threshold, longer than the minimum) is not played: ffmpeg stops decoding at the cue point. Analysis runs in the background with the same cache as V4.9 and now also covers schedule block sources.

6. Hourly news

Order: pips → news → fixed jingle. The end of the news is never mixed away: whatever follows starts only when the news has finished (from SE-V2.0). Pips alignment determines how many seconds before the hour the sequence starts; the engine starts on the exact sample. Music fades out over music fade-out, followed by silence before pips (1 s default). The interrupted track is skipped; afterwards the music continues with the next list item (jingle rhythm included). The Pi needs a correct clock (timedatectl, NTP).

Icecast and players add a few seconds of delay, so listeners hear the pips slightly after the full hour. This was the same in V4.9.

7. Play order

As in V4.9 every list is played completely before a file repeats, also across restarts. The engine now stores the position itself, immediately. The upgrade from V4.9 takes the position from the old log. Files in exclude.txt are never broadcast.

8. Schedule, dj, live

Music/m3u/folder lines are blocks that keep playing day and night until another line starts. dj lines play once (again at every new activation), then the previous block continues. live lines start an http(s) stream at the start time. On schedule line start: switch immediately with the chosen transition (V4.9 cut hard) or let the current track finish. The global live input has priority; while it is on air everything else is paused.

9. Sound processing

Compressor → stereo width → limiter, then a safety clip at 0 dBFS. Settings as in V4.9.

10. Engine and stream

11. Install, update, downgrade

sudo bash install.sh
sudo bash upgrade.sh /path/to/renradio-broadcast-SE-V2.0.zip
sudo bash /opt/renradio/downgrade.sh

The upgrade makes a full backup in /var/backups/renradio/, keeps configuration, media and play positions, and rolls back by itself on failure. Liquidsoap stays installed so a downgrade to V4.9 works at once.

12. Troubleshooting

SymptomLook at
Message "Main list: … no supported audio format"That concerns the folder under Music and jingles. If a schedule line supplies the music it is no problem: the main list only plays when no line is active (SE-V1.3 no longer reports it then).
Underruns or JACK xruns in the panelLook at "last … ago": if they keep rising, raise Engine buffer (4–6 s) and JACK period (4096 or 8192) under Engine and stream, and run tools/diag-system.sh to see CPU and disk. A one-time count after start-up or after a save is not a problem.
After "Save" my settings or schedule are goneSE-V1.2 or newer is required. Read the message at the top of the page after saving: it says what is wrong. If the configuration folder cannot be written: sudo chown -R renradio:renradio /opt/renradio/config && sudo chmod 750 /opt/renradio/config.
Music is in /home/<user> and is not foundThat folder is not readable by the user renradio by default. Put the music in /media/renradio/media/music or run sudo /opt/renradio/tools/media-access.sh /path/to/music --fix.
Dashboard shows no schedule line / buttons do nothingThe dashboard needs JavaScript; refresh with Ctrl+F5. SE-V1.1 or newer is needed for this (SE-V1.0 had a bug here).
No sound while the stream is openWithout a schedule line the engine plays the main list (Media → music folder). If that folder is empty there is nothing to play: set the right folder or add a line under Programming (type m3u/folder). The top panel then shows a warning and the output reads SILENT.
No sound in the streamsystemctl status renradio-jack renradio renradio-stream; /var/log/renradio/stream.log; jack_lsp -c should show renradio:out_1 → renradio-stream:in_1
GlitchesDashboard underruns/xruns; raise the engine buffer; tools/diag-system.sh, tools/stall-monitor.sh 60, tools/analyse.sh
A file is skippedrenradio.log ("cannot decode"); tools/mp3-check.sh, tools/check-media.sh
Test the mixer without JACKpython3 /opt/renradio/tools/selftest.py
Collect everything for supportsudo tools/collect-diagnostics.sh

13. Uninstalling

sudo renradio-uninstall --dry-run        # shows what would happen, changes nothing
sudo renradio-uninstall                  # removes the program; your music stays

The script stops and removes the services, the sudo and logrotate entries and /opt/renradio. First it makes a backup of your configuration, schedule and play positions in /var/backups/renradio/renradio-uninstall-<version>-<date>.tar.gz (readable by root only). Your music and other media in /media/renradio stay. It asks for JA (Dutch for "yes") unless --yes.

OptionEffect
--dry-runonly show what would happen
--no-backupmake no backup
--purgealso remove logs, all backups and the user renradio (no backup is made then)
--delete-mediaalso remove /media/renradio: your music, irreversible
--remove-packagesalso remove ices2, jackd2 and python3-jack-client (ffmpeg and numpy stay)
--remove-icecastalso remove icecast2

Restore your settings after a new installation: sudo tar -xzf <backup> -C /opt/renradio && sudo chown -R renradio:renradio /opt/renradio && sudo systemctl restart renradio.service.