Hi Mark, I appreciate your hard work in upgrading NAudio with Media Foundation Transform. With your latest version, when I was trying to convert wav file to mp3 using media foundation, the following exception 'No suitable MP3 encoders available' has occurred. I have both lame and fraunhofer mp3 codecs installed on my pc with windows 7 os(x86). Previously I did the same task with Acm (i.,e. using NAudio 1.6 version) and Lame, it was wokring fine with no codecs issue. Any help is greatly appreciated.
protected void Page_Load(object sender, EventArgs e)
{
using (var reader = new MediaFoundationReader("\\track.wav"))
{
MediaFoundationEncoder.EncodeToMp3(reader, "\\outputfile.mp3", 192000);
}
}