Crack when converting with pipe
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dir2ogg |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
An mp3 file I produces a "crack" sound in the beginning of the resulting .ogg file when it's converted using pipe.
dir2ogg output:
$ dir2ogg -q4 ./
dir2ogg 0.11.8 (2009-08-04), converts audio files into ogg vorbis.
INFO: Converting "/home/
[wav.c:371] warning: Cannot rewind WAV file. File-format isn't fully conform now.
Encoding standard input to
at quality 4,00
Encoding [ 0m53s so far] | [wav.c:371] warning: Cannot rewind WAV file. File-format isn't fully conform now.
Done encoding file "/home/
File length: 9m 12,0s
Elapsed time: 0m 53,7s
Rate: 10,2846
Average bitrate: 118,3 kb/s
Using the -P option eliminates this. I can upload the source/resulting files if necessary.
I too am experiencing this problem. The issue is that when using the `mpg123` and `mpg321` decoders, `dir2ogg` calls them in a way that causes them to generate a WAV-formatted audio stream to send to `oggenc`, which is expecting a RAW stream.
I have attached a patch that adjusts the arguments for the noted decoders that should correct this.