View Full Version : BeSweet not avoiding metadata in wave files
SirElvis
2nd November 2002, 20:43
When transcoding a WAV file to ogg using BeSweet 1.5b2 or 1.5b4 I get a click a the very end of the file. It's definately not a playback problem, when opening the file using GoldWave you can see that click. And the click is _not_ in the WAV. Here is the logfile, if it helps:
BeSweet v1.5b4 by DSPguru.
--------------------------
Using Ogg Vorbis v1.0 dlls (http://www.vorbis.com).
Manual Dynamic-Compression algorithm by LigH (author of WaveBooster).
Logging start : 11/02/02 , 20:33:55.
F:\video\[TOOLS]\BeSweet\BeSweet.exe -core( -input F:\video\[WORK]\test.wav
-output F:\video\[WORK]\test.ogg -logfile F:\video\[WORK]\test.log ) -ota( -hybridgain )
-boost( /b=2db ) -ogg( -q 0.500 ) -profile( The OggMachine v0.6b1 )
[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : F:\video\[WORK]\test.wav
[00:00:00:000] | Output: F:\video\[WORK]\test.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +-------- BOOST ------
[00:00:00:000] | Algorithm by : LigH
[00:00:00:000] | Boost Factor : 1.3
[00:00:00:000] | Limit Factor : 0.99
[00:00:00:000] +-------- OGG --------
[00:00:00:000] | VBR Quality : 0.500
[00:00:00:000] +---------------------
[00:21:37:953] Gain of 0.6dB had been asserted to file.
[00:21:37:953] Conversion Completed !
[00:21:37:953] Actual Avg. Bitrate : 115kbps
[00:02:58:000] <-- Transcoding Duration
Logging ends : 11/02/02 , 20:36:53.
I can post a transcoded file, if it helps.
SirElvis
2nd November 2002, 21:13
I just went back to BeSweet 1.4 and found out that it also appends this click to the end of the file. I suppose I just haven't noticed before. But still I think, the problem is related to BeSweet, because there is no click when saving the WAV as OGG in GoldWave. Also it is _not_ related to the -ota or -boost switches. A simple -core( -input -output ) -ogg( -q 0.5 ) also produces the click.
Edit: Ok, I changed my mind ;). It's not BeSweet related. The 'oggenc', that comes with the vorbis tools also gives me this click.
Why????
JohnMK
3rd November 2002, 03:33
Is it perhaps an incomplete rip? I used to get this at the beginning of a sound file if I say, ripped half the chapters for 1 CD, and the second half for the second CD.
SirElvis
3rd November 2002, 10:42
Nope. I ripped all chapters and then converted to WAV to edit the file. No incomplete rip, and no click in the original file.
I've continued to make some tests. Here's what I found out:
A empty wav file(just silence) gets no click appended.
If there is silence at the end of the file the click is there, but right after the end of the noise(not at the absolute end of the file).
JohnMK
3rd November 2002, 13:38
Very mysterious. DSPGuru is so busy these days, I hope has time to look into this.
SirElvis
5th November 2002, 12:18
Ok, I think I finally found the problem. I simply got a WAV file(converted from a AC3 using besweet) and encoded it to ogg. I noticed that there is _NO_ click at the end. So I opened the WAV in GoldWave and just saved it again with another filename but non changes to the audio. After converting it to ogg the click was again there. So I compared the file sizes and they were different. The file saved by GoldWav is a few bytes bigger. So I compared the with a hex editor and found out that GoldWave appended the following to the file(all non ASCII chars removed):
LISTB INFOISFT5 GoldWave (C) Chris S. Craig, http://www.goldwave.comThis seems to me like some information or tag, or whatever. I suppose that BeSweet mistakens this for audio data and converts it to OGG just as the rest of the file.
I hope BeSweet, will be modified to ignore this data, because I'm pretty used to GoldWave as a audio editor.
I've attached a file containig the last few bytes of the WAV file.
JohnMK
5th November 2002, 13:18
Might be better to talk to the makers of Gold Wave. There might already be a way to disable that data.
DSPguru
5th November 2002, 18:43
i have two ideas how solve this. currently, don't have the time..
please be patient.
SirElvis
5th November 2002, 18:54
Thanks!
Meanwhile I'm using StripWav (http://www.lightlink.com/tjweber/StripWav/StripWav.html) to 'fix' the WAV after editing.
DSPguru
8th November 2002, 14:49
please retry with beta5.
SirElvis
8th November 2002, 16:05
No, that didn't help. That click is still there.
frank
31st December 2002, 19:33
On some tracks my compilations ac3/wav to mp2 ended with clicks.
Now I have done some tests to nail this damned bug.
Finally I reduced the problem to a simple wav to wav conversion.
It seems there is a bug in the stream buffer. The encoded tracks are filled up with some noise samples.
My system: P4 2000, Win XP.
I attached a wav that makes that trouble.
BeSweet v1.5b11 by DSPguru.
--------------------------
Logging start : 12/31/02 , 19:30:21.
d:\DVD\AudioTools\BeSweet\BeSweet.exe -core( -input c:\Temp\test.wav -output c:\Temp\test-New.wav -2ch -logfile D:\DVD\AudioTools\BeSweet\BeSweet.log ) -azid( -n1 -s surround -c normal -L 0db ) -ota( -d 0 ) -profile( ~~~~~ Default Profile ~~~~~ )
[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : c:\Temp\test.wav
[00:00:00:000] | Output: c:\Temp\test-New.wav
[00:00:00:000] | Floating-Point Process: No
[00:00:00:000] | Source Sample-Rate: 44.1KHz
[00:00:00:000] +---------------------
[00:00:01:622] Conversion Completed !
[00:00:01:622] Actual Avg. Bitrate : 1412kbps
[00:00:00:000] <-- Transcoding Duration
Logging ends : 12/31/02 , 19:30:21.
Garbage produced by GUI
DSPguru
2nd January 2003, 20:09
@frank
you have the same problems as SirElvis', your source wave file includes garbage (metadata) at the end of it.
use StripWav to fix this, or wait until i find the time to play with it.
frank
3rd January 2003, 14:59
Tnx, and a happy new year!
That short wav attachment I cutted from a large wav with the help of ce2000 pro. The large one was generated by BeSweet. Metadata on the end? Very strange.
EDIT:
From InternetCool Edit optionally leaves a blob of data at the end of the .WAV file, which is legal in the file format but not expected by some utilities. To avoid this, make sure the "Save extra non-audio information" box isn't checked. Oh, I did that on cutting... :(
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.