2

Is there an ActionScript library for MP3 encoding than Shine-MP3-Encoder? (https://github.com/kikko/Shine-MP3-Encoder-on-AS3-Alchemy) This library works fine, but I wanted to find a similar solution (on ActionScript, not C) to optimize it for specific needs. Thanks.

2 Answers2

0

Dont wait for it. A pure AS3 library is impossible as the speed of AS3 is too slow to do MP3 encoding. You will need C++ via AIR Native Extensions (ANE) or Alchemy for this. ANEs work with Adobe AIR so you can publish your content as an app for desktop and mobile. I dont see any issue with it.

See these for ANE-based Mic recording:

Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
0

I recorded the mic into a WAV and then use ffmpeg -i d:/path/input.wav d:/path/output.mp3 to convert it instantly into an MP3. I delete the WAV when FFMPEG completes. FFMPEG is a cool little EXE you can just add to your project in any dir. I used Thibault's class to record into WAV.

Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607