Quantcast
Channel: naudio Work Item Rss Feed
Viewing all articles
Browse latest Browse all 738

Edited Unassigned: Exception When Calling MediaFoundationEncoder.EncodeToMp3 [16413]

$
0
0

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);
}
}

```

Viewing all articles
Browse latest Browse all 738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>