INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: DR calculation difference between Foobar and Media Center  (Read 3184 times)

Frobozz

  • Citizen of the Universe
  • *****
  • Posts: 641
  • There is a small mailbox here.
DR calculation difference between Foobar and Media Center
« on: July 09, 2014, 09:17:52 am »

I found a track where I'm getting a different DR number from the foobar DR plugin and the number calculated by Media Center.
The album is Megadeth "Risk".  The 1999 release with 12 tracks plus a data track.
http://www.discogs.com/Megadeth-Risk/release/378897

The difference is with Track 2
Foobar gives a DR6
Media Center gives a DR7

I don't know which one is correct.

foo_dr log
Code: [Select]
foobar2000 1.3.2 / Dynamic Range Meter 1.1.1
log date: 2014-07-09 05:39:32

--------------------------------------------------------------------------------
Analyzed: Megadeth / Risk
--------------------------------------------------------------------------------

DR         Peak         RMS     Duration Track
--------------------------------------------------------------------------------
DR6        0.00 dB    -8.03 dB      4:34 01-Insomnia
DR6        0.00 dB    -8.20 dB      6:26 02-Prince Of Darkness
DR9       -1.41 dB   -12.20 dB      0:52 03-Enter The Arena
DR7        0.00 dB    -8.55 dB      4:58 04-Crush 'Em
DR7        0.00 dB    -8.80 dB      4:24 05-Breadline
DR7        0.00 dB    -8.78 dB      5:40 06-The Doctor Is Calling
DR7        0.00 dB    -8.75 dB      4:20 07-I'll Be There
DR7        0.00 dB    -9.60 dB      5:22 08-Wanderlust
DR8        0.00 dB    -9.68 dB      4:28 09-Ecstasy
DR8        0.00 dB    -9.43 dB      5:01 10-Seven
DR7        0.00 dB    -8.46 dB      3:05 11-Time: The Beginning
DR6        0.00 dB    -7.25 dB      2:26 12-Time: The End
--------------------------------------------------------------------------------

Number of tracks:  12
Official DR value: DR7

Samplerate:        44100 Hz
Channels:          2
Bits per sample:   16
Bitrate:           1411 kbps
Codec:             PCM
================================================================================


Media Center analysis log
Code: [Select]
Track #     (DR)        Volume Level (R128)     Volume Level (ReplayGain)       Dynamic Range (R128)        Peak Level (R128)                       Peak Level (Sample)                 Name                    Artist      Album       Duration        Bitrate     File Type
1           6           -15.9 LU                -10.93 dB                       8.3 LU                      +0.9 dBTP; +0.5 Left; +0.9 Right        +0.0 dB; +0.0 Left; +0.0 Right      Insomnia                Megadeth        Risk        4:34        1411        wav
2           7           -14.9 LU                -9.88 dB                        5.6 LU                      +1.1 dBTP; +0.9 Left; +1.1 Right        +0.0 dB; +0.0 Left; +0.0 Right      Prince Of Darkness      Megadeth        Risk        6:25        1411        wav
3           9           -11.4 LU                -6.37 dB                        9.1 LU                      -1.4 dBTP; -1.4 Left; -1.6 Right        -1.4 dB; -1.4 Left; -1.7 Right      Enter The Arena         Megadeth        Risk        0:52        1411        wav
4           7           -14.6 LU                -9.59 dB                        7.0 LU                      +0.7 dBTP; +0.6 Left; +0.7 Right        +0.0 dB; +0.0 Left; +0.0 Right      Crush 'Em               Megadeth        Risk        4:57        1411        wav
5           7           -14.8 LU                -9.80 dB                        5.5 LU                      +0.8 dBTP; +0.8 Left; +0.7 Right        +0.0 dB; +0.0 Left; +0.0 Right      Breadline               Megadeth        Risk        4:24        1411        wav
6           7           -15.0 LU                -9.97 dB                        4.9 LU                      +0.5 dBTP; +0.5 Left; +0.5 Right        +0.0 dB; +0.0 Left; +0.0 Right      The Doctor Is Calling   Megadeth        Risk        5:40        1411        wav
7           7           -14.9 LU                -9.86 dB                        4.0 LU                      +0.5 dBTP; +0.5 Left; +0.5 Right        +0.0 dB; +0.0 Left; +0.0 Right      I'll Be There           Megadeth        Risk        4:20        1411        wav
8           7           -13.5 LU                -8.53 dB                        8.2 LU                      +0.8 dBTP; +0.8 Left; +0.8 Right        +0.0 dB; +0.0 Left; +0.0 Right      Wanderlust              Megadeth        Risk        5:22        1411        wav
9           8           -14.1 LU                -9.08 dB                        7.4 LU                      +0.6 dBTP; +0.5 Left; +0.6 Right        +0.0 dB; +0.0 Left; +0.0 Right      Ecstasy                 Megadeth        Risk        4:28        1411        wav
10          8           -13.7 LU                -8.72 dB                        4.4 LU                      +0.6 dBTP; +0.2 Left; +0.6 Right        +0.0 dB; +0.0 Left; +0.0 Right      Seven                   Megadeth        Risk        5:00        1411        wav
11          7           -14.4 LU                -9.36 dB                        3.7 LU                      +0.8 dBTP; +0.8 Left; +0.5 Right        +0.0 dB; +0.0 Left; +0.0 Right      Time: The Beginning     Megadeth        Risk        3:04        1411        wav
12          6           -15.9 LU                -10.93 dB                       5.0 LU                      +0.6 dBTP; +0.6 Left; +0.3 Right        +0.0 dB; +0.0 Left; +0.0 Right      Time: The End           Megadeth        Risk        2:26        1411        wav
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42344
  • Shoes gone again!
