<p>I'm wondering about MP3 decoding/encoding, and I was hoping to pull this off in Flash using AS3</p>

<p>I'm sure it'll be a right pain...</p>

<p>I have no idea where to start, can anyone offer any pointers? reference material?</p>

<p>----much later---
Thank you all very much for your input... It seems I have a long road ahead of me yet!</p>

[{'answer_id': 53420, 'author': 'Eugene Yokota', 'author_id': 3827, 'author_profile': 'https://Stackoverflow.com/users/3827', 'pm_score': 2, 'selected': True, 'text': '<p>See <a href="http://lame.sourceforge.net/" rel="nofollow noreferrer">LAME MP3 Encoder</a>. You can checkout their source code and their <a href="http://lame.sourceforge.net/links.php" rel="nofollow noreferrer">link page</a>. <a href="http://www.mpeg.org/" rel="nofollow noreferrer">Mpeg.org</a> should have documents too.</p>\n'}, {'answer_id': 53628, 'author': 'Mark Ingram', 'author_id': 986, 'author_profile': 'https://Stackoverflow.com/users/986', 'pm_score': 0, 'selected': False, 'text': "<p>It's going to be <strong>VERY</strong> slow doing this in AS3. You really need a C/C++ implementation if you care at all about how long it will take.</p>\n"}, {'answer_id': 53960, 'author': 'Kristian J.', 'author_id': 4588, 'author_profile': 'https://Stackoverflow.com/users/4588', 'pm_score': 0, 'selected': False, 'text': '<p>Andre Michelle and the Hobnox guys pulled off something similar with their Hobnox AudioTool, they ported a <a href="http://blog.andre-michelle.com/2008/first-audiotool-live-recorded-vorbis-encoded-session/" rel="nofollow noreferrer">Java Vorbis encoder to AS3</a>. They supposedly ended up with encoding taking twice the time of the audio duration.</p>\n\n<p>Don\'t know what your use case is, but in the Hobnox tool apparently audio is created at the client side, encoded as Vorbis, sent to the server, converted to mp3 and stored in the users library.  </p>\n'}, {'answer_id': 67580, 'author': 'mikechambers', 'author_id': 10232, 'author_profile': 'https://Stackoverflow.com/users/10232', 'pm_score': 2, 'selected': False, 'text': '<p>You could also theoretically do this as a PixelBender filter, and should get significantly better performance than using a pure ActionScript 3 implementation.</p>\n\n<p>More info on PixelBender here:</p>\n\n<p><a href="http://labs.adobe.com/wiki/index.php/Pixel_Bender_Toolkit" rel="nofollow noreferrer">http://labs.adobe.com/wiki/index.php/Pixel_Bender_Toolkit</a></p>\n\n<p>mike chambers</p>\n\n<p>mesh@adobe.com</p>\n'}, {'answer_id': 67764, 'author': 'Jeremy Wadhams', 'author_id': 8995, 'author_profile': 'https://Stackoverflow.com/users/8995', 'pm_score': 1, 'selected': False, 'text': '<p>I\'ve got a project converting WAV files (actually Asterisk voice mails) into MP3\'s.  If I remember correctly there are some oddities about Lame\'s license, so I\'ve downloaded and compiled first <a href="http://sourceforge.net/projects/lame/" rel="nofollow noreferrer">LAME</a>, then <a href="http://sourceforge.net/projects/sox/" rel="nofollow noreferrer">SOX</a> by hand.</p>\n\n<p>I have a web process written in PHP to actually convert the files from WAV to MP3 on the web server\'s local file system (actually PHP is just supervising the command-line sox tool via <code>exec()</code>).  Then I attach all the metadata the MP3 needs using the <a href="http://pear.php.net/package/MP3_ID" rel="nofollow noreferrer">PEAR Mp3_Id</a> package.</p>\n\n<p>Then I move the newly constructed MP3 file into a folder Apache is sharing, and point the outstanding <a href="http://www.schillmania.com/projects/soundmanager2" rel="nofollow noreferrer">SoundManager2</a> flash-based MP3 player at it.</p>\n\n<p>For small transactions this works very well -- converting a minute or two voice mail does not add any appreciable lag to actually rendering and returning the rest of the page.  As I get more users on a single server, it will probably eventually become necessary to write a cron job or something to do the conversion before the user actually asks for the file the first time.</p>\n'}, {'answer_id': 330475, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>this would help\n<a href="http://labs.adobe.com/technologies/alchemy/" rel="nofollow noreferrer">http://labs.adobe.com/technologies/alchemy/</a></p>\n'}]
['https://Stackoverflow.com/questions/53411', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5503/']