Adding support for ReplayGain for audio files on the Android port of VLC would be a big plus as a music player. In particular, would like to have RG support for MP3, AAC, flac, and Opus at minimum if possible.
Designs
Child items
0
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Havent' tested it with a RG'd file vs an identical one without it. Is it natively implemented with no settings available? I did not see any settings in the preferences/menus (checked on VLC for Android 1.2.4).
I did a quick informal test to check on the above. Had a test track for FLAC, MP3, AAC, and Opus. Rough ReplayGain value is -10 dB. All files were processed with foobar2000 for conversion and ReplayGain. Of the 4, Opus has ReplayGain implemented and shows a difference in volume playback. The other three did not show any differences in volume when played back.
Updating Settings->Advanced->Custom libVLC options to --audio-replay-gain-mode=album or track appears to influence the audio levels. Do you have existing audio samples to determine if the correct gain settings are indeed applied? Assuming the parameter works as expected, should a new setting be added to append the argument to libVLC in VLCOptions.kt?
Sorry everybody, but I can't get it to work on my Pixel6...
Using VLC for Android 3.5.1.
In Settings > Extra Settings > Audio > Replay Gain > "Enable replay gain" has been checked.
I am using two audio files to test this (one .mp3 and one .flac) with a "normalized" ReplayGain tag "REPLAYGAIN_TRACK_GAIN" and "REPLAYGAIN_TRACK_PEAK" and an exact copy of both with much lower ReplayGain.
It is not working, tracks play at the exact same volume.
As a test/in order to doublecheck/dismiss a file error or tagging error, I was playing them back as well with the latest version of the "Vanilla Music"-Android-App, and there it works!
One could argue: "then use Vanilla Music" if this works for you - but so far, only VLC for Android can connect to my SYNOLOGY NAS via SMB and play back my music. And yes, I tried playing back the test tracks directly from the Android device as well (they were there in order to play them back via Vanilla), still not working with VLC.
Sure, please find it attached.
Search for "_silence" then you will find the audio files with the adjusted/lower ReplayGain value.
The audio files are called:
libVLC is not detecting the tags. This is what I expect to see, but is absent:
libvlc demux: setting replay gain 0 to -10.050000libvlc demux: setting replay peak 0 to -10.050000libvlc demux: setting replay gain 1 to -10.900000libvlc demux: setting replay peak 1 to -10.900000
@rhstone do you mean
a. "my test files"
or
b. Owner-R128-RG.ogg
?
if (a) then: no, they do not work (replay gain tags are not being taken into account)
@rhstone In a "normal" world, this shouldn't be related to vlc#27176 (closed), because the corresponding RFC 7845 pertains exclusively to Opus. I have never seen a FLAC file that uses R128_{TRACK,ALBUM}_GAIN. But of course, encoders do fun and not entirely logical things, so I suppose there's no way to tell unless @koulaouzidis posts the ffprobe output (which I'm pretty curious about now).