nschlia / ffmpegfs

FUSE-based transcoding filesystem with video support from many formats to FLAC, MP4, TS, WebM, OGG, MP3, HLS, and others.
https://nschlia.github.io/ffmpegfs/
GNU General Public License v3.0
196 stars 14 forks source link

Applying ReplayGain from metadata #158

Open JKingweb opened 3 months ago

JKingweb commented 3 months ago

Would it be possible to have an option to apply track or album ReplayGain metadata to the audio stream? This seems to be something ffmpeg can do.

I have an appliance (Sonos Era 100) which doesn't apply ReplayGain itself, and since it's limited to playing 48kHz audio I'll likely have to deploy ffmpegfs for it anyway. It would be nice if I could also stop endlessly adjusting its volume as I listen to different things.

nschlia commented 3 months ago

Sounds like this could be easily added. I'll take a look at it.

JKingweb commented 3 months ago

Thanks for the quick response. In the meantime it looks like ffmpegfs will solve my sample rate problem (based on a quick test on my desktop), so I will wait patiently for perfection. ;)

nschlia commented 2 months ago

I have dug into the issue a bit. So far, I found out, that if the original file contains REPLAYGAIN tags, they are preserved for mp3, but not mp4. On the other hand, I tried to process mp4s with replaygain, and it did not add tags as for flac or mp3. Seems to be another problem with mp4 in particular.

Anyways, as you software does not apply replaygain, it would require to do that in ffmpegfs. That's relatively easy, but I still have to understand what to do exactly.