renradio-broadcast4Windows 4Windows-V1.2 - manual

The same radio automation as on the Raspberry Pi (Renradio SE), now for Windows 10/11 64-bit. Plays files without a database; control and settings through a web interface; transitions (soft crossfade, crossover/overlap, hard), end-silence detection, jingles, hourly news with pips, schedule by day and time, dj recordings, live input, compressor/limiter. All settings live in config\renradio.json.

1. How it works

files -> ffmpeg (decode) -> mixer (Python) -> ffmpeg (encode: MP3 or Ogg) -> Icecast -> listeners

JACK and ices2 do not exist in a usable form on Windows, so the mixer feeds its audio in real time straight into ffmpeg, which streams to Icecast. The mixer renders ahead (3 seconds by default), so a slow disk or CPU spike shorter than the buffer is inaudible. Settings are picked up by the running engine without a restart.

PartJob
supervisorstarts and watches the other parts and restarts them on failure (the Windows counterpart of systemd)
engineplaylists, transitions, hourly news, schedule, ffmpeg encoder to Icecast
webthe dashboard on port 8787
icecastthe stream server (only if you chose Icecast on this computer)

2. Installing

Unzip the package (for instance on the desktop) and double-click install.bat. Windows asks for administrator rights. The script:

  1. checks that Windows is 64-bit;
  2. checks Python 3.9+ and installs it when missing (winget, otherwise from python.org);
  3. checks ffmpeg (with MP3 encoder) and downloads it into bin\ when missing;
  4. asks where Icecast runs: on this computer (downloaded and installed when missing) or on another server;
  5. creates a Python environment with numpy, copies the program and writes the configuration;
  6. asks whether the Windows firewall may be configured (rules per program and for ports 8787 and 8000, so Windows shows no security message) and whether Renradio should start automatically when Windows starts;
  7. finally asks whether to start Renradio now and then opens the dashboard.

Every question in the installer window is shown on a yellow line, with an explanation and what to type below it (ENTER = default answer). Icecast is downloaded from downloads.xiph.org (version 2.5.0, 64-bit). Default folder: C:\renradio-broadcast4Windows. Internet access is needed for missing parts. The installation log is %TEMP%\renradio-install.log.

3. Start, stop, dashboard

File in the installation folderPurpose
start-renradio.batstarts Renradio (hidden, in the background) and opens the dashboard
stop-renradio.batstops everything cleanly
status-renradio.batdiagnosis: what runs, is there sound, are ffmpeg and Icecast fine (--zip makes a zip without passwords to send for support)

The dashboard: http://localhost:8787/, from another computer http://<IP-of-this-pc>:8787/. The top shows what is on air, the buffer, the output level and the log; it also has the buttons Skip, Test hourly news now, Rescan library and Restart engine/stream.

4. Music and schedule

Put music in media\music or choose another folder with Browse…. What you choose is never copied: a small link (name.renlink, a text file holding the path to the real file or folder) is created in the media folder. This works without administrator rights, across drives and to network paths (\\server\share). If you choose several files at once, a playlist (.m3u) with the real paths is created. To remove a link, delete that .renlink file; your music itself is untouched. If you move or rename the original folder the link stops working: choose the folder again. Under Programming you add time lines (daily, weekend, per day) of type music, m3u, dj or live with a source (file, folder, playlist or http(s) URL). Without a schedule line the main list (the music folder) plays. All transition, hourly-news, volume and sound settings work as in the Raspberry Pi version.

Network drives: a task that starts before login (automatic start) runs as SYSTEM and cannot see drive letters you mapped as a user (Z:). Use the UNC path (\\server\share\music) or put the music on a local disk.

5. Hourly news

Order: pips, news, fixed jingle. The pips are aligned to the full hour on the exact sample (the engine knows the clock). Make sure Windows synchronises its time (Settings > Time & language > Sync now). Icecast and players add a few seconds of delay.

6. Update, downgrade, uninstall

upgrade.bat      (from the new, unzipped package folder: makes a backup first, keeps settings and media, rolls back by itself on failure)
downgrade.bat    (in the installation folder: restores the backup of the last upgrade)
uninstall.bat    (in the installation folder; options: -DryRun -Yes -NoBackup -Purge -DeleteMedia -RemoveIcecast)

Backups are in %ProgramData%\renradio-broadcast4Windows\. By default uninstall.bat first makes a zip of configuration and data and leaves your music (media\) alone; only -DeleteMedia removes it (only the links, never the folders they point to).

7. Troubleshooting

SymptomLook at
A Windows security (firewall) message appears and will not closeChoose Allow access in that message (tick your network type). If it keeps appearing, allow python.exe, pythonw.exe and icecast.exe in Windows Security > Firewall > Allow an app. The installer creates rules for this when you answer Yes. If your network is set to "Public", set it to "Private" (Settings > Network).
No sound in the streamRun status-renradio.bat. Output SILENT: nothing to play (empty folder or schedule). Icecast unreachable: start Renradio, check host/port/password under Icecast in the dashboard.
Dashboard not reachable from another PCWindows firewall: rule for port 8787 (private/domain networks only). Set the network to "Private" or add the rule for the profile you use.
SmartScreen/antivirus warns about install.batIt is an unsigned script; choose "More info > Run anyway". Antivirus may briefly block ffmpeg or Python in a new folder.
Port 8000 or 8787 already in useAnother Icecast or web server is running; stop it or change the port (Icecast: config\icecast.xml and the dashboard).
The dashboard says the supervisor is not runningRun start-renradio.bat. With automatic start: Task Scheduler > renradio-broadcast4Windows.
My music was copied into the media folderThat happened in 4Windows-V1.0/V1.1 for chosen files. From V1.2 nothing is copied any more. Files that were already copied stay: delete them from media\music (etc.) and choose the original folder or files again with Browse.
A link no longer worksThe target was moved, renamed, or the disk/network folder is unreachable. Open the .renlink file in Notepad to see the path, or choose the folder again. Under Music folder the reason is shown.
Music is not foundUnder Music folder the reason is shown (missing, empty, no access, no audio). See also the network-drive note above.
Underruns in the panelRaise the engine buffer (4-6 s). Check whether the disk or network is slow (status-renradio.bat).
Collect everything for supportstatus-renradio.bat --zip

8. Differences with the Raspberry Pi version