Hi guys,
As you know lame isn't very fast to encode (on my home computer at least) but it is worthwhile because quality is there.
I am looking for an encoding platform which has to be very fast. I mean, less than 60 seconds to encode 60 minutes of audio to mp3. (work for my studies)
That's why I am looking to high-end computers. I don't know if that's a good solutions. You maybe have better ideas (clustering...??)
Thanks for your help.
kwanbis
Jan 2 2006, 07:13
LAME at 60x? don't think it can be done right now.
Thank you,
What speed can we expect at the best ?
I saw a multithreaded version of lame which may be faster on a dual/or more processors.
kwanbis
Jan 2 2006, 08:58
the best i have seen is 18x IIRC.
Latexxx
Jan 2 2006, 09:30
Helix encoder is faster than Lame but I don't know if even it can do 60x.
thank you for these answers.
I will do some research and perform some tests.
But the more the project goes on, the more it becomes irrealistic
QUOTE(Phach @ Jan 2 2006, 05:47 PM)
thank you for these answers.
I will do some research and perform some tests.
But the more the project goes on, the more it becomes irrealistic

Well, this cries for extreme measures... After some testing I got Lame encoding at 65x on my Celeron M 1.4Ghz.
Here's my commandline:
CODE
lame -b192 -q9 --noreplaygain
The quality is better than I had expected from -q9, and you might compensate somewhat by cranking up the bitrate. Also please note that the input file was probably still cached, you need 10Mb/s transfer rate from your harddisk to read a wav at 60x.
MedO
jimhaddon
Jan 2 2006, 16:08
Wow, yeah that does work! and on the hyperthreading version I get 113x!!!
MuncherOfSpleens
Jan 2 2006, 16:35
QUOTE(kwanbis @ Jan 2 2006, 10:58 AM)
the best i have seen is 18x IIRC.
My AMD Athlon 64 3000+ (overclocked from 2.01 to 2.29GHz) can encode at ~19x -V 5 --vbr-new -q 0.
edit: I forgot to mention that I use -q 0
jimhaddon
Jan 2 2006, 16:51
Somehow i think that is untrue. My PC is P4 4.2Ghz, (overclcoked from 3.8) and can only manage 4x at that quality, and seeing how AMD's are worse at encoding, its pretty difficult
QUOTE(jimhaddon @ Jan 2 2006, 11:51 PM)
Somehow i think that is untrue. My PC is P4 4.2Ghz, (overclcoked from 3.8) and can only manage 4x at that quality, and seeing how AMD's are worse at encoding, its pretty difficult
What lame versions you are talking about? 397b2 has no working q0 switch used this way. It is forced to use q2.
MuncherOfSpleens speed is about right for his system then. I wonder why you only get 4x

Edit: Sorry, donīt know if V5 uses q2 by default but it is locked for sure.
Chun-Yu
Jan 2 2006, 17:15
I just got 11.253x with those settings on a 2 GHz Athlon XP 2400+.
jimhaddon
Jan 2 2006, 17:16
Im using Lame 3.97 b1, which is not forced to use q2. Should i be using another one
jimhaddon
Jan 2 2006, 17:21
Sorry! my fault! i typed in the command wrong. I typed in --vrb-new instead of --vbr-new....
I get 25x with those settings
QUOTE(jimhaddon @ Jan 3 2006, 12:16 AM)
Im using Lame 3.97 b1, which is not forced to use q2. Should i be using another one
Sure it is forced! As soon you give a V value its default q setting is used. Doesnīt matter if you add the q0 switch. This is for 397b1 also.
jimhaddon
Jan 2 2006, 17:26
you are incorrect, just try it and see! q2 is not forced
QUOTE(jimhaddon @ Jan 3 2006, 12:26 AM)
you are incorrect, just try it and see! q2 is not forced
It doesnīt give an error. Watch the resulting file. They are bit identical even if you add the q0 switch. btw. i just noticed V5 uses q3.
jimhaddon
Jan 2 2006, 17:34
then explain why -q0 encodes slower than -q2 if -q2 is forced?
QUOTE(jimhaddon @ Jan 3 2006, 12:34 AM)
then explain why -q0 encodes slower than -q2 if -q2 is forced?
We are talking about the commandline above. There is no speed difference when q0 is added. As this is --vbr-new it doesnīt change anything with the 397 betas.
To get On topic again. This --noreplaygain switch gives about 5-8% (estimated) speed improvement here.
jimhaddon
Jan 2 2006, 17:46
There IS a speed difference. Try it! im now using 3.97 b2
QUOTE(jimhaddon @ Jan 3 2006, 12:46 AM)
There IS a speed difference. Try it! im now using 3.97 b2
-V5 --vbr-new ~ 23,420
-V5 --vbr-new -q0 ~23,465
The speed is indeed different

