This project has moved. For the latest updates, please go here.

Audio Support

Jul 8, 2014 at 10:20 AM
Dude, Thank you so much for your work on this. There is such a need and you are really helping me out. Do you have any idea when audio support will be coming? I really need it and would appreciate any direction you can give me for doing it myself.
Coordinator
Jul 18, 2014 at 4:59 PM
Sorry for a late reply, I was on a vacation :)
I assume I will work on the audio support near to September.

To do it yourself, you could implement an audio stream similar to video stream.
I think, using generic PCM format (uncompressed) will be the most straightforward way. Audio input sources usually provide sound data in this format.

This nice doc gives a short overview of an AVI file layout:
http://www.alexander-noe.com/video/documentation/avi.pdf
A detailed description of structures comprising AVI file can be found on MSDN site:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd318189(v=vs.85).aspx
This utility is very useful in debugging for analyzing the data written to an AVI file:
http://www.menasoft.com/blog/?p=34
Jul 18, 2014 at 6:31 PM
Awesome, thanks mate! I have tried to integrate myself but Im not winning. This is all being done on mobile in mono C# for Unity. I will wait for you I think. Thanks for all the links, if I can get back to it before you I will share my findings :) I actually did check out riffpad but I am using a mac so ended up using Hex Fiend to see where my encoding was going wrong. It bums me out that there is not a native c# ffmpeg but then, this is trixsy stuff. Thanks again for all your help!


Coordinator
Sep 12, 2014 at 7:38 PM
Edited Sep 12, 2014 at 7:41 PM
Hi there!
I've just released a new version 2.0 (changed from planned 1.2 since there are numerous breaking API changes).
Audio support is included in this release, uncompressed and MP3. See docs and sample app.
However, MP3 support relies on P/Invoke calls to LAME DLL, so it may not be possible to use on mobile.
Sep 12, 2014 at 10:40 PM
Thank you for including the audio support mate! thats awesome. Its a bit of a bummer about the mp3 on mobile but to be obviously expected due to how locked down the format is. The raw audio support alone is terrific. Thanks again :)