Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd November 2002, 20:43   #1  |  Link
SirElvis
Registered User
 
Join Date: Sep 2002
Location: Germany, Augsburg
Posts: 58
BeSweet v1.5b2/4 adds click to ogg output.

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:

Code:
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 is offline   Reply With Quote
Old 2nd November 2002, 21:13   #2  |  Link
SirElvis
Registered User
 
Join Date: Sep 2002
Location: Germany, Augsburg
Posts: 58
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????

Last edited by SirElvis; 2nd November 2002 at 21:41.
SirElvis is offline   Reply With Quote
Old 3rd November 2002, 03:33   #3  |  Link
JohnMK
Registered User
 
Join Date: Sep 2002
Location: Seattle
Posts: 551
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.
JohnMK is offline   Reply With Quote
Old 3rd November 2002, 10:42   #4  |  Link
SirElvis
Registered User
 
Join Date: Sep 2002
Location: Germany, Augsburg
Posts: 58
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).
SirElvis is offline   Reply With Quote
Old 3rd November 2002, 13:38   #5  |  Link
JohnMK
Registered User
 
Join Date: Sep 2002
Location: Seattle
Posts: 551
Very mysterious. DSPGuru is so busy these days, I hope has time to look into this.
JohnMK is offline   Reply With Quote
Old 5th November 2002, 12:18   #6  |  Link
SirElvis
Registered User
 
Join Date: Sep 2002
Location: Germany, Augsburg
Posts: 58
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):

Code:
LISTB INFOISFT5 GoldWave (C) Chris S. Craig, http://www.goldwave.com
This 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.
SirElvis is offline   Reply With Quote
Old 5th November 2002, 13:18   #7  |  Link
JohnMK
Registered User
 
Join Date: Sep 2002
Location: Seattle
Posts: 551
Might be better to talk to the makers of Gold Wave. There might already be a way to disable that data.
JohnMK is offline   Reply With Quote
Old 5th November 2002, 18:43   #8  |  Link
DSPguru
BeSweet Author
 
DSPguru's Avatar
 
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
i have two ideas how solve this. currently, don't have the time..

please be patient.
DSPguru is offline   Reply With Quote
Old 5th November 2002, 18:54   #9  |  Link
SirElvis
Registered User
 
Join Date: Sep 2002
Location: Germany, Augsburg
Posts: 58
Thanks!

Meanwhile I'm using StripWav to 'fix' the WAV after editing.
SirElvis is offline   Reply With Quote
Old 8th November 2002, 14:49   #10  |  Link
DSPguru
BeSweet Author
 
DSPguru's Avatar
 
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
please retry with beta5.
DSPguru is offline   Reply With Quote
Old 8th November 2002, 16:05   #11  |  Link
SirElvis
Registered User
 
Join Date: Sep 2002
Location: Germany, Augsburg
Posts: 58
No, that didn't help. That click is still there.
SirElvis is offline   Reply With Quote
Old 31st December 2002, 19:33   #12  |  Link
frank
Registered User
 
Join Date: Oct 2001
Location: Germany
Posts: 743
BeeSweet 1.4/1.5 BUG: Clicks at end

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

Last edited by frank; 31st December 2002 at 19:41.
frank is offline   Reply With Quote
Old 2nd January 2003, 20:09   #13  |  Link
DSPguru
BeSweet Author
 
DSPguru's Avatar
 
Join Date: Oct 2001
Location: On top of a supercompact cardinal
Posts: 3,506
@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.

Last edited by DSPguru; 3rd January 2003 at 07:32.
DSPguru is offline   Reply With Quote
Old 3rd January 2003, 14:59   #14  |  Link
frank
Registered User
 
Join Date: Oct 2001
Location: Germany
Posts: 743
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 Internet
Quote:
Cool 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...

Last edited by frank; 4th January 2003 at 15:32.
frank is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 21:58.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.