maybe i moved my mouse to long for that difference?
jimhaddon
Jan 2 2006, 17:53
on my machine, i got 26x on q3, and 24x on q0
QUOTE(jimhaddon @ Jan 3 2006, 12:51 AM)
Somehow i think that is untrue. My PC is P4 4.2Ghz, (overclcoked from 3.8) and can only manage 4x at that quality, and seeing how AMD's are worse at encoding, its pretty difficult
The "Lame encoding speed"-Thread has shown the opposite IMO. AMD Processors in general and intel processors based on the P3 or Pentium-M core seem to handle the encoding pretty fast, while the P4s were WAY slower even at double the clock speed.
Didn't anyone wonder why the next generation Pentiums will be based on the Pentium-M instead of the P4? Well, now you know.
DreamTactix291
Jan 2 2006, 19:07
OK I'll explain the usage of -q values with LAME 3.97b
For --vbr-new only -q0 through -q4 produce identical results. -q5 is by itself, and -q6 through -q9 produce identical results. This is the word from the LAME devs themselves.
jimhaddon
Jan 3 2006, 14:51
QUOTE(MedO @ Jan 3 2006, 01:22 AM)
QUOTE(jimhaddon @ Jan 3 2006, 12:51 AM)
Somehow i think that is untrue. My PC is P4 4.2Ghz, (overclcoked from 3.8) and can only manage 4x at that quality, and seeing how AMD's are worse at encoding, its pretty difficult
Didn't anyone wonder why the next generation Pentiums will be based on the Pentium-M instead of the P4? Well, now you know.
Even though the Penitum-M is a modified P3?
jimhaddon
Jan 3 2006, 15:06
But back on topic,
I just encoded a mix which was 3hr 9min long, using -q9 -b128 --noreplaygain
It took 1min 51sec. Average 101.69x
Pretty good for lame!
ilikedirtthe2nd
Jan 3 2006, 15:19
I think Helix is better suited here. I get about 60x speed with std. vbr or cbr encodings on my XP 1800+ - Quality might be better than what lame produces in it's lowest quality mode...
QUOTE(jimhaddon @ Jan 3 2006, 10:51 PM)
Even though the Penitum-M is a modified P3?
From Wikipedia,
http://en.wikipedia.org/wiki/Pentium_4:QUOTE
Intel stated in their marketing at the launch of the P4 it was an architecture designed to scale to 10 GHz. However, the netburst architecture encountered unsolvable thermal problems at 4 GHz. This forced Intel to abandon development of the Pentium 4 in mid-2005 to focus on the cooler running Pentium M, which was repositioned for the desktop computer and small server markets. In retrospect, the Pentium III core was technologically superior to Pentium 4, which can be seen as an example of what happens when marketing teams draw up technical project specifications.
I heard the thing from a friend who knows a lot about hardware stuff... I know it says here that the heat problem was the final decision factor. I didn't know about that one until I read the text just now, but I doubt it was the only consideration.
jimhaddon
Jan 3 2006, 16:23
Yeah, weird that one. I havent tried helix encoder yet, but gogo lame encoder, seems to run slower than normal lame at -q9. hm..
QUOTE(jimhaddon @ Jan 3 2006, 03:51 PM)
Even though the Penitum-M is a modified P3?
To give a quick and dirty summary:
Imagine I have two machines, both produce the same widget but they are built very differently internally.
Machine one (P3) spins its framistat at 1000 rpm, and produces 10 widgets a minute.
Machine two (P4) spins its framistat at 2000 rpm, and produces 10 widgets a minute.
While I find it is initially easier to make machine two's framistat faster (and at the same time, I have to decrease the widgets per RPM slightly), I find that it is extremely difficult to make it faster than 4000 rpm. Then, in the meantime, I find ways to make machine one produce 15 widgets per minute at 1000 rpm and also how to increase the number of RPM's to 2000.
The end result of this example:
Machine one (Pentium M derivative) spins its framistat at 2000 rpm, and produces 30 widgets a minute.
Machine two (Modern P4) spins its framistat at 4000 rpm, and produces slightly less than 20 widgets a minute.
These numbers are purely for example. For more reading, please see
http://www.anandtech.com/cpuchipsets/showdoc.aspx?i=2627http://www.anandtech.com/cpuchipsets/showdoc.aspx?i=2648
jimhaddon
Jan 3 2006, 16:45
Yeah i understand why the P3 technology is better, but what is not true, is that AMD cpus, are better at encoding than P4's, as multiple tests have proven this to be untrue.
QUOTE(jimhaddon @ Jan 3 2006, 05:45 PM)
Yeah i understand why the P3 technology is better, but what is not true, is that AMD cpus, are better at encoding than P4's, as multiple tests have proven this to be untrue.
To play Devil's advocate,
http://www.anandtech.com/cpuchipsets/showdoc.aspx?i=2484&p=9and
http://www.tomshardware.com/2005/08/01/dual/page11.htmlIt really depends on the situation.
EDIT: Added Tomshardware link.
jimhaddon, you could also try a different compile of lame, maybe the one you use isn't well optimized for P4s.
jimhaddon
Jan 3 2006, 17:34
QUOTE(MedO @ Jan 4 2006, 12:32 AM)
jimhaddon, you could also try a different compile of lame, maybe the one you use isn't well optimized for P4s.
My build is optimised for P4s, I find the HT version of lame very good too!
QUOTE(jimhaddon @ Jan 4 2006, 01:34 AM)
QUOTE(MedO @ Jan 4 2006, 12:32 AM)
jimhaddon, you could also try a different compile of lame, maybe the one you use isn't well optimized for P4s.
My build is optimised for P4s, I find the HT version of lame very good too!
Your CPU might also be throttling to prevent overheating. There was another thread about all this a while ago, search for "LAME encoding speed" or similar. I just find it weird that you get less than third of the encoding speed I get, while your CPU is clocked three times as fast. If this was completely a processor architecture thing, this would mean that the Pentium M worked ten times as efficient, which sounds too strange to me.
QUOTE(jimhaddon @ Jan 3 2006, 01:06 PM)
But back on topic,
I just encoded a mix which was 3hr 9min long, using -q9 -b128 --noreplaygain
It took 1min 51sec. Average 101.69x
Pretty good for lame!
wooooww

