Important alert: (current site time 7/15/2013 6:44:18 PM EDT)
 

winzip icon

MP3 Encoder (Converts WAV to MP3)

Email
Submitted on: 5/2/2000 10:27:26 PM
By: Jonathan Smith  
Level: Advanced
User Rating: By 19 Users
Compatibility: C++ (general)
Views: 40470
author picture
(About the author)
 
     Here's some MORE source code that I know everyone's wanted! Take your favorite CD audio tracks or WAV files and shrink them to MP3 format using this code. This WILL COMPILE in Visual C++ 6! YAY! Wanna learn how to decode them and play them back? Check out code number 372. Vote for me =)
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 3 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
5/2/2000 10:42:09 PMTom

Track this kid's code, people. He's got some good stuff for being only sixteen years old. :) Keep up the supreme work, Ultimatum.
(If this comment was disrespectful, please report it.)

 
5/3/2000 4:18:01 PMdan

every code this kid puts up just gets better! And its nice clean code. Thanks ultimatum
(If this comment was disrespectful, please report it.)

 
5/3/2000 6:43:49 PMBrian G.

Awesome code.... so awesome it seems suspicious.... but oh well.... good job.
Where do you get your information!
(If this comment was disrespectful, please report it.)

 
5/4/2000 12:44:02 PMKrishna Rath

decompilers, MP3 makers..they all are too good...

(If this comment was disrespectful, please report it.)

 
6/10/2000 5:11:01 PMmr complain

its ok; but it would be so much better with an interface... this isn't for DOS this should be based in a window geez...
(If this comment was disrespectful, please report it.)

 
6/14/2000 8:01:19 PMDC

Hey, so let me get this straight... you started coding at age 8?
(If this comment was disrespectful, please report it.)

 
7/2/2000 6:19:31 PMgood_werk

hey i started coding at 10 and i'm not this good! u are really good at making source code
(If this comment was disrespectful, please report it.)

 
7/20/2000 8:30:08 AMKristof Torfs

Great code, i've been looking for an mp3 encoder for really long now, could you translate this code to vb by any chance ? Or maybe you already know an mp3 encoder in vb ? Anyway, this is a great program
(If this comment was disrespectful, please report it.)

 
7/25/2000 1:42:02 AMWarren

Kristof, It's not feasible to write a mp3 encoder in vb, it's not a low enough level language to do all the complex calculations fast enough.
(If this comment was disrespectful, please report it.)

 
7/25/2000 1:58:22 AMWarren

Kristof, err, I meant a complete encoder, not a frontend,. I'm coming really close to completely porting the blade encoder frontend to vb.
(If this comment was disrespectful, please report it.)

 
7/25/2000 2:02:37 AMWarren

Sorry to post another useless comment :)
But I just finished writing a mp3 decoder in visual c++ based on the original binfile mpeg sources (took me almost a year to write if your wondering). I've tested it in vb and it works great! (except for the mp3 to wav decoding, still trying to get that to work correctly in vb)
(If this comment was disrespectful, please report it.)

 
8/4/2000 9:26:27 AMUltimatum

Believe it or not, I'm about a week away from releasing an MP3 encoder in VB WITH support for three encoding engines (Blade, Lame, and XAudio)
(If this comment was disrespectful, please report it.)

 
8/16/2000 6:53:51 AMLargie

I have tested the program, but I get a real slow performance to encode it!
Here are my results:

Song- Wavfile Stereo rate: 44100hz, length: 4min 23sec, size: 44,3MB
Convertion done with: 128bit MONO

Time usage:
-----------
BladeEnc: 2min 40secs
AudioCatalyst: 0min 15secs

Are there any known encoders like Xings encoder?!

(If this comment was disrespectful, please report it.)

 
8/28/2000 4:20:01 PMUltimatum

Largie: Xing pretty much holds the world record for MP3 encoding. My next version (written in VC++ and VB) MIGHT include the XAudio encoding engine, but we'll have to see. I still have to get an idea of how to use XAudio. (I know the API declarations contained within it, I just don't know what kind of or how many parameters each function takes.)
(If this comment was disrespectful, please report it.)

 
3/24/2001 12:29:34 AMkeshax

I'm goin' stone clold crazee! I need them header files! (config.h etc)
(If this comment was disrespectful, please report it.)

 
5/14/2001 9:33:26 PMjimmy Nguyen

It has a "takk" sound at the begin of every mp3 files generated.

(If this comment was disrespectful, please report it.)

 
10/22/2001 11:01:03 AMmaes

when I encode a WAV file, I get some weird noise(nothing like the actual wav file)I also had this with your previous encoders.Any idea what I'm doing wrong.
I can see the encoding dots add up. And when I debug, I can't see anything unusual(As far as I know this stuff :) )
(If this comment was disrespectful, please report it.)

 
3/6/2002 6:41:35 AMG.Srinivasu

past one year onwords i am searching for this software...thanks for giving...
if u feel free please keep mailing me...
bye
Garimella
(If this comment was disrespectful, please report it.)

 
5/26/2002 12:54:27 AMTrilochan

I want to use this code from my Visual Basic application. Please let me know , how do i do this .
(If this comment was disrespectful, please report it.)

 
6/8/2002 6:24:00 PMsilverthan

good work man, keep walking!!
(If this comment was disrespectful, please report it.)

 
9/29/2002 5:39:27 AM

What must be changed for converting any wav in mp3? (wav format settings: 11KHz, 22KHz, 44,1KHz, Mono, Stereo, 8-bit, 16-bit)
Thanks
(If this comment was disrespectful, please report it.)

 
9/29/2002 5:40:49 AM

What must be changed for converting any wav in mp3? (format settings: 11KHz, 22KHz, 44,1KHz, Mono, Stereo, 8-bit, 16-bit)
Thanks
(If this comment was disrespectful, please report it.)

 
11/19/2002 1:30:46 AMDmitri K

umm, who said he is 16? Graduated from college? People don't graduate from universities at 16 in USA.
(If this comment was disrespectful, please report it.)

 
12/23/2003 2:03:46 PM

what about the riverse way? did you ever think like converting the mp3 to wav? did u use the Windows Mwdia 9 packet ;-) is there any easy way to convert wma/wmv to wav?
(If this comment was disrespectful, please report it.)

 
1/7/2004 5:52:44 AM

that's not your code.. i just downloaded a similar code from the maker of bladeenc.
(If this comment was disrespectful, please report it.)

 
7/12/2004 2:42:17 PM

Originally this code comes
from: http://lame.sourceforge.net/download/download.html
But there is an error in example.cpp. U have find DATA chunk,
otherwise you will get this
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.