Re: DR calculation difference between Foobar and Media Center
« Reply #1 on: July 09, 2014, 09:35:54 am »

The difference is with Track 2
Foobar gives a DR6
Media Center gives a DR7

We round, so 6.6 will be a 7 with Media Center.  Maybe Foobar truncates instead.
Logged
Matt Ashland, JRiver Media Center

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: DR calculation difference between Foobar and Media Center
« Reply #2 on: July 09, 2014, 10:50:47 am »

Neither are correct, both are close enough

DR is a (very) crude measurement based on averages. 

I also use TT meter and there are times when foobar, MC and TT differ slightly, which is likely to how they round the averages / how many decimal places etc.  I've so far not encountered a situation where any of the three are way off, it's always within possible calculation error
Logged

Lefisu63

  • Junior Woodchuck
  • **
  • Posts: 95
Re: DR calculation difference between Foobar and Media Center
« Reply #3 on: July 09, 2014, 02:27:54 pm »

Neither are correct, both are close enough

DR is a (very) crude measurement based on averages. 

I also use TT meter and there are times when foobar, MC and TT differ slightly, which is likely to how they round the averages / how many decimal places etc.  I've so far not encountered a situation where any of the three are way off, it's always within possible calculation error


As far as I know/read TT meter has a bug and counts not only music data. It also reads until the end of the WAV file and might include graphics stored in ID3v2, etc.

DR in foobar might read and include silence at the beginning and end. I have truncated some files and run DRM over the files and RMS was slightly different.
Logged

Frobozz

  • Citizen of the Universe
  • *****
  • Posts: 641
  • There is a small mailbox here.
Re: DR calculation difference between Foobar and Media Center
« Reply #4 on: July 10, 2014, 12:14:46 am »

We round, so 6.6 will be a 7 with Media Center.  Maybe Foobar truncates instead.

Could be a difference in rounding.  Or a difference in the precision of the calculations.  Computer math can be a bit particular.

I found this one just by chance.  I was comparing the CD I have against the Dynamic Range Database.  Saw I had something different.  Recalculated the DR using the Foobar plugin and found that Media Center and the Foobar plugin got different results.

If you want to investigate this one I can send you the track.

People do use the DR numbers as a quick and dirty check to see if a particular release has a different mastering.  The DR number from Media Center and the Foobar plugin should agree.  Otherwise things get confusing.
Logged

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: DR calculation difference between Foobar and Media Center
« Reply #5 on: July 10, 2014, 02:09:14 am »

