This project has moved and is read-only. For the latest updates, please go here.

Enumerating MF Encoders

Jan 15, 2014 at 11:13 AM
Edited Jan 15, 2014 at 11:15 AM
I'd like to get all available audio encoders in MF as a name/description of the codec.
How does one enumerate all available audio encoders in NAudio?

I tried the code below but ToString() isn't overridden, can I use GetGUID() to get the string? Or is this the wrong method?
                foreach(IMFActivate ia in MediaFoundationApi.EnumerateTransforms(MediaFoundationTransformCategories.AudioEncoder))
Jan 15, 2014 at 11:42 AM
have a look at the code in the WPF demo - it shows getting information on all encoders, decoders and transforms.
Jan 15, 2014 at 12:01 PM
:facepalm: forgot about the examples, I really need to fix the NAudio source compile errors. Thanks Mark.