I will test with that presets.
Thank you to all of you.
Redmist
Jan 4 2006, 03:34
I remember when the P4 was first launched, an overclocked P3 was considerably faster. The P4 was really just Intel's attempt to make a stripped back CPU in order to win the clock speed race to impress ignorant corporate customers.
jimhaddon
Jan 4 2006, 11:01
QUOTE(MedO @ Jan 4 2006, 02:46 AM)
QUOTE(jimhaddon @ Jan 4 2006, 01:34 AM)
QUOTE(MedO @ Jan 4 2006, 12:32 AM)
jimhaddon, you could also try a different compile of lame, maybe the one you use isn't well optimized for P4s.
My build is optimised for P4s, I find the HT version of lame very good too!
Your CPU might also be throttling to prevent overheating. There was another thread about all this a while ago, search for "LAME encoding speed" or similar. I just find it weird that you get less than third of the encoding speed I get, while your CPU is clocked three times as fast. If this was completely a processor architecture thing, this would mean that the Pentium M worked ten times as efficient, which sounds too strange to me.
I think its because the HT version of lame works much faster on my machine than the gogolame. My cpu is not throttling, i have performed MANY stress tests on it.
Gabriel
Jan 4 2006, 11:08
QUOTE
I think its because the HT version of lame works much faster on my machine than the gogolame.
The current HT version of Lame is reducing quality, beware...
jimhaddon
Jan 4 2006, 12:59
QUOTE(Gabriel @ Jan 4 2006, 06:08 PM)
QUOTE
I think its because the HT version of lame works much faster on my machine than the gogolame.
The current HT version of Lame is reducing quality, beware...
O i know that, dont worry im only using it for testing purposes, not actual encoding. Still, it works very well!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.