Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convolver + ReplayGain
06-11-2023, 20:43
Post: #1
Convolver + ReplayGain
I am currently using minimstreamer with a convolver file:
convOut=-i "C:\Internet\MinimServer\opt\bin\convolution\CD7NT_Impulse.wav" -lavfi afir
works very well!

I now want to use the replaygain tag to auto change volume for playlists:
convOut=-af volume=replaygain=track
works very well!

Despite many attempts, what I can't seem to do is get both working together without generating an error.
Can anyone offer a way to combine both these stream options?

Also, just for a little light reading, where can I find out more info regarding the '-(something)' options? I want to know more about what they are doing, rather than just type them in because I have been advised to!
Regards and thanks
Find all posts by this user
Quote this message in a reply
06-11-2023, 21:20
Post: #2
RE: Convolver + ReplayGain
See this post for an example of how to combine replaygain and convolution.

The minus options such as -lavfi and -af are described in the FFmpeg documentation.
Find all posts by this user
Quote this message in a reply
29-11-2023, 20:29
Post: #3
RE: Convolver + ReplayGain
I created 3x mp3 and 3 x flac files from one wav track. To these I manually added (using Mp3Tag) the replaygain trackgain of 0db, +12db and -12db so I had one of each gain per file type.

After much trial and error I have found the following settings partially work:
stream.transcode
dsf(>64):wav24;176, wav(>24;192):wav24;192, mp3:wav24, flac:wav24; [only the mp3 and flac settings relate to replaygain]
stream options
convOut=-i "C:\Internet\MinimServer\opt\bin\convolution\ORA10_HD650_Impulse.wav" -lavfi "afir=gtype=gn,volume=replaygain=track"

I say partially because the replaygain +12db doesn't appear to work.
If I play the files on my PC using foobar then the gain differences are clearly and unmistakingly audible.
But when I use MinimServer only the -12dB is applied, the other two tracks having the same volume.
So what is preventing the replaygain + setting from being utilised?
Find all posts by this user
Quote this message in a reply
30-11-2023, 10:33
Post: #4
RE: Convolver + ReplayGain
Please refer to the link I posted in post #2 of this thread. The replaygain option needs to appear first.
Find all posts by this user
Quote this message in a reply
03-12-2023, 15:01
Post: #5
RE: Convolver + ReplayGain
I'll have to spend further time on the order while trying to resolve the syntax required.

In the meantime:
stream.transcode
mp3:wav24, flac:wav24
stream options
convOut=-af volume=replaygain=track

Still only applies -gain not +gain to the above created files.
So how do I get both + and - replaygain working?
Find all posts by this user
Quote this message in a reply
04-12-2023, 12:07
Post: #6
RE: Convolver + ReplayGain
You need to use the setting flac:wav24; instead of flac:wav24. The semicolon tells MinimStreamer to use FFmpeg for transcoding instead of its own internal converter. The semicolon is only needed for FLAC, so your complete setting should be

stream.transcode
mp3:wav24, flac:wav24;

With these settings, positive replay gain for FLAC files is working for me. However, I cannot get positive replay gain to work for MP3 files, only negative gain.

This seems to be a problem with FFmpeg rather than MinimStreamer. I ran FFmpeg directly from the command line on some test files and the result was the same.
Find all posts by this user
Quote this message in a reply
16-12-2023, 12:21 (This post was last modified: 16-12-2023 12:22 by AnnieBody.)
Post: #7
RE: Convolver + ReplayGain
Simon
After much trawling the internet and learning about ffmpeg audio I have found a working solution from the 'HydrogenAudio' support forum.
You need to include a 'noclip' option.

The previously reported method
stream options:
convOut=-af volume=replaygain=track
should be changed to:
convOut=-af volume=replaygain=track:replaygain_noclip=0

Again, after trialling how to put the convolver file first I now have my fully working convolver + replaygain method (modify as required):
stream.transcode:
mp3:wav24, flac:wav24;
stream options:
convOut=-i "C:\Internet\MinimServer\opt\bin\convolution\ORA10_HD650_Impulse.wav" -lavfi "afir=gtype=gn,volume=replaygain=track:replaygain_noclip=0"
Find all posts by this user
Quote this message in a reply
16-12-2023, 16:39
Post: #8
RE: Convolver + ReplayGain
Thanks for posting the correct setting for positive gain with MP3 files and for confirming that performing convolution before replay gain does work.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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