My wife asked me to create an audio CD for her, from an assortment of audio tracks she collected from various sources. It was easy enough to accomplish this with K3b. But the resulting audio CD was annoying to listen to, because I had to change the volume setting for each track.
It's a classic noob's mistake: I should've enabled audio normalization.
So I tried it again, but found that I couldn't enable audio normalization in K3b. Turns out that K3b uses an external application (called - surprise! - normalize-audio) to perform this task, and K3b just couldn't find it - a fact that was clearly (?) stated in the programs section of the K3b settings dialog.
I tried launching normalize-audio at the command line, and it seemed to be installed alright. A quick Net search brought me to Debian bug #597155 and Ubuntu bug #45026. The root cause of the problem is that normalize-audio reports its version number as
normalize 0.7.7while K3b expects
This can be fixed either in K3b or in normalize-audio, and patches for both sides have already been posted. But neither has been incorporated yet. In the meantime, I've implemented a workaround, based on suggestions in those bug reports:
- create (as root) an executable script named normalize-audio under /usr/local/bin/ with the following contents:
#!/bin/bash case "$1" in --version) /usr/bin/normalize-audio --version | sed -e 's/normalize/normalize-audio/g' ;; *) /usr/bin/normalize-audio "$@" ;; esac
- make this script executable:
chmod a+x /usr/local/bin/normalize-audio
- this script is supposed to be used as a wrapper for normalize-audio, so make sure that /usr/local/bin/ appears in the PATH environment variable, and that it comes before /usr/bin
- launch K3b from a new command shell - it should now detect normalize-audio and allow you to use it
Time to Burn!
[05 Nov 2011] UPDATE: fixed script to work with file names/paths that contain spaces (Thanks anonymous commenter!)