IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
Custom control/front end DLL for Lame dll?
jmartis
post 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.
Go to the top of the page
+Quote Post
robert
post 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" ?
Go to the top of the page
+Quote Post
jmartis
post Aug 13 2008, 15:53
Post #3





Group: Members
Posts: 381
Joined: 9-April 06
From: Czech Republic
Member No.: 29311



QUOTE (robert @ Aug 13 2008, 16:27) *
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 tongue.gif , I'll use the modified DLL.
Go to the top of the page
+Quote Post
robert
post 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?
Go to the top of the page
+Quote Post
john33
post 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



QUOTE (robert @ Aug 13 2008, 16:13) *
What LAME version and setting would that be?

With the answers to these questions, it becomes a definite 'maybe'!! wink.gif Adding to the number of options exposed within the ini file is relatively straightforward and, if you particularly want it compiled against a specific lame library, that should be simple enough depending on the library.


--------------------
John
----------------------------------------------------------------
My compiles and utilities are at http://www.rarewares.org/
Go to the top of the page
+Quote Post
jmartis
post 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 unsure.gif

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 smile.gif

(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 smile.gif
Go to the top of the page
+Quote Post
john33
post 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/
Go to the top of the page
+Quote Post
jmartis
post Aug 13 2008, 18:01
Post #8





Group: Members
Posts: 381
Joined: 9-April 06
From: Czech Republic
Member No.: 29311



QUOTE (john33 @ Aug 13 2008, 18:57) *
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! smile.gif Yes you are right it is beta.

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 biggrin.gif

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
Go to the top of the page
+Quote Post
weaker
post 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.
Go to the top of the page
+Quote Post
j7n
post 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. smile.gif
Go to the top of the page
+Quote Post
john33
post 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



QUOTE (j7n @ Aug 13 2008, 19:46) *
Another Oddcast user here. I also would like to see a lame_enc.dll with all the options exposed in a text file. smile.gif

All seems a bit excessive! blink.gif But if you could provide a list of those you would like to have available, I'll see what I can do.

If anyone else has any requests regarding this, let's have them all together for the sake of minimising effort. wink.gif


--------------------
John
----------------------------------------------------------------
My compiles and utilities are at http://www.rarewares.org/
Go to the top of the page
+Quote Post
jmartis
post Aug 14 2008, 10:44
Post #12





Group: Members
Posts: 381
Joined: 9-April 06
From: Czech Republic
Member No.: 29311



QUOTE (weaker @ Aug 13 2008, 20:22) *
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 blink.gif


@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 smile.gif
Go to the top of the page
+Quote Post
j7n
post Aug 14 2008, 19:30
Post #13





Group: Members
Posts: 809
Joined: 26-April 04
Member No.: 13720



QUOTE (john33 @ Aug 14 2008, 11:44) *
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
Go to the top of the page
+Quote Post
john33
post 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/
Go to the top of the page
+Quote Post
john33
post 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. wink.gif (Check the new ini file as the options have expanded, obviously!)


--------------------
John
----------------------------------------------------------------
My compiles and utilities are at http://www.rarewares.org/
Go to the top of the page
+Quote Post
j7n
post 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. smile.gif

My plan is to stream real radio over LAN (hence --lowpass) and I just discovered that -V2 is not transparent. ohmy.gif

This post has been edited by j7n: Aug 16 2008, 01:09
Go to the top of the page
+Quote Post
john33
post 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



QUOTE (j7n @ Aug 16 2008, 01:00) *
Thank you for this release. It works well. smile.gif

My plan is to stream real radio over LAN (hence --lowpass) and I just discovered that -V2 is not transparent. ohmy.gif

OK, thanks. I'll look at moving this to 3.93.1 in the next couple of days. smile.gif


--------------------
John
----------------------------------------------------------------
My compiles and utilities are at http://www.rarewares.org/
Go to the top of the page
+Quote Post
j7n
post Aug 17 2008, 06:08
Post #18





Group: Members
Posts: 809
Joined: 26-April 04
Member No.: 13720



QUOTE (jmartis @ Aug 13 2008, 15:13) *
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
Go to the top of the page
+Quote Post
j7n
post 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
Go to the top of the page
+Quote Post
john33
post 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 (j7n @ Aug 19 2008, 12:32) *
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! crying.gif I've corrected that and there's a new compile here: http://rarewares.org/files/mp3/lamedll_MOD3.98.zip smile.gif


--------------------
John
----------------------------------------------------------------
My compiles and utilities are at http://www.rarewares.org/
Go to the top of the page
+Quote Post
j7n
post 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. smile.gif
Go to the top of the page
+Quote Post
LoFiYo
post 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 huh.gif
Go to the top of the page
+Quote Post
john33
post 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



QUOTE (LoFiYo @ Aug 23 2008, 15:31) *
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 huh.gif

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. wink.gif


--------------------
John
----------------------------------------------------------------
My compiles and utilities are at http://www.rarewares.org/
Go to the top of the page
+Quote Post
k.eight.a
post Aug 27 2008, 10:28
Post #24





Group: Members
Posts: 434
Joined: 31-October 03
From: Europe, CZ
Member No.: 9571



QUOTE (j7n @ Aug 14 2008, 20:30) *
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? huh.gif

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."
Go to the top of the page
+Quote Post
john33
post 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



QUOTE (k.eight.a @ Aug 27 2008, 10:28) *
QUOTE (j7n @ Aug 14 2008, 20:30) *
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? huh.gif

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.
QUOTE (k.eight.a @ Aug 27 2008, 10:28) *
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/
Go to the top of the page
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th May 2013 - 16:36