Could be a difference in rounding.  Or a difference in the precision of the calculations.  Computer math can be a bit particular.

I found this one just by chance.  I was comparing the CD I have against the Dynamic Range Database.  Saw I had something different.  Recalculated the DR using the Foobar plugin and found that Media Center and the Foobar plugin got different results.

If you want to investigate this one I can send you the track.

People do use the DR numbers as a quick and dirty check to see if a particular release has a different mastering.  The DR number from Media Center and the Foobar plugin should agree.  Otherwise things get confusing.

Yes, but as noted it could it be the Foobar plugin at fault... and requires fixing, rather than forcing MC to bug itself...  Whenever I post to DR Database I always use the offline tool as requested for consistency.  Within MC I'd rather have accurate numbers (and would even prefer they are not rounded - I didn't realise they were).
Logged

Frobozz

  • Citizen of the Universe
  • *****
  • Posts: 641
  • There is a small mailbox here.
Re: DR calculation difference between Foobar and Media Center
« Reply #6 on: July 10, 2014, 03:21:41 am »

I tested with the offline DR tool and got the same results as the foobar plugin

Code: [Select]
----------------------------------------------------------------------------------------------
 Analyzed folder: C:\RIP\EAC\CUETOOLS_Megadeth - Risk\
----------------------------------------------------------------------------------------------
 DR       Peak         RMS      Filename
----------------------------------------------------------------------------------------------

 DR6    over      -8.03 dB 01. Insomnia.wav
 DR6    over      -8.20 dB 02. Prince Of Darkness.wav
 DR9   -1.41 dB -12.20 dB 03. Enter The Arena.wav
 DR7    over      -8.55 dB 04. Crush 'Em.wav
 DR7    over      -8.80 dB 05. Breadline.wav
 DR7    over      -8.78 dB 06. The Doctor Is Calling.wav
 DR7    over      -8.75 dB 07. I'll Be There.wav
 DR7    over      -9.60 dB 08. Wanderlust.wav
 DR8    over      -9.68 dB 09. Ecstasy.wav
 DR8    over      -9.43 dB 10. Seven.wav
 DR7    over      -8.46 dB 11. Time_ The Beginning.wav
 DR6    over      -7.25 dB 12. Time_ The End.wav
----------------------------------------------------------------------------------------------

 Number of files:    12
 Official DR value:  DR7

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

This is the only track I've noticed that Media Center has calculated a different DR number.  I haven't done a systematic check of all of my files, or even a portion of my files.  Just a little random sampling here and there.  Whatever the discrepancy is it doesn't seem to happen very often.  This track might be a rare case.
Logged

astromo

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2251
Re: DR calculation difference between Foobar and Media Center
« Reply #7 on: July 10, 2014, 03:40:35 am »

Neither are correct, both are close enough

DR is a (very) crude measurement based on averages. 

I also use TT meter and there are times when foobar, MC and TT differ slightly, which is likely to how they round the averages / how many decimal places etc.  I've so far not encountered a situation where any of the three are way off, it's always within possible calculation error


Agreed. I treat the number as a guide.

If I was benchmarking, then I'd use TT DR Meter as the reference:
http://www.pleasurizemusic.com/es/es/download

After all, didn't those guys cook up the whole algorithm in the 1st place?
http://www.pleasurizemusic.com/es/es/our-aim
Logged
MC33, Win10 x64, HD-Plex H5 Gen2 Case, HD-Plex 400W Hi-Fi DC-ATX / AC-DC PSU, Gigabyte Z370 ULTRA Gaming 2.0 MoBo, Intel Core i7 8700 CPU, 4x8GB GSkill DDR4 RAM, Schiit Modi Multibit DAC, Freya Pre, Nelson Pass Aleph J DIY Clone, Ascension Timberwolf 8893BSRTL Speakers, BJC 5T00UP cables, DVB-T Tuner HDHR5-4DT
Pages: [1]   Go Up