Log in

View Full Version : Bug in mp3-wav output of Besweet 1.5b


Schultz
3rd December 2002, 14:22
I have been testing this for the last hour or so and i have found this out.. If you encoded a CBR mp3 at anything lower then 128 kbps Besweet writes teh wav header as it is 128kbps stream 48hz instead of it being the 64kbps 44.1hz. Another thing i just tested if you try and write a 128 kbps 44.1hz it writes it as a 128 kbps 48hz file.

Here are the Log files

64kbps wav-mp3 out file

BeSweet v1.5b8 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using lame_enc.dll v1.28 (4/6/2002), Engine 3.92 <http://www.mp3dev.org/>.

Logging start : 12/03/02 , 21:57:02.

C:\Downloads\DivxStuff\BeSweet\BeSweet.exe -core( -input f:\Dbz\eng258\eng258 AC3 T01 2_0ch 256Kbps DELAY -166ms.ac3 -output f:\Dbz\eng258\eng258 AC3 T01 2_0ch 256Kbps.wav -wavmp3 -logfile C:\Downloads\DivxStuff\BeSweet\BeSweet.log ) -azid( -n1 -c normal -L -3db ) -ota( -d -166 ) -split( -start 60 -end 75 ) -lame( --scale 1 -b 64 -p --resample 44.1 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : f:\Dbz\eng258\eng258 AC3 T01 2_0ch 256Kbps DELAY -166ms.ac3
[00:00:00:000] | Output: f:\Dbz\eng258\eng258 AC3 T01 2_0ch 256Kbps.wav
[00:00:00:000] | RIFF header will be added
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:-166] +-------- AZID -------
[00:00:00:-166] | Input Channels Mode: 2/0, Bitrate: 256kbps
[00:00:00:-166] | Output Stereo mode: Dolby surround compatible
[00:00:00:-166] | Total Gain: 0.000dB, Compression: Normal
[00:00:00:-166] | LFE levels: To LR -3.0dB, To LFE 0.0dB
[00:00:00:-166] | Center mix level: BSI
[00:00:00:-166] | Surround mix level: BSI
[00:00:00:-166] | Dialog normalization: Yes
[00:00:00:-166] | Rear channels filtering: No
[00:00:00:-166] | Source Sample-Rate: 48.0KHz
[00:00:00:-166] +-------- LAME -------
[00:00:00:-166] | Bitrate method : CBR
[00:00:00:-166] | MP3 bitrate : 64
[00:00:00:-166] | Channels Mode : Joint Stereo
[00:00:00:-166] | ReSample Rate : 44.1KHz
[00:00:00:-166] | Error Protection: Yes
[00:00:00:-166] +---------------------
[00:00:14:842] Conversion Completed !
[00:00:14:842] Actual Avg. Bitrate : 64kbps
[00:00:38:000] <-- Transcoding Duration
Logging ends : 12/03/02 , 21:57:40.

64kbps mp3 out

BeSweet v1.5b8 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using lame_enc.dll v1.28 (4/6/2002), Engine 3.92 <http://www.mp3dev.org/>.

Logging start : 12/03/02 , 22:01:26.

