Custom control/front end DLL for Lame dll? |
![]() ![]() |
Custom control/front end DLL for Lame dll? |
Aug 13 2008, 13:13
Post
#1
|
|
![]() Group: Members Posts: 381 Joined: 9-April 06 From: Czech Republic Member No.: 29311 |
Hello, would it be possible to make a "front-end" dll to control existing Lame dll,
Here's what the front end DLL would do: 1) it would accept a normal Lame command line 2) it would add a command line from external txt file and keep only the file related settings (infile/outfile) from the input command line 3) it would pass this modified cmd line to existing Lame dll. Reason for this is that I want to use Oddcast (now Edcast) for sending mp3 stream, and it does not allow any settings on the mp3 encoder, and probably passes some exotic switches which I'm not aware of, messing up the quality. |
|
|
|
Aug 13 2008, 15:27
Post
#2
|
|
![]() LAME developer Group: Developer Posts: 761 Joined: 22-September 01 Member No.: 5 |
How about "lame_enc.dll modified to use INI file setup" ?
|
|
|
|
Aug 13 2008, 15:53
Post
#3
|
|
![]() Group: Members Posts: 381 Joined: 9-April 06 From: Czech Republic Member No.: 29311 |
How about "lame_enc.dll modified to use INI file setup" ? I just looked up that, it's close but not exactly what I need. I'd like to be able to set up more parameters than just "Preset, Stereo, Scalefactor and Experimental Y options to be used in encoding". And I'd like to use another Lame version which I found works better for low bitrate CBR encoding with my music. But thanks anyway, if I can't get what I'm crying for |
|
|
|
Aug 13 2008, 16:13
Post
#4
|
|
![]() LAME developer Group: Developer Posts: 761 Joined: 22-September 01 Member No.: 5 |
What LAME version and setting would that be?
|
|
|
|
Aug 13 2008, 17:24
Post
#5
|
|
![]() xcLame and OggDropXPd Developer Group: Developer Posts: 3706 Joined: 30-September 01 From: Bracknell, UK Member No.: 111 |
What LAME version and setting would that be? With the answers to these questions, it becomes a definite 'maybe'!! -------------------- John
---------------------------------------------------------------- My compiles and utilities are at http://www.rarewares.org/ |
|
|
|
Aug 13 2008, 17:38
Post
#6
|
|
![]() Group: Members Posts: 381 Joined: 9-April 06 From: Czech Republic Member No.: 29311 |
I'm almost afraid to post any custom commandlines here
But this is a setting which works well on most of my trance tracks: Lame 3.89 CODE -b96 -q1 --nspsytune --resample 44 --lowpass 16 --ns-bass -4 -X1 Also works good: Lame 3.93.1 CODE --alt-preset cbr 96 -q1 --lowpass 16 --resample 44 --ns-bass -2 -X1 Of course these are experimental switches so that's why I wanted to have external txt file with the command line if I wanted to make changes. But even if someone could make a Lame DLL with the fixed command line, I would be thankful for this too (I remember asking john33 a long time ago for such modded dll, but 1) the command line was different 2) the Oddcast DSP still managed to "push through" some switches which audibly altered the quality in some cases). Thanks for any help |
|
|
|
Aug 13 2008, 17:57
Post
#7
|
|
![]() xcLame and OggDropXPd Developer Group: Developer Posts: 3706 Joined: 30-September 01 From: Bracknell, UK Member No.: 111 |
Well, the options shouldn't be a problem. The only available 3.89 code is beta, but I have that and 3.93.1. I'll go back to the dll code that came with those and look at modifying it. Leave it with me for a couple of days and I'll get back to you.
-------------------- John
---------------------------------------------------------------- My compiles and utilities are at http://www.rarewares.org/ |
|
|
|
Aug 13 2008, 18:01
Post
#8
|
|
![]() Group: Members Posts: 381 Joined: 9-April 06 From: Czech Republic Member No.: 29311 |
Well, the options shouldn't be a problem. The only available 3.89 code is beta, but I have that and 3.93.1. I'll go back to the dll code that came with those and look at modifying it. Leave it with me for a couple of days and I'll get back to you. Thank you very much John, you are always to help! The only thing I'm afraid of is that these setting are slooow (2x realtime at most) and that the audio might "stutter". I guess we'll see, and if there are any problems with that well I'm just building a new powerful PC, that should take care P.S. I don't need both, I slightly prefer the sound of 3.89 so that's all I need. This post has been edited by jmartis: Aug 13 2008, 18:05 |
|
|
|
Aug 13 2008, 19:22
Post
#9
|
|
|
Group: Members Posts: 116 Joined: 28-September 04 From: Germany Member No.: 17360 |
Did you do an ABX compare to the most recent lame version? Perhaps you will be surprised how good the presets sound.
|
|
|
|
Aug 13 2008, 19:46
Post
#10
|
|
![]() Group: Members Posts: 809 Joined: 26-April 04 Member No.: 13720 |
Another Oddcast user here. I also would like to see a lame_enc.dll with all the options exposed in a text file.
|
|
|
|
Aug 14 2008, 09:44
Post
#11
|
|
![]() xcLame and OggDropXPd Developer Group: Developer Posts: 3706 Joined: 30-September 01 From: Bracknell, UK Member No.: 111 |
Another Oddcast user here. I also would like to see a lame_enc.dll with all the options exposed in a text file. All seems a bit excessive! If anyone else has any requests regarding this, let's have them all together for the sake of minimising effort. -------------------- John
---------------------------------------------------------------- My compiles and utilities are at http://www.rarewares.org/ |
|
|
|
Aug 14 2008, 10:44
Post
#12
|
|
![]() Group: Members Posts: 381 Joined: 9-April 06 From: Czech Republic Member No.: 29311 |
Did you do an ABX compare to the most recent lame version? Perhaps you will be surprised how good the presets sound. I did not do an ABX test but I did extensive testing and comparing on my killer samples and real trance songs. At 96kbs you really do not need to do an ABX test as the artifacts are ultimately obvious at this bitrate, and I already know which LAME version makes which artifacts @96kbs @john33, It's perfectly fine for me if you do only the 3.89 cmd line as I put above, just please disable any switches from the input cmd line except infile/outfile, thanks |
|
|
|
Aug 14 2008, 19:30
Post
#13
|
|
![]() Group: Members Posts: 809 Joined: 26-April 04 Member No.: 13720 |
All seems a bit excessive! But if you could provide a list of those you would like to have available, I'll see what I can do. Thank you. There are actually not that many quality-related options, most deal with I/O and tagging. Are you be doing entire command lines or individual presets? I'd like to see -V (already done in the latest version), -b, -B, --lowpass, -q |
|
|
|
Aug 14 2008, 21:01
Post
#14
|
|
![]() xcLame and OggDropXPd Developer Group: Developer Posts: 3706 Joined: 30-September 01 From: Bracknell, UK Member No.: 111 |
OK, guys, thanks for your input. I'll see what I can do.
-------------------- John
---------------------------------------------------------------- My compiles and utilities are at http://www.rarewares.org/ |
|
|
|
Aug 15 2008, 17:26
Post
#15
|
|
![]() xcLame and OggDropXPd Developer Group: Developer Posts: 3706 Joined: 30-September 01 From: Bracknell, UK Member No.: 111 |
OK, here is a 3.98 version that I think covers everything asked for: http://rarewares.org/files/mp3/lamedll_MOD3.98.zip
If this is OK, I'll look at a 3.93.1 version, but I'd like to know whether this works as required, first. -------------------- John
---------------------------------------------------------------- My compiles and utilities are at http://www.rarewares.org/ |
|
|
|
Aug 16 2008, 01:00
Post
#16
|
|
![]() Group: Members Posts: 809 Joined: 26-April 04 Member No.: 13720 |
Thank you for this release. It works well.
My plan is to stream real radio over LAN (hence --lowpass) and I just discovered that -V2 is not transparent. This post has been edited by j7n: Aug 16 2008, 01:09 |
|
|
|
Aug 16 2008, 08:59
Post
#17
|
|
![]() xcLame and OggDropXPd Developer Group: Developer Posts: 3706 Joined: 30-September 01 From: Bracknell, UK Member No.: 111 |
Thank you for this release. It works well. My plan is to stream real radio over LAN (hence --lowpass) and I just discovered that -V2 is not transparent. OK, thanks. I'll look at moving this to 3.93.1 in the next couple of days. -------------------- John
---------------------------------------------------------------- My compiles and utilities are at http://www.rarewares.org/ |
|
|
|
Aug 17 2008, 06:08
Post
#18
|
|
![]() Group: Members Posts: 809 Joined: 26-April 04 Member No.: 13720 |
I want to use Oddcast (now Edcast) for sending mp3 stream, and it does not allow any settings on the mp3 encoder, and probably passes some exotic switches which I'm not aware of, messing up the quality. I just checked the output of official LAME 3.97 DLL / latest Edcast, and it did not use the bit reservoir at all. A 96 kBit stream came out full of \0 and the lame id string, when these bytes could be spent for quality instead. I wonder what could be the reasoning behind this choice. Yes, the first couple frames will play distorted, but it's not like the listeners restart playback every minute. A quick browse over the Icecast directory revealed two servers still publicly 'casting in this format. john33, what is the format of the resample option? It does not do anything. Edcast's built in resampler (BASS?) is unusable – produces clicks. This post has been edited by j7n: Aug 19 2008, 19:37 |
|
|
|
Aug 19 2008, 12:32
Post
#19
|
|
![]() Group: Members Posts: 809 Joined: 26-April 04 Member No.: 13720 |
QUOTE john33, what is the format of the resample option? It does not do anything. BUMP. I'll correct myself. The parameter works, but the host application is able to override it. This shouldn't be happening. This post has been edited by j7n: Aug 19 2008, 12:38 |
|
|
|
Aug 19 2008, 14:42
Post
#20
|
|
![]() xcLame and OggDropXPd Developer Group: Developer Posts: 3706 Joined: 30-September 01 From: Bracknell, UK Member No.: 111 |
QUOTE john33, what is the format of the resample option? It does not do anything. BUMP. I'll correct myself. The parameter works, but the host application is able to override it. This shouldn't be happening. Sorry about that! -------------------- John
---------------------------------------------------------------- My compiles and utilities are at http://www.rarewares.org/ |
|
|
|
Aug 19 2008, 17:31
Post
#21
|
|
![]() Group: Members Posts: 809 Joined: 26-April 04 Member No.: 13720 |
The problem is now corrected. Thank you.
|
|
|
|
Aug 23 2008, 15:31
Post
#22
|
|
|
Group: Members Posts: 133 Joined: 2-January 04 Member No.: 10896 |
Just curious - there are apparently two versions available: lame_dll_MOD3.98.zip (dated 11-Aug-2008) and lamedll_MOD3.98.zip (dated 19-Aug-2008). The 2nd one seems to accept more options. From Rarewares, only the 1st one is linked. I'm wondering which one to use
|
|
|
|
Aug 23 2008, 15:37
Post
#23
|
|
![]() xcLame and OggDropXPd Developer Group: Developer Posts: 3706 Joined: 30-September 01 From: Bracknell, UK Member No.: 111 |
Just curious - there are apparently two versions available: lame_dll_MOD3.98.zip (dated 11-Aug-2008) and lamedll_MOD3.98.zip (dated 19-Aug-2008). The 2nd one seems to accept more options. From Rarewares, only the 1st one is linked. I'm wondering which one to use Use the more recent one. It will be replacing the earlier one. I was just waiting to be sure there weren't any issues that needed attention. -------------------- John
---------------------------------------------------------------- My compiles and utilities are at http://www.rarewares.org/ |
|
|
|
Aug 27 2008, 10:28
Post
#24
|
|
![]() Group: Members Posts: 434 Joined: 31-October 03 From: Europe, CZ Member No.: 9571 |
I'd like to see -V (already done in the latest version), -b, -B, --lowpass, -q IIRC all those options were included in the ordinary (not the ini file setup modified) lame_enc.dll before except for --lowpass, am I wrong? john33, can you suggest the best TAGing option for making MP3 through lame_enc.dll ? Including such a command line in the dll doesn't make any sense: CODE --id3v1-only --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" %s %d ...I don't have a clue...
-------------------- Sorry for my poor English, I'm trying to get better... ;)
"The greatest trick the Devil ever pulled, was convincing the world he didn't exist." |
|
|
|
Aug 27 2008, 13:49
Post
#25
|
|
![]() xcLame and OggDropXPd Developer Group: Developer Posts: 3706 Joined: 30-September 01 From: Bracknell, UK Member No.: 111 |
I'd like to see -V (already done in the latest version), -b, -B, --lowpass, -q IIRC all those options were included in the ordinary (not the ini file setup modified) lame_enc.dll before except for --lowpass, am I wrong? They were all available to an application using the dll, but the point of the ini file version is that the options are configured within the ini file rather than by the application that uses it. In fact, the application set options are ignored. john33, can you suggest the best TAGing option for making MP3 through lame_enc.dll ? Including such a command line in the dll doesn't make any sense: CODE --id3v1-only --ta "%a" --tt "%t" --tg "%m" --tl "%g" --ty "%y" --tn "%n" %s %d ...I don't have a clue...The file i/o and any tagging are the responsibility of the calling application and, as such, are governed by what the calling application offers. The only 'tag' that is under the control of the dll in terms of whether it is written is the lame-tag. -------------------- John
---------------------------------------------------------------- My compiles and utilities are at http://www.rarewares.org/ |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 20th May 2013 - 16:36 |