title
Products            Buy            Support Forum            Professional            About            Codec Central
 

ReplayGain for mp3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mville
    dBpoweramp Guru

    • Dec 2008
    • 4021

    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================

    =============================================

    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================

    =============================================

    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
  • Spoon
    Administrator
    • Apr 2002
    • 44583

    #2
    Re: ReplayGain for mp3

    Perhaps asset is not reading the replaygain tag? (such as added after track was indexed)
    Spoon
    www.dbpoweramp.com

    Comment

    • mville
      dBpoweramp Guru

      • Dec 2008
      • 4021

      #3
      Re: ReplayGain for mp3

      Originally posted by Spoon
      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'.

      Comment

      • Spoon
        Administrator
        • Apr 2002
        • 44583

        #4
        Re: ReplayGain for mp3

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

        Comment

        • mville
          dBpoweramp Guru

          • Dec 2008
          • 4021

          #5
          Re: ReplayGain for mp3

          Originally posted by Spoon
          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; March 19, 2013, 07:26 PM. Reason: additional problem

          Comment

          • probedb

            • Sep 2006
            • 32

            #6
            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.

            Comment

            • Spoon
              Administrator
              • Apr 2002
              • 44583

              #7
              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.
              Spoon
              www.dbpoweramp.com

              Comment

              • 7ryder

                • Nov 2009
                • 8

                #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

                Comment

                • Spoon
                  Administrator
                  • Apr 2002
                  • 44583

                  #9
                  Re: ReplayGain for mp3

                  Yes
                  Spoon
                  www.dbpoweramp.com

                  Comment

                  Working...

                  ]]>