C:\Downloads\DivxStuff\BeSweet\BeSweet.exe -core( -input f:\Dbz\eng258\eng258 AC3 T01 2_0ch 256Kbps DELAY -166ms.ac3 -output f:\Dbz\eng258\eng258 AC3 T01 2_0ch 256Kbps.mp3 -logfile C:\Downloads\DivxStuff\BeSweet\BeSweet.log ) -azid( -n1 -c normal -L -3db ) -ota( -d -166 ) -split( -start 60 -end 75 ) -lame( --scale 1 -b 64 -p --resample 44.1 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : f:\Dbz\eng258\eng258 AC3 T01 2_0ch 256Kbps DELAY -166ms.ac3
[00:00:00:000] | Output: f:\Dbz\eng258\eng258 AC3 T01 2_0ch 256Kbps.mp3
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:-166] +-------- AZID -------
[00:00:00:-166] | Input Channels Mode: 2/0, Bitrate: 256kbps
[00:00:00:-166] | Output Stereo mode: Dolby surround compatible
[00:00:00:-166] | Total Gain: 0.000dB, Compression: Normal
[00:00:00:-166] | LFE levels: To LR -3.0dB, To LFE 0.0dB
[00:00:00:-166] | Center mix level: BSI
[00:00:00:-166] | Surround mix level: BSI
[00:00:00:-166] | Dialog normalization: Yes
[00:00:00:-166] | Rear channels filtering: No
[00:00:00:-166] | Source Sample-Rate: 48.0KHz
[00:00:00:-166] +-------- LAME -------
[00:00:00:-166] | Bitrate method : CBR
[00:00:00:-166] | MP3 bitrate : 64
[00:00:00:-166] | Channels Mode : Joint Stereo
[00:00:00:-166] | ReSample Rate : 44.1KHz
[00:00:00:-166] | Error Protection: Yes
[00:00:00:-166] +---------------------
[00:00:14:842] Conversion Completed !
[00:00:14:842] Actual Avg. Bitrate : 64kbps
[00:00:12:000] <-- Transcoding Duration
Logging ends : 12/03/02 , 22:01:38.

128kbps mp3-wav out

BeSweet v1.5b8 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using lame_enc.dll v1.28 (4/6/2002), Engine 3.92 <http://www.mp3dev.org/>.

Logging start : 12/03/02 , 22:04:46.

C:\Downloads\DivxStuff\BeSweet\BeSweet.exe -core( -input f:\Dbz\eng258\eng258 AC3 T01 2_0ch 256Kbps DELAY -166ms.ac3 -output f:\Dbz\eng258\eng258 AC3 T01 2_0ch 256Kbps.wav -wavmp3 -logfile C:\Downloads\DivxStuff\BeSweet\BeSweet.log ) -azid( -n1 -c normal -L -3db ) -ota( -d -166 ) -split( -start 60 -end 75 ) -lame( --scale 1 -b 128 -p --resample 44.1 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : f:\Dbz\eng258\eng258 AC3 T01 2_0ch 256Kbps DELAY -166ms.ac3
[00:00:00:000] | Output: f:\Dbz\eng258\eng258 AC3 T01 2_0ch 256Kbps.wav
[00:00:00:000] | RIFF header will be added
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:-166] +-------- AZID -------
[00:00:00:-166] | Input Channels Mode: 2/0, Bitrate: 256kbps
[00:00:00:-166] | Output Stereo mode: Dolby surround compatible
[00:00:00:-166] | Total Gain: 0.000dB, Compression: Normal
[00:00:00:-166] | LFE levels: To LR -3.0dB, To LFE 0.0dB
[00:00:00:-166] | Center mix level: BSI
[00:00:00:-166] | Surround mix level: BSI
[00:00:00:-166] | Dialog normalization: Yes
[00:00:00:-166] | Rear channels filtering: No
[00:00:00:-166] | Source Sample-Rate: 48.0KHz
[00:00:00:-166] +-------- LAME -------
[00:00:00:-166] | Bitrate method : CBR
[00:00:00:-166] | MP3 bitrate : 128
[00:00:00:-166] | Channels Mode : Joint Stereo
[00:00:00:-166] | ReSample Rate : 44.1KHz
[00:00:00:-166] | Error Protection: Yes
[00:00:00:-166] +---------------------
[00:00:14:842] Conversion Completed !
[00:00:14:842] Actual Avg. Bitrate : 128kbps
[00:00:52:000] <-- Transcoding Duration
Logging ends : 12/03/02 , 22:05:38.


Also for you to listen to the corresponding files i only encoded 15 secs of the audio you can get them along with the log files at
http://www.edensrising.com/besweet_test.zip
If you want any other information i can supply it.

DSPguru
3rd December 2002, 18:29
10x, Schultz!
fixing this already appears in my to-do list.

until i fix this, you could find a solution in here :
http://forum.doom9.org/showthread.php?s=&threadid=39506&pagenumber=2

