title
Products            Buy            Support Forum            Professional            About            Codec Central
 
Results 1 to 9 of 9

Thread: ReplayGain for mp3

  1. #1
    dBpoweramp Guru
    Join Date
    Dec 2008
    Location
    London, UK
    Posts
    3,545

    ReplayGain for mp3

    ReplayGain is set in Asset Configuration. When I play a flac file using Asset Control/dBpoweramp Renaissance, the ReplayGain is applied, as expected.

    However, the same file has been converted to mp3, and when I play the mp3, no ReplayGain is applied and the track is louder. Please advise.

    Here is (an edited) part of the asset-debug-asset.txt log:

    ===========ProcessFileRequest================
    http://192.168.0.2:26125/content/c2/...522.forced.l16
    =============================================

    Content Range: -1 to -1
    Decodes [clDecoder::Get]

    Streaming 'F:\Asset\Artists B\Bowie, David\[1980-09] Scary Monsters (2003 SACD)\1.06 David Bowie - Teenage Wildlife.flac'
    ->-> [clDecoder::Open]
    Opening file 'F:\Asset\Artists B\Bowie, David\[1980-09] Scary Monsters (2003 SACD)\1.06 David Bowie - Teenage Wildlife.flac' for read access: Opened
    Init FLAC:
    Reading Meta Data:
    contained 33 tags:
    replaygain_album_gain: -6.21 dB
    replaygain_album_peak: 0.974701
    replaygain_track_gain: -6.15 dB
    replaygain_track_peak: 0.9021
    AccurateRipResult: AccurateRip: Accurate (confidence 24) [373D21FB]
    AccurateRipDiscID: 010-0011140b-0089b496-7d0ab00a-6...

    Album Artist: David Bowie
    ->-> [clDecoder::ReadIDTags]
    <-<- [clDecoder::ReadIDTags]
    ->-> [clDecoder::FillAudioProps]
    Encoder: FLAC reference libFLAC 1.2.1 20070917
    Sample Count: 18,350,304
    ID Tag: Vorbis Comments
    Contains: CRC, ReplayGain, ID Tag [Vorbis Comments]
    <-<- [clDecoder::FillAudioProps]
    ->-> [clDecoder::FillAudioInfo]
    Uncompressed WFX (sent to db): Format Tag: 1 Channels: 2 Bits per Sample: 16 Samples Per Second: 44100 Bytes Per Second: 176400 Block Align: 4 CB Size: 0
    Audio Length: 416106 mili-seconds 51131545 bytes 1411 kbps
    <-<- [clDecoder::FillAudioInfo]
    Creating Decode Buffers: Created
    <-<- [clDecoder::Open]

    Forced Streaming to LPCM Format Tag: 1 Channels: 2 Bits per Sample: 16 Samples Per Second: 44100 Bytes Per Second: 176400 Block Align: 4 CB Size: 0
    Steaming 73401216 bytes from Format Tag: 1 Channels: 2 Bits per Sample: 16 Samples Per Second: 44100 Bytes Per Second: 176400 Block Align: 4 CB Size: 0
    ReplayGain Active: Multiply x0.34874

    Serve Entity Set to: audio/L16;rate=44100;channels=2
    ->-> [clDecoder::Close]
    <-<- [clDecoder::Close]

    ===========ProcessFileRequest================
    http://192.168.0.2:26125/content/c2/...4818-co650.mp3
    =============================================

    Content Range: -1 to -1

    Serving File as is: C:\iTunes\Artists B\Bowie, David\[1980-09] Scary Monsters (2003 SACD)\1.06 David Bowie - Teenage Wildlife.mp3

    Serve Entity Set to: audio/mpeg

  2. #2
    Administrator
    Join Date
    Apr 2002
    Posts
    38,494

    Re: ReplayGain for mp3

    Perhaps asset is not reading the replaygain tag? (such as added after track was indexed)

  3. #3
    dBpoweramp Guru
    Join Date
    Dec 2008
    Location
    London, UK
    Posts
    3,545

    Re: ReplayGain for mp3

    Quote Originally Posted by Spoon View Post
    Perhaps asset is not reading the replaygain tag? (such as added after track was indexed)
    No, I've found the problem in Asset UPnP.

    In Asset Configuration, when 'MP3 as is' is set, then no replaygain. When 'MP3 as MP3' is set, then replaygain is applied correctly.

    'MP3 as is' is behaving like 'MP3 as is single'.

  4. #4
    Administrator
    Join Date
    Apr 2002
    Posts
    38,494

    Re: ReplayGain for mp3

    Asset has to decode and reencode to apply replaygain, if you have mp3 as is, it is passed out untouched.

  5. #5
    dBpoweramp Guru
    Join Date
    Dec 2008
    Location
    London, UK
    Posts
    3,545

    Re: ReplayGain for mp3

    Quote Originally Posted by Spoon View Post
    Asset has to decode and reencode to apply replaygain, if you have mp3 as is, it is passed out untouched.
    So, to confirm, setting MP3 as MP3 is correct, i.e. to get Asset to apply replaygain?

    Also, if flac is set to 'flac as is', will replaygain be applied? Currently I have 'flac as lpcm'.

    ... furthermore, 'MP3 as is' is set so that when I stream to my OPPO BDP-83, artwork and tags and displayed correctly. When I change this to 'MP3 is MP3', replaygain is applied correctly, the OPPO plays the mp3 OK, but artwork and tags are no longer displayed.

    So the question is, what is Asset doing to my mp3 file after applying replaygain, that means the OPPO is no longer able to read artwork and tags?
    Last edited by mville; 03-19-2013 at 01:26 PM. Reason: additional problem

  6. #6

    Join Date
    Sep 2006
    Location
    Sheffield, UK
    Posts
    29

    Re: ReplayGain for mp3

    It sounds like when Asset reencodes it isn't passing across your tags or artwork which I'd report as a bug.

    FLAC would also have to be reencoded to apply replaygain. It's because the client doesn't handle RG so in order to get the right level then Asset must apply that level gain by reencoding.

  7. #7
    Administrator
    Join Date
    Apr 2002
    Posts
    38,494

    Re: ReplayGain for mp3

    Transcoded files do not have metadata, it is by design (as some metadata breaks certain players so not providing allows them to play).

    A player should not use metadata from the file for UPnP, but the metadata the Server gave out with the play URL.

  8. #8

    Join Date
    Nov 2009
    Posts
    8

    Re: ReplayGain for mp3

    I'm confused about the "as is single" choice. would I use this if I wanted replaygain to be applied to FLAC files instead of choosing "as is"?

    Chris

  9. #9
    Administrator
    Join Date
    Apr 2002
    Posts
    38,494

    Re: ReplayGain for mp3

    Yes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •