Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dr14 shows only one bit depth / sample rate in case when folder contains FLAC files with different specs #85

Open
maplee0 opened this issue Feb 20, 2024 · 3 comments

Comments

@maplee0
Copy link

maplee0 commented Feb 20, 2024

Hello!
When it's run in folder that contains files with different specs it returns only one bit depth / sample rate for all of them.
python3 "./dr14_tmeter.py" "$PWD"
For example:
File 1.flac is 16 bit / 44.1 kHz
File 2.flac is 16 bit / 48 kHz
File 3.flac is 24 bit / 96 kHz

Result log will include all these files, but it shows that all these files are 16 bit / 44.1 kHz.

@rodfeli
Copy link

rodfeli commented Jun 24, 2024

Some news about this bug?

@pe7ro
Copy link

pe7ro commented Dec 4, 2024

@rodfeli
Would this type of report meet your requirements?

 Sampling rate: 		 various - ['48000', '96000'] Hz
 Average bitrate: 		 1655 kbs 
 Bits per sample: 		 various - ['16', '24'] bit

pe7ro added a commit to pe7ro/dr14meter that referenced this issue Dec 4, 2024
- version bumped to 1.1.0rc2
- "News" footer is shown when run without arguments
- if tracks have varying sampling rates and bits per sample, this is explicitly stated in the report - simon-r#85
- readme updated
- updated copyright
@maplee0
Copy link
Author

maplee0 commented Dec 14, 2024

The perfect way to implement exact specs would be like foobar2000 does it. It adds result line and tech data for each different sampling rate or bit depth and average bitrate is calculated only for tracks with the same sample_rate/bit_depth. For example:

foobar2000 2.0 / Dynamic Range Meter 1.1.1
log date: 2024-12-14 04:20:01
--------------------------------------------------------------------------------
Analyzed: Artist1 / album_title
--------------------------------------------------------------------------------
DR         Peak         RMS     Duration Track
--------------------------------------------------------------------------------
DR8       -1.15 dB   -11.78 dB      1:32 01-title1
DR8       -1.36 dB   -13.74 dB      4:32 02-titl2
--------------------------------------------------------------------------------
Number of tracks:  2
Official DR value: DR8
Samplerate:        44100 Hz
Channels:          2
Bits per sample:   16
Bitrate:           692 kbps
Codec:             FLAC
================================================================================
--------------------------------------------------------------------------------
Analyzed: Artist1 / album_title
--------------------------------------------------------------------------------
DR         Peak         RMS     Duration Track
--------------------------------------------------------------------------------
DR10      -0.10 dB   -14.70 dB      4:04 03-title3
DR11      -0.10 dB   -14.16 dB      3:08 04-title4
DR11      -0.10 dB   -17.52 dB      1:40 05-title5
--------------------------------------------------------------------------------
Number of tracks:  3
Official DR value: DR11
Samplerate:        44100 Hz
Channels:          2
Bits per sample:   24
Bitrate:           1432 kbps
Codec:             FLAC
================================================================================
--------------------------------------------------------------------------------
Analyzed: Artist1 / album_title
--------------------------------------------------------------------------------
DR         Peak         RMS     Duration Track
--------------------------------------------------------------------------------
DR8       -0.80 dB   -11.82 dB      6:10 title6
DR8       -1.16 dB   -13.88 dB      3:37 title7
DR10      -0.39 dB   -13.93 dB      3:02 title8
--------------------------------------------------------------------------------
Number of tracks:  3
Official DR value: DR9
Samplerate:        44100 Hz
Channels:          2
Bits per sample:   16
Bitrate:           665 kbps
Codec:             FLAC
================================================================================
--------------------------------------------------------------------------------
Analyzed: Artist2 / album_title
--------------------------------------------------------------------------------
DR         Peak         RMS     Duration Track
--------------------------------------------------------------------------------
DR11      -9.58 dB   -22.92 dB      0:45 09-title9
DR9       -1.11 dB   -13.51 dB      4:05 10-title10
DR12      -1.68 dB   -18.67 dB      2:40 11-title11
DR13      -6.02 dB   -21.96 dB      2:43 12-title12
DR9       -1.38 dB   -13.09 dB      3:16 13-title13
DR8       -2.28 dB   -11.30 dB      3:06 14-title14
DR14      -5.27 dB   -21.50 dB      3:56 15-title15
DR12      -7.00 dB   -21.38 dB      2:05 16-title16
DR10     -12.79 dB   -26.43 dB      2:40 17-title17
DR10      -9.36 dB   -21.40 dB      1:45 18-title18
--------------------------------------------------------------------------------
Number of tracks:  10
Official DR value: DR11
Samplerate:        44100 Hz
Channels:          2
Bits per sample:   24
Bitrate:           1380 kbps
Codec:             FLAC
================================================================================

Another way is adding exact sampling rate and bit depth for each track:
Sampling rate: tracks 1, 5, 7 - 44100 Hz; tracks 2, 3 - 48000 Hz, etc.
Bits per sample: tracks 1, 4, 6 - 24 bit; tracks 2, 5, 7 - 16 bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants