felixk
9th July 2005, 03:12
Hi there,
When I was staring at the AutoGK progress, i noticed that normalize.exe is taking quite a while for reading the 1GB+ wav audio track, and writing the normalized track back to disk.
This process can be sped up by piping the normalized wav file directly into lame (lame supports reading from stdin) so that the disk does not need to read and write huge chunks of data at the same time. The problem was that normalize did not support writing to stdout.
Luckily, normalize is GNU GPL'ed and I could modify the code so that streaming the wave to stdout is now possible.
Passing the normalized wav directly to lame is a bit faster, as my timings showed on a AthlonXP 3200+ with a 2-hour audio track:
Writing normalized wave to disk:
azid: 3:40
normalize: 2:18
lame: 4:27
(normalize+lame: 6:45)
Total: 10:25 minutes
Piping normalized wav to lame:
azid: 3:35
normalize+lame: 5:14
Total: 8:49 minutes.
Len0x, could you have a look at my version of normalize?
Is it possible to use this method in AutoGK?
Cheers,
Felix
----------
I attached a zip file containing:
modified normalize.exe.
source code.
Batch files for testing. Results.
When I was staring at the AutoGK progress, i noticed that normalize.exe is taking quite a while for reading the 1GB+ wav audio track, and writing the normalized track back to disk.
This process can be sped up by piping the normalized wav file directly into lame (lame supports reading from stdin) so that the disk does not need to read and write huge chunks of data at the same time. The problem was that normalize did not support writing to stdout.
Luckily, normalize is GNU GPL'ed and I could modify the code so that streaming the wave to stdout is now possible.
Passing the normalized wav directly to lame is a bit faster, as my timings showed on a AthlonXP 3200+ with a 2-hour audio track:
Writing normalized wave to disk:
azid: 3:40
normalize: 2:18
lame: 4:27
(normalize+lame: 6:45)
Total: 10:25 minutes
Piping normalized wav to lame:
azid: 3:35
normalize+lame: 5:14
Total: 8:49 minutes.
Len0x, could you have a look at my version of normalize?
Is it possible to use this method in AutoGK?
Cheers,
Felix
----------
I attached a zip file containing:
modified normalize.exe.
source code.
Batch files for testing. Results.