bugNormalize Audio - Bugs: bug #58504, "normalize-ogg -b -n -v"...

 
 

bug #58504: "normalize-ogg -b -n -v" shows less info than "normalize-audio -b -n -v"

Submitter:  Joachim Reichel <joachim_r>
Submitted:  Fri 05 Jun 2020 06:53:43 PM UTC
   
 
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 09 Jun 2020 07:51:44 PM UTC, comment #1: 

Attached is a patch from Francesco Poli to fix the problem. Note that the "Standard deviation" line requires a second -v parameter. Details at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962236#24 What do you think about this patch?


(file #49234)

Joachim Reichel <joachim_r>
Fri 05 Jun 2020 06:53:43 PM UTC, original submission:  

Quoting from original feature request:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962236

"I wanted to run normalize (in batch mode) on a group of audio files
with the --no-adjust option, in order to analyze the files, without
altering them in any way.

I can do this on a group of .wav files with

  $ normalize-audio --amplitude=-7.5dBFS -b -n -v *.wav

and it seems to work as intended.

However, if I want to do it on a group of .ogg files, I get
per-track info, but not the standard deviation, average, or
per-album adjustment data.

  $ normalize-ogg -a -7.5dBFS --tmpdir /dev/shm -b -n -v *.ogg
  Decoding track01.ogg...
  Decoding track02.ogg...
  Decoding track03.ogg...
  Decoding track04.ogg...
  Decoding track05.ogg...
  Decoding track06.ogg...
  Decoding track07.ogg...
  Decoding track08.ogg...
  Decoding track09.ogg...
  Decoding track10.ogg...
  Decoding track11.ogg...
  Decoding track12.ogg...
  Running normalize...
  Computing levels...
    level        peak
  -6.8533dBFS  0.0000dBFS   /dev/shm/track01.ogg.16607.wav                  
  -8.0583dBFS  0.0000dBFS   /dev/shm/track02.ogg.16607.wav
  -7.1047dBFS  0.0000dBFS   /dev/shm/track03.ogg.16607.wav
  -7.2339dBFS  0.0000dBFS   /dev/shm/track04.ogg.16607.wav
  -7.7699dBFS  0.0000dBFS   /dev/shm/track05.ogg.16607.wav
  -7.1890dBFS  0.0000dBFS   /dev/shm/track06.ogg.16607.wav
  -8.0084dBFS  0.0000dBFS   /dev/shm/track07.ogg.16607.wav
  -7.6048dBFS  0.0000dBFS   /dev/shm/track08.ogg.16607.wav
  -7.4123dBFS  0.0000dBFS   /dev/shm/track09.ogg.16607.wav
  -7.5195dBFS  0.0000dBFS   /dev/shm/track10.ogg.16607.wav
  -8.1773dBFS  0.0000dBFS   /dev/shm/track11.ogg.16607.wav
  -7.5512dBFS  0.0000dBFS   /dev/shm/track12.ogg.16607.wav

This is weird, since normalize-ogg decodes the .ogg files into
.wav files and then runs normalize-audio on them.
Hence, I would expect the same output...

Yet, if I manually run normalize-audio on the decoded files,
I also get the final data I am interested in:

  $ normalize-audio --amplitude=-7.5dBFS -b -n -v /dev/shm/*.wav
  Computing levels...
    level        peak
  -6.8533dBFS  0.0000dBFS   /dev/shm/track01.ogg.16607.wav
  -8.0583dBFS  0.0000dBFS   /dev/shm/track02.ogg.16607.wav
  -7.1047dBFS  0.0000dBFS   /dev/shm/track03.ogg.16607.wav
  -7.2339dBFS  0.0000dBFS   /dev/shm/track04.ogg.16607.wav
  -7.7699dBFS  0.0000dBFS   /dev/shm/track05.ogg.16607.wav
  -7.1890dBFS  0.0000dBFS   /dev/shm/track06.ogg.16607.wav
  -8.0084dBFS  0.0000dBFS   /dev/shm/track07.ogg.16607.wav
  -7.6048dBFS  0.0000dBFS   /dev/shm/track08.ogg.16607.wav
  -7.4123dBFS  0.0000dBFS   /dev/shm/track09.ogg.16607.wav
  -7.5195dBFS  0.0000dBFS   /dev/shm/track10.ogg.16607.wav
  -8.1773dBFS  0.0000dBFS   /dev/shm/track11.ogg.16607.wav
  -7.5512dBFS  0.0000dBFS   /dev/shm/track12.ogg.16607.wav
  Standard deviation is 0.39 dB
  -7.5314dBFS  average level
  0.031363dB   volume adjustment

I cannot understand why normalize-ogg seems to suppress the
final output lines (which include interesting data about
standard deviation, average, and per-album adjustment!).

I took a look at the normalize-ogg code, but my knowledge
about Perl is just a smattering, and, in addition, it is rusty.
Hence, I failed to understand the tricky part (with exec()
and pipe handling, I think...).

How can normalize-ogg be fixed to show all the output
of normalize-audio?"

Joachim Reichel <joachim_r>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joachim_r (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-06-09 joachim_r Attached File- Added normalize-ogg_showstats.diff, #49234

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code