1

Closed

Find installed encoder

description

Hallo,

I try to find available codecs for encoding on the system my application is run at. Therefore I use the lines

MFMediaType[] aac = MediaFoundationCore.GetEncoderMediaTypes(MFMediaTypes.MFAudioFormat_AAC);
MFMediaType[] mp3 = MediaFoundationCore.GetEncoderMediaTypes(MFMediaTypes.MFAudioFormat_MP3);
MFMediaType[] wma = MediaFoundationCore.GetEncoderMediaTypes(MFMediaTypes.MFAudioFormat_WMAudioV9);

This works fine on Windows 8.1 64bit. But on a Windows Vista 32bit I get an EntryPointNotFoundException. The reason for this is, that on Windows Vista the library mf.dll does not have a method "MFTranscodeGetAudioOutputAvailableTypes". Is here in CSCORE an exception handling missing? What is the best way to get all available codecs for encoding?

Gravus
Closed May 17, 2015 at 3:25 PM by filoe
Fixed with commit c3efb4c4 (not synced with repo yet).

comments