Post Reply 
Turning on/off replaygain for playlists.
30-10-2026, 15:27
Post: #1
Turning on/off replaygain for playlists.
Maybe someone has some experience with this. I couldn't find any references. I have a library containing a mixture of formats, bit rates and sampling rates, maintained using iTunes. I mainly use BubbleUPnP for control and the renderer is a WiiM, with a BubbleUPNP Server proxy, in order to take advantage of OpenHome features. Many of these tracks are arranged into playlists which I use often, but as you can imagine, the volume levels often vary widely, which is unwanted.

All the tracks in the playlists have had track replaygain applied, using foobar2000, and I have been using another feature of BubbleUPnP Server to apply the replaygain when required. This feature is causing me some problems, so I am experimenting with MinimServer/Streamer as a substitute. I have the transcoding and replaygain working with these parameters:-
Code:
/opt/bubbleupnpserver/ffmpeg
convOut=-af volume=replaygain=track
mp4:wav24/-, mp3:wav24/-, alac:wav24/-, aac:wav24/-

The problem is that I don't want replaygain on when not playing playlists. It would cause havoc with albums where some tracks are in playlists. I can use the configuration website to change profiles from transcoding/replaygain to no transcoding, but I then need to restart the server. The config website has restart buttons, but they seem to be permanently greyed out. I can use MinimWatch to restart, but this requires being at a PC. I would like to restart from a webpage, preferably the same one that I used to change the profile.

I also use OpenMediaVault to manage the server, which gives me the option to remotely submit stored linux scripts or console commands via the OMV webpage. Maybe there is a command which can change the profile, and one which can restart the server? That would be cool.

Any suggestions welcome.
Marmite.

Server :: RaspberryPi3B+>Minimserver/MinimStreamer 2
Control : Android>BubbleUPnP / W11>Upplay / W11>Kazoo / iPhone>Kazoo
Renderer: BubbleUPnP Server(OpenHome)>WiiM Ultra
Find all posts by this user
Quote this message in a reply
30-10-2026, 19:50
Post: #2
RE: Turning on/off replaygain for playlists.
(30-10-2026 15:27)MarmiteSandwich Wrote:  I can use the configuration website to change profiles from transcoding/replaygain to no transcoding, but I then need to restart the server. The config website has restart buttons, but they seem to be permanently greyed out.
I've just tried this scenario, and when applying transcoding settings a restart isn't required, but you will need to perform a reload in BubbleUPnP (via the vertical ellipsis in the top right hand corner).

(30-10-2026 15:27)MarmiteSandwich Wrote:  Maybe there is a command which can change the profile, and one which can restart the server? That would be cool.
There's the MinimServer mscript command line tool.

Code:
cat <<'EOF' > applyTrackGain.prop
prop stream.options=convOut=-af volume=replaygain=track
prop stream.transcode=mp4:wav24/-, mp3:wav24/-, alac:wav24/-, aac:wav24/-
EOF

cat <<'EOF' > applyAlbumGain.prop
prop stream.options=convOut=-af volume=replaygain=album
prop stream.transcode=mp4:wav24/-, mp3:wav24/-, alac:wav24/-, aac:wav24/-
EOF

cat <<'EOF' > applyNoGain.prop
prop stream.transcode=
EOF

./minimserver/bin/mscript ./applyTrackGain.prop
./minimserver/bin/mscript ./applyAlbumGain.prop
./minimserver/bin/mscript ./applyNoGain.prop

You could trigger the execution of these scripts from the playback of particular songs by monitoring the recently played log, but I'm not sure that's worth the effort.
Find all posts by this user
Quote this message in a reply
30-10-2026, 21:09
Post: #3
RE: Turning on/off replaygain for playlists.
Changing the profile automatically restarts MinimServer.

The Restart buttons on the configuration website properties pages become active when you change a property that requires a restart.
Find all posts by this user
Quote this message in a reply
31-10-2026, 10:31
Post: #4
RE: Turning on/off replaygain for playlists.
(30-10-2026 19:50)simbun Wrote:  you will need to perform a reload in BubbleUPnP
Thanks for that information. It makes life so much easier.

(30-10-2026 19:50)simbun Wrote:  There's the MinimServer mscript command line tool.
I was just starting to check this out. I might use it for a regular overnight reset to "no-transcoding" in case I forget to turn it off.
Cheers,
Marmite

Server :: RaspberryPi3B+>Minimserver/MinimStreamer 2
Control : Android>BubbleUPnP / W11>Upplay / W11>Kazoo / iPhone>Kazoo
Renderer: BubbleUPnP Server(OpenHome)>WiiM Ultra
Find all posts by this user
Quote this message in a reply
31-10-2026, 10:34
Post: #5
RE: Turning on/off replaygain for playlists.
(30-10-2026 21:09)simoncn Wrote:  Changing the profile automatically restarts MinimServer.

Thanks for that Simon. Excellent product and features. Why did I doubt it?
Cheers,
Marmite.

Server :: RaspberryPi3B+>Minimserver/MinimStreamer 2
Control : Android>BubbleUPnP / W11>Upplay / W11>Kazoo / iPhone>Kazoo
Renderer: BubbleUPnP Server(OpenHome)>WiiM Ultra
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)