Log in

View Full Version : BeSweet problem with Lame --resample 24


leos_janacek
14th January 2004, 10:34
I'm trying to reencode some audio and the conversion fails with "Error 47: Error with LAME DLL".

Removing the "--resample 24" seems to work.

I can do the same basic command with RazorLame, so I'm not sure what's going on.

Here is the log.


BeSweet v1.5b25 by DSPguru.
--------------------------
Using lame_enc.dll v1.32 (8/8/2003), Engine 3.90 <http://www.mp3dev.org/>.
Manual Dynamic-Compression algorithm by LigH (author of WaveBooster).

Logging start : 01/14/04 , 01:31:39.

C:\Program Files\besweet\BeSweet.exe -core( -input c:\My Music\History3\History3.01.01.wav -output c:\My Music\History3\History3.01.01.mp3 -logfilea C:\Program Files\besweet\BeSweet.log ) -boost( /b2=3 ) -lame( -m m --noshort -b 48 --lowpass 12 --resample 24 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : c:\My Music\History3\History3.01.01.wav
[00:00:00:000] | Output: c:\My Music\History3\History3.01.01.mp3
[00:00:00:000] | Floating-Point Process: Yes
Error 47: Error with LAME dll!
Quiting...
[00:00:00:000] Conversion Completed !

Logging ends : 01/14/04 , 01:31:39.


TIA.

DSPguru
14th January 2004, 18:06
:search: you should use --resample 24000
http://forum.doom9.org/showthread.php?s=&threadid=11607

KpeX
14th January 2004, 18:37
Since you're using BeSweet anyways, why not use SSRC to resample?

leos_janacek
15th January 2004, 02:59
I'm not sure "--resample 24000" is correct, as the LAME documentation states that this value is in kHz:

* --resample 8/11.025/12/16/22.05/24/32/44.1/48 output sampling frequency in kHz
Select ouptut sampling frequency (for encoding only).
If not specified, LAME will automatically resample the input when using high compression ratios.


I don't want the sampling rate to be 24,000,000 Hz.

The reason I want to use the --resample 24 is I am encoding speech only and I want Lame's MPEG2 algorithm to kick in.

Further, with the same file, "--resample 32" works, while "--resample 24" fails with Error 47.

KpeX
15th January 2004, 03:52
Originally posted by leos_janacek
I'm not sure "--resample 24000" is correct, as the LAME documentation states that this value is in kHz:

* --resample 8/11.025/12/16/22.05/24/32/44.1/48 output sampling frequency in kHz
Select ouptut sampling frequency (for encoding only).
If not specified, LAME will automatically resample the input when using high compression ratios. You're not using Lame, you're using a lame dll through besweet. If you want to use lame, use lame. If you want to use besweet, use besweet. Did you even read the thread DSPguru linked to? It explains why 32 works and 24 does not.Originally posted by leos_janacek
I don't want the sampling rate to be 24,000,000 Hz.

The reason I want to use the --resample 24 is I am encoding speech only and I want Lame's MPEG2 algorithm to kick in.

Further, with the same file, "--resample 32" works, while "--resample 24" fails with Error 47. Either use SSRC, or use the lame exe, or read the thread DSPguru linked to!!!!

leos_janacek
15th January 2004, 06:34
Jeez... no need to get testy!

It's a legitimate point of confusion on my point. I did read the thread DSPGuru pointed to... I'm just a little confused when I'm told to put in "24000" in Hz as the argument to "--resample", when the nominal values are "48" or "44.1", clearly in kHz.

In the thread DSPGuru linked to, he wrote:

> BeSweet v0.9 will support : --resample 44.1,
> --resample 48 & --resample 32 (as well as 44100,48000&32000).

so I can only assume that sometimes one should use Hz and sometimes one should use kHz.

I appreciate the fact that there are users here who are experts and lose their patience with newbies.

Kpex wrote:
> You're not using Lame, you're using a lame dll through besweet.

Yeah... you're right.

Oh... btw... I did actually *try* it and 24000 did give me a properly encoded 24kHz MP3.

I guess the missing piece for me (please don't get mad at me for asking!) is, what is the relationship between the parameters used in besweet for lame encoding which are passed to lame_enc.dll and the actual parameters for lame.exe? I assume by the above responses that they are not one-to-one?

To this point, if I want to 12 kHz lowpass filter, should I use "12" or "12000"?

Thanks.

KpeX
15th January 2004, 15:56
Originally posted by leos_janacek
I guess the missing piece for me (please don't get mad at me for asking!) is, what is the relationship between the parameters used in besweet for lame encoding which are passed to lame_enc.dll and the actual parameters for lame.exe? I assume by the above responses that they are not one-to-one? They are not exactly one to one, I'm not sure of the exact relationships, your best bet is to search and check the help file included with BeSweet. This is not a common issue because normally when using BeSweet one would resample with SSRC.

As far as 12khz goes, I would assume 12000 would be the correct command, but test to be sure.