AC3 audio playback with media foundation? RRS feed

  • Question

  • Hi,


    I have gone through some similar links on the forum but they are all old.

    So, I would like to know if there is any support now for playing back ac3 files using media foundation? Any wrapper which will allow a DirectShow decoder to be used in Media Foundadtion? Or can it be done by installing any third party decoder and use it through media foundation?



    Tuesday, December 6, 2011 12:26 PM

All replies

  • No AC3 decoder MFT for media foundation is included in Windows.  It is certainly possible for a third party to implement an AC3 decoder MFT, but I am not aware of anyone who has done so.

    Wednesday, January 4, 2012 8:19 PM
  • I got AC-3 playback through media foundation after installing http://www.divx.com/en/software/divx-plus/codec-pack and http://ac3filter.net/wiki/Download_AC3Filter. Whether both are required I'm not sure (was looking for .mkv support with ac3).
    Thursday, January 5, 2012 10:32 PM
  • Hi, I'm having the same trouble supporting AC3 files. It gives 'MF_E_UNSUPPORTED_BYTESTREAM_TYPE' while creating the SourceReader.  I tried installing the above codecs but still it wouldn't work.

    @Dave: Did you try the SourceReader architecture or the MediaSession. I'm working on the SourceReader one.
    Any help would be appreciated.

    Friday, January 6, 2012 10:30 AM
  • I'm using IMFMediaSession based of the IMFSequencerSource/Playlist sample (with video support added) found in Vista SDK. This is on Windows 7. Required a reboot if I recall.
    Friday, January 6, 2012 10:12 PM
  • Dave, did u get anything like "AC3 Decoder MFT" while enumerating the audio decoders after installing the 2 codec packs?

    All I could get is "DivX ACM Wrapper MFT" enumerated using media foundation after installing the Divx plus codec pack.

    I tried playing back a .ac3 audio file using the "BasicPlayback" sample provided by msdn but it also could not open the ac3 file.

    • Edited by ijkl Tuesday, January 10, 2012 11:39 AM
    Tuesday, January 10, 2012 9:21 AM
  • I don't enumerate the decoders as I use a partial topology which resolved by the media session. It's also ac-3 audio as a stream in an mkv video container so perhaps it's the container that's unsupported.
    Tuesday, January 10, 2012 7:37 PM