Sometimes the log is written with one less file than analyzed
Opened this issue · 1 comments
Seems dr14_t.meter has unreliable results in my system when NOT using "--disable_multithread".
When analyzing a folder with some wav files, and NOT using "--disable_multithread", dr14_t.meter sometimes just skips the last file when writing the log. But this only happens sometimes, not always.
Some log:
$ dr14_tmeter --outdir '/usr/home/vicmarto/@dr14_tmeter/3/1988 To the Power of Three/OK' --dr_database --skip_version_check '/usr/home/vicmarto/@dr14_tmeter/3/1988 To the Power of Three/dr14/'
/usr/home/vicmarto/@dr14_tmeter/3/1988 To the Power of Three/dr14
------------------------------------------------------------
> Scan Dir: /usr/home/vicmarto/@dr14_tmeter/3/1988 To the Power of Three/dr14
01 - CD.wav: DR 11
02 - CD.wav: DR 11
03 - CD.wav: DR 11
04 - CD.wav: DR 12
05 - CD.wav: DR 13
06 - CD.wav: DR 12
07 - CD.wav: DR 12
08 - CD.wav: DR 12
DR = 12
- The full result has been written in the files: dr14.txt
- located in the directory:
/usr/home/vicmarto/@dr14_tmeter/3/1988 To the Power of Three/OK
Success!
Elapsed time: 8.86 sec
News ... News ... News ... News ... News !!!
With the version 2.0.0 there is the possibility to store all results in a database
If you want to enable this database execute the command:
> dr14_tmeter --enable_database
$ cat '/usr/home/vicmarto/@dr14_tmeter/3/1988 To the Power of Three/dr14.txt'
----------------------------------------------------------------------------------------------
Analyzed folder: dr14
----------------------------------------------------------------------------------------------
DR Peak RMS Duration Title [codec]
----------------------------------------------------------------------------------------------
DR11 -1.81 dB -14.51 dB 4:03 01 - CD.wav
DR11 -1.83 dB -14.89 dB 4:12 02 - CD.wav
DR11 -1.65 dB -15.06 dB 3:43 03 - CD.wav
DR12 -1.57 dB -16.04 dB 7:08 04 - CD.wav
DR13 -1.62 dB -16.46 dB 4:12 05 - CD.wav
DR12 -1.76 dB -16.45 dB 4:44 06 - CD.wav
DR12 -1.92 dB -15.97 dB 5:05 07 - CD.wav
----------------------------------------------------------------------------------------------
Number of files: 7
Official DR value: DR12
Sampling rate: 44100 Hz
Average bitrate: 1411 kbs
Bits per sample: 16 bit
Dr14 T.meter 2.0.0
==============================================================================================
Note the 8th file, it was analyzed, but is not in the log.
I wrote a little script to analyze this same 8 wav files 245 times, and 54 times the log was incorrect (with only 7 files). This is a failure of about the 22%. Running the same test but with the "--disable_multithread" option resulted in zero fails.
This is FreeBSD 11.3-RELEASE-p7, using a Jail. I'm not sure if this is reproducible in another system.
Thanks, and sorry for my broken English.