Schultz
4th December 2002, 02:56
Ok thanks. sorry for reporting something that you already knew about i should of searched a little bit more. But i already have a way around it just using BeSweet with mp3 output and using wavmp3 program that you can download off Doom9's site. Just will be nice to skip this *extra* step. :D Thanks again for this great tool.

DSPguru
4th December 2002, 16:48
as for wavemp3, BeSplit offers the very same thing.
in fact, "fixing" this BeSweet bug mostly means integrating BeSplit's riff's routine into BeSweet.
could you confirm that BeSplit's "-addriff" works well :) ?

Schultz
5th December 2002, 12:15
OK i just tested BeSplit with two Files created with BeSweet first one was direct mp3 and second was wav-mp3 and BeSplit wrote the correct info in both of them. But i am going to check one more test because i Found something else out.. BeSweet is using the Value that comes outta SSRC.. SO if you have it down sample to 44.1hz BeSweet will write this information into the riff header instead of what Lame outputs.. Going to test BeSplit out when i leave the frequancy as 48 and Lame writes it at 33 or what ever it writes it as when you do < 128 and don't force it to 44.1hz. and will tell you have BeSplit handles that.

Schultz
5th December 2002, 12:42
I just did my tests with letting Lame automatically resample because of low bitrates and when running the wav-mp3 or a mp3 file BeSplit writes the Sample rate as 44.1hz instead of the proper one that is in the mp3 file. But if the source file is 48hz then it keeps it as 48hz. I guess i can solve this problem by myself in having BeSweet SSRC to 44.1hz and have Lame Resample to 44.1hz then the only problem is BeSweet writing the 128 cbr header.. but hopefully thats all the information you need if you want me to post some log files i can do that also..

On a second note i just tried the new BeSweetGUI 65b and what happened to AutoGain? do you use the HybridGain mode instead of this.. I couldn't find any information about the new GUI that tells yea. Because there is never a changelog or anything on the GUI's.

DSPguru
6th December 2002, 13:44
Originally posted by Schultz
if you want me to post some log files i can do that also..yes, please. always.

