<p>I'm looking for a way to extract the audio part of a FLV file. </p>

<p>I'm recording from the user's microphone and the audio is encoded using the <a href="http://en.wikipedia.org/wiki/Nellymoser_Asao_Codec" rel="nofollow noreferrer">Nellymoser Asao Codec</a>. This is the default codec and there's no way to change this.</p>

[{'answer_id': 67700, 'author': 'owenmarshall', 'author_id': 9806, 'author_profile': 'https://Stackoverflow.com/users/9806', 'pm_score': 2, 'selected': False, 'text': '<p>This isn\'t an exact answer, but some relevant notes I\'ve made from investigating FLV files for a business requirement.</p>\n\n<p>Most FLV audio is encoded in the MP3 format, meaning you can extract it directly from the FLV container. If the FLV was created from someone recording from their microphone, the audio is encoded with the Nellymoser Asao codec, which is proprietary (IIRC). </p>\n\n<p>I\'d check out <a href="http://ffmpeg.mplayerhq.hu/" rel="nofollow noreferrer">libavcodec</a>, which handles FLV/MP3/Nellymoser natively, and should let you get to the audio.</p>\n'}, {'answer_id': 69078, 'author': 'user10864', 'author_id': 10864, 'author_profile': 'https://Stackoverflow.com/users/10864', 'pm_score': 0, 'selected': False, 'text': '<p>I was going to recommend this:  <a href="http://code.google.com/hosting/takenDown?project=nelly2pcm&amp;notice=7281" rel="nofollow noreferrer">http://code.google.com/hosting/takenDown?project=nelly2pcm&amp;notice=7281</a>.</p>\n\n<p>But its been taken down.  Glad I got a copy first :-)</p>\n'}, {'answer_id': 69975, 'author': 'bzlm', 'author_id': 7724, 'author_profile': 'https://Stackoverflow.com/users/7724', 'pm_score': 1, 'selected': False, 'text': "<p>I'm currently using FFmpeg version SVN-r12665 for this, with no problems (the console version, without any wrapper library). There are some caveats to using console applications from non-console .NET environments, but it's all fairly straightforward. Using the libavcodec DLL directly is much more cumbersome.</p>\n"}, {'answer_id': 76266, 'author': 'Costo', 'author_id': 1130, 'author_profile': 'https://Stackoverflow.com/users/1130', 'pm_score': 4, 'selected': True, 'text': '<p><a href="http://ffmpeg.mplayerhq.hu/" rel="nofollow noreferrer">ffMpeg</a> is the way to go !\nIt worked for me with SVN Rev 14277.</p>\n\n<p>The command I used is : <code>ffmpeg -i source.flv -nv -f mp3 destination.mp3</code></p>\n\n<p><strong>GOTCHA</strong> :</p>\n\n<p>If you get this error message : <code>Unsupported audio codec (n)</code>, \ncheck the <a href="https://www.adobe.com/content/dam/Adobe/en/devnet/flv/pdfs/video_file_format_spec_v10.pdf" rel="nofollow noreferrer">FLV Spec</a> in the <strong>Audio Tags</strong> section. </p>\n\n<p>ffMpeg can decode n=6 (Nellymoser).<br/>\nBut for n=4 (Nellymoser 8-kHz mono) and n=5 (Nellymoser 16-kHz mono) it doesn\'t work.</p>\n\n<p>To fix this <strong>use the default microphone rate</strong> when recording your streams, overwise ffMpeg is unable to decode them.</p>\n\n<p>Hope this helps !</p>\n'}]
['https://Stackoverflow.com/questions/67647', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1130/']