Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaFoundationReader doesn't read MP4 audio anymore #231

Closed
Ahmed-Abdelhameed opened this issue Sep 3, 2017 · 1 comment
Closed

MediaFoundationReader doesn't read MP4 audio anymore #231

Ahmed-Abdelhameed opened this issue Sep 3, 2017 · 1 comment

Comments

@Ahmed-Abdelhameed
Copy link
Contributor

Ahmed-Abdelhameed commented Sep 3, 2017

I had been using version 1.7.3 in a project, and then I needed some of the improvements in the newer versions, so I updated to last version (1.8.2).
Since then, I noticed that reading MP4 files with HE-AAC audio format (whether for converting or playing) doesn't work (probably MP2 as well looks like MPEG audio didn't work in the previous versions either). It always throws a COMException with this message:

Exception from HRESULT: 0xC00D36B4

After some investigation, I'm not sure exactly what the problem is, but it definitely has something to do with this commit. Simply removing partialMediaType.ChannelCount = ... and partialMediaType.SampleRate = ... at lines 138 & 139, will make the problem go away (but would probably lead to another problem which that commit was originally made for).

P.S. testings were done on Windows 7 64-bit.
@markheath Can you please look into this?
Would appreciate that.

Thank you!

@Ahmed-Abdelhameed
Copy link
Contributor Author

I closed this because I found out it's related to #223, and that the other issue also presents a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant