Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Today I had made a test: wave to mp3 conversion. First I've ripped 12 min 20 sec track from cd to wave file and then encoded it under linux using lame and under windows using xing.
And I,m a bit confused, because under linux it took 1 min 50 sec to do this, and under windows only 32 sec. The bitrate was 256 kbps. I have Athlon 1 Ghz with 640 mb ram. Why there's such a big difference?? Is there any possibility to improve encoding under linux ??
There is a quality option. The default level is 5 (on a scale of 0 = best quality/slowest, 9 = worst quality/fastest).
I did some tests encoding a 4.2 MiB wav file with different quality settings. With the default quality level this took about 18 seconds. With the quality set to 9 (worst quality, fastest encoding), the file encoded in about 5 seconds. Here's how to pass the option:
Of course, it could also be that lame is badly optimised, or written in a way which doesn't lend itself to performance. Also, lame is typically compiled with gcc, which isn't known for producing the most optimised programs.
It would be instructive to do some profiling of lame, and try building it with the intel compiler (which is said to produce much more optimised programs).
Having apparently criticised gcc, I'd like to make it clear that I think it's a superb project, and I feel all dirty if I use another compiler. I think the benefits of gcc's cross-platform features, and general flexibility more than outweigh the supposed lack of performance. Not to mention the most important part - that it's truly Free.
There are some crazy function names in lame! It spends most of it's time (about 20%) in a function called L3psycho_anal_ns. Far out. It's beyond me anyhow.
I don't think so - it looks like it's doing some of the heavy lifting. I think without spending some months really researching how lame is working (and the underlying ideas of how mp3 is encoded), trying to optimise the code is not going to be easy. Using the intel compiler might squeeze a few % more performance out of the old chips though, although I don't know how easy it is to drop it in as an alternative to gcc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.