On a second note i just tried the new BeSweetGUI 65b and what happened to AutoGain? do you use the HybridGain mode instead of this.. I couldn't find any information about the new GUI that tells yea. Because there is never a changelog or anything on the GUI's. autogain is "PreGain. Normalize to. 100%".
Hybridgain (http://forum.doom9.org/showthread.php?s=&threadid=36775) only applies to latest BeSweet's betas and information can be found via its tooltip ;)

arno
7th March 2003, 09:13
Currently adding a WAV-header with BeSweet (using -core( -mp3wav )) doesn't generate an output file that is suitable for import into VirtualDub (via "WAV Audio"). As far as I can tell the added WAV header isn't a "RIFF WAV" header, correct me if I'm wrong. Anyway would it be possible to make it compatible with VirtualDub?

DSPguru
7th March 2003, 11:01
:logfile:

MrDarcy
27th April 2003, 22:26
I have a mpa file (MPEG-1 layer 2) and I'm trying to convert it to MP3 with WAV header to mux it with Vdub. I need it at 128 CBR because the Kiss player doesn't like VBR.

No problems with BeSweet 1.4 and GUI 0.6 b61. It launches hip.dll 1.13 and the result is perfect.

With BeSweet 1.5 b16 + GUI 0.6 b71 + hip.dll 1.19 which came with latest GordianKnot 0.28 the output file is quite weird.

Its external size is correct (about 100 GB), but when muxed with video in VDUB, the output AVI is only 3 GB bigger than the input AVI with video only. Trying to playback the Divx the audio is completely out of sync, with video running extremely fast (4-5 times the regular speed).

I loaded the WAV in Winamp 2.90, but the slider immediately jump to the end and it's impossibile to move it.

Where is the problem ?

odysseus
22nd July 2003, 00:06
1 vob at a time, running through BeSweet looks like the length of the wav-mp3 is set wrong, up to 6 times the actual length.

With the batch vob processing the end-result is a 900 meg wav-mp3 where the wav file (from dvd2avi ) is 1200 meg.

running from command lines it works OK, using ssrc and lame on the wav file from DVD2AVI.

have not yet tried ac3 file (from dvd2avi) azid -> ssrc -> lame -> add riff headers.

I hope I'm the one doing something wrong here.

f:\sams\dvdstuf\BeSweetv1.5b19\BeSweet.exe -core( -input F:\sams\dvdstuf\BeSweetv1.5b19\~temp.lst -output l:\vobs\bd1.wav -wavmp3 -logfilea F:\sams\dvdstuf\BeSweetv1.5b19\BeSweet.log ) -ssrc( --rate 22050 ) -lame( --silent -q 0 -b 96 -p --lowpass 18 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : F:\sams\vobs\VTS_01_1.vob
[00:00:00:000] | Output: l:\vobs\bd1.wav
[00:00:00:000] | RIFF header will be added
[00:00:00:000] | Substream ID: 0x80
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] +-------- AZID -------
[00:00:00:000] | Output Stereo mode: Dolby surround compatible
[00:00:00:000] | Total Gain: 0.000dB, Compression: None
[00:00:00:000] | LFE levels: To LR -INF, To LFE 0.0dB
[00:00:00:000] | Center mix level: BSI
[00:00:00:000] | Surround mix level: BSI
[00:00:00:000] | Dialog normalization: No
[00:00:00:000] | Rear channels filtering: No
[00:00:00:000] +------ Shibatch -----
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] | Dest. Sample-Rate: 22.1KHz
[00:00:00:000] | Attenuation : 0.0db
[00:00:00:000] +-------- LAME -------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | MP3 bitrate : 96
[00:00:00:000] | Channels Mode : Joint Stereo
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[00:32:31:968] | Input : F:\sams\vobs\VTS_01_2.vob
[00:32:31:968] | Output: l:\vobs\bd1.wav
[00:32:31:968] | RIFF header will be added
[00:32:31:968] | Substream ID: 0x80
[00:32:31:968] | Floating-Point Process: Yes
[00:32:31:968] +-------- AZID -------
[00:32:31:968] | Output Stereo mode: Dolby surround compatible
[00:32:31:968] | Total Gain: 0.000dB, Compression: None
[00:32:31:968] | LFE levels: To LR -INF, To LFE 0.0dB
[00:32:31:968] | Center mix level: BSI
[00:32:31:968] | Surround mix level: BSI
[00:32:31:968] | Dialog normalization: No
[00:32:31:968] | Rear channels filtering: No
[00:32:31:968] +------ Shibatch -----
[00:32:31:968] | Source Sample-Rate: 48.0KHz
[00:32:31:968] | Dest. Sample-Rate: 22.1KHz
[00:32:31:968] | Attenuation : 0.0db
[00:32:31:968] +---------------------
[01:37:36:704] | Input : F:\sams\vobs\VTS_01_3.vob
[01:37:36:704] | Output: l:\vobs\bd1.wav
[01:37:36:704] | RIFF header will be added
[01:37:36:704] | Substream ID: 0x80
[01:37:36:704] | Floating-Point Process: Yes
[01:37:36:704] +-------- AZID -------
[01:37:36:704] | Output Stereo mode: Dolby surround compatible
[01:37:36:704] | Total Gain: 0.000dB, Compression: None
[01:37:36:704] | LFE levels: To LR -INF, To LFE 0.0dB
[01:37:36:704] | Center mix level: BSI
[01:37:36:704] | Surround mix level: BSI
[01:37:36:704] | Dialog normalization: No
[01:37:36:704] | Rear channels filtering: No
[01:37:36:704] +------ Shibatch -----
[01:37:36:704] | Source Sample-Rate: 48.0KHz
[01:37:36:704] | Dest. Sample-Rate: 22.1KHz
[01:37:36:704] | Attenuation : 0.0db
[01:37:36:704] +---------------------
[03:15:03:840] | Input : F:\sams\vobs\VTS_01_4.vob
[03:15:03:840] | Output: l:\vobs\bd1.wav
[03:15:03:840] | RIFF header will be added
[03:15:03:840] | Substream ID: 0x80
[03:15:03:840] | Floating-Point Process: Yes
[03:15:03:840] +-------- AZID -------
[03:15:03:840] | Output Stereo mode: Dolby surround compatible
[03:15:03:840] | Total Gain: 0.000dB, Compression: None
[03:15:03:840] | LFE levels: To LR -INF, To LFE 0.0dB
[03:15:03:840] | Center mix level: BSI
[03:15:03:840] | Surround mix level: BSI
[03:15:03:840] | Dialog normalization: No
[03:15:03:840] | Rear channels filtering: No
[03:15:03:840] +------ Shibatch -----
[03:15:03:840] | Source Sample-Rate: 48.0KHz
[03:15:03:840] | Dest. Sample-Rate: 22.1KHz
[03:15:03:840] | Attenuation : 0.0db
[03:15:03:840] +---------------------
[05:24:52:544] | Input : F:\sams\vobs\VTS_01_5.vob
[05:24:52:544] | Output: l:\vobs\bd1.wav
[05:24:52:544] | RIFF header will be added
[05:24:52:544] | Substream ID: 0x80
[05:24:52:544] | Floating-Point Process: Yes
[05:24:52:544] +-------- AZID -------
[05:24:52:544] | Output Stereo mode: Dolby surround compatible
[05:24:52:544] | Total Gain: 0.000dB, Compression: None
[05:24:52:544] | LFE levels: To LR -INF, To LFE 0.0dB
[05:24:52:544] | Center mix level: BSI
[05:24:52:544] | Surround mix level: BSI
[05:24:52:544] | Dialog normalization: No
[05:24:52:544] | Rear channels filtering: No
[05:24:52:544] +------ Shibatch -----
[05:24:52:544] | Source Sample-Rate: 48.0KHz
[05:24:52:544] | Dest. Sample-Rate: 22.1KHz
[05:24:52:544] | Attenuation : 0.0db
[05:24:52:544] +---------------------
[08:07:14:080] | Input : F:\sams\vobs\VTS_01_6.vob
[08:07:14:080] | Output: l:\vobs\bd1.wav
[08:07:14:080] | RIFF header will be added
[08:07:14:080] | Substream ID: 0x80
[08:07:14:080] | Floating-Point Process: Yes
[08:07:14:080] +-------- AZID -------
[08:07:14:080] | Output Stereo mode: Dolby surround compatible
[08:07:14:080] | Total Gain: 0.000dB, Compression: None
[08:07:14:080] | LFE levels: To LR -INF, To LFE 0.0dB
[08:07:14:080] | Center mix level: BSI
[08:07:14:080] | Surround mix level: BSI
[08:07:14:080] | Dialog normalization: No
[08:07:14:080] | Rear channels filtering: No
[08:07:14:080] +------ Shibatch -----
[08:07:14:080] | Source Sample-Rate: 48.0KHz
[08:07:14:080] | Dest. Sample-Rate: 22.1KHz
[08:07:14:080] | Attenuation : 0.0db
[08:07:14:080] +---------------------
[11:15:53.946] W7: Downmix overflow (1: +0.5dB)
[11:16:04.421] W7: Downmix overflow (1: +0.1dB)
[11:20:19.296] W7: Downmix overflow (0: +0.3dB)
[11:21:57:696] | Input : F:\sams\vobs\VTS_01_7.vob
[11:21:57:696] | Output: l:\vobs\bd1.wav
[11:21:57:696] | RIFF header will be added
[11:21:57:696] | Substream ID: 0x80
[11:21:57:696] | Floating-Point Process: Yes
[11:21:57:696] +-------- AZID -------
[11:21:57:696] | Output Stereo mode: Dolby surround compatible
[11:21:57:696] | Total Gain: 0.000dB, Compression: None
[11:21:57:696] | LFE levels: To LR -INF, To LFE 0.0dB
[11:21:57:696] | Center mix level: BSI
[11:21:57:696] | Surround mix level: BSI
[11:21:57:696] | Dialog normalization: No
[11:21:57:696] | Rear channels filtering: No
[11:21:57:696] +------ Shibatch -----
[11:21:57:696] | Source Sample-Rate: 48.0KHz
[11:21:57:696] | Dest. Sample-Rate: 22.1KHz
[11:21:57:696] | Attenuation : 0.0db
[11:21:57:696] +---------------------
[14:30:37.562] W7: Downmix overflow (1: +0.5dB)
[14:30:48.037] W7: Downmix overflow (1: +0.1dB)
[14:35:02.912] W7: Downmix overflow (0: +0.3dB)
[15:09:03:648] | Input : F:\sams\vobs\VTS_01_8.vob
[15:09:03:648] | Output: l:\vobs\bd1.wav
[15:09:03:648] | RIFF header will be added
[15:09:03:648] | Substream ID: 0x80
[15:09:03:648] | Floating-Point Process: Yes
[15:09:03:648] +-------- AZID -------
[15:09:03:648] | Output Stereo mode: Dolby surround compatible
[15:09:03:648] | Total Gain: 0.000dB, Compression: None
[15:09:03:648] | LFE levels: To LR -INF, To LFE 0.0dB
[15:09:03:648] | Center mix level: BSI
[15:09:03:648] | Surround mix level: BSI
[15:09:03:648] | Dialog normalization: No
[15:09:03:648] | Rear channels filtering: No
[15:09:03:648] +------ Shibatch -----
[15:09:03:648] | Source Sample-Rate: 48.0KHz
[15:09:03:648] | Dest. Sample-Rate: 22.1KHz
[15:09:03:648] | Attenuation : 0.0db
[15:09:03:648] +---------------------
[18:17:43.514] W7: Downmix overflow (1: +0.5dB)
[18:17:53.989] W7: Downmix overflow (1: +0.1dB)
[18:22:08.864] W7: Downmix overflow (0: +0.3dB)
[18:56:48:224] | Input : F:\sams\vobs\VTS_05_1.vob
[18:56:48:224] | Output: l:\vobs\bd1.wav
[18:56:48:224] | RIFF header will be added
[18:56:48:224] | Substream ID: 0x80
[18:56:48:224] | Floating-Point Process: Yes
[18:56:48:224] +-------- AZID -------
[18:56:48:224] | Output Stereo mode: Dolby surround compatible
[18:56:48:224] | Total Gain: 0.000dB, Compression: None
[18:56:48:224] | LFE levels: To LR -INF, To LFE 0.0dB
[18:56:48:224] | Center mix level: BSI
[18:56:48:224] | Surround mix level: BSI
[18:56:48:224] | Dialog normalization: No
[18:56:48:224] | Rear channels filtering: No
[18:56:48:224] +------ Shibatch -----
[18:56:48:224] | Source Sample-Rate: 48.0KHz
[18:56:48:224] | Dest. Sample-Rate: 22.1KHz
[18:56:48:224] | Attenuation : 0.0db
[18:56:48:224] +---------------------
[22:05:28.090] W7: Downmix overflow (1: +0.5dB)
[22:05:38.565] W7: Downmix overflow (1: +0.1dB)
[22:09:53.440] W7: Downmix overflow (0: +0.3dB)
[22:53:14:048] Conversion Completed !
[22:53:14:048] Actual Avg. Bitrate : 43kbps
[06:22:37:000] <-- Transcoding Duration

Logging ends : 07/15/03 , 03:29:47.

odysseus
22nd July 2003, 00:10
prematurely hit 'post'

in winamp the file seems to play fine, although winamp and winmedia player report the file is still 48khz.

BUT mpg123 reports 22050 kHz. so I think that's OK

Anyway in virtualdub, halfway through the movie it's still playing the first scene's music. Pitch and speed are OK.

odysseus
22nd July 2003, 02:37
One more observation.

In winamp and winmedia, although the files seem to play fine (no pitch changes, no speed changes) the length of the wav-mp3 shows up as some enormous number, like 60,000 hours.