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

Windows 10 error #303

Closed
AymanKhafageJathwa opened this issue Feb 16, 2018 · 17 comments
Closed

Windows 10 error #303

AymanKhafageJathwa opened this issue Feb 16, 2018 · 17 comments

Comments

@AymanKhafageJathwa
Copy link

I have issue when run library in windows 10.
Error is"The byte stream type of the given URL is unsupported. (Exception from HRESULT: 0xC00D36C4)"

@markheath
Copy link
Contributor

This error is MF_MEDIA_ENGINE_ERR_SRC_NOT_SUPPORTED. In other words, Media Foundation doesn't know how to play this file type. So if could be a corrupted stream, or a format that Windows doesn't have codecs for.

@AymanKhafageJathwa
Copy link
Author

No, files not corrupted. I tested the file, and it plays in Windows 8.1 and Windows 10 using windows media player.
However, when I need to use NAudio.dll to play the audio file in Windows 10, the audio file does not work.
On other hand, in Windows 8.1, I can play the same audio file using the same NAudio.dll.

@markheath
Copy link
Contributor

what sort of file is it?
what URL are you using? (a local file or streaming from the web?)
what reader are you using to open it? (MediaFoundationReader?)
what line of code is the error being thrown from?

@AymanKhafageJathwa
Copy link
Author

  • .Wav
  • It is local file
  • MediaFoundationReader
  • using MediaFoundationReader
    reader

@markheath
Copy link
Contributor

AAC inside of WAV? That's quite unusual. What happens when you just use WaveFileReader?

@AymanKhafageJathwa
Copy link
Author

That was only an error inside my comments.
reader

@AymanKhafageJathwa
Copy link
Author

image
i use this reader to convert from any type of media to WAV file.

@markheath
Copy link
Contributor

so what happens if you open this file with WaveFileReader? MediaFoundationReader is not needed for WAV file playback.

Is the file extension literally ".Wav"? Can you also try making the extension lower case - ".wav"

@AymanKhafageJathwa
Copy link
Author

i want to use MediaFoundationReader to read any audio type to ensure if this audio or not before convert it.

image

@braincraft359
Copy link

why is this closed?

@braincraft359
Copy link

what's the solution to the problem?

@jakoss
Copy link

jakoss commented Sep 5, 2018

Well, Mark asked Ayman to try out WaveFileReader to give some more insight. He didn't get it so he couldn't help

@AymanKhafageJathwa
Copy link
Author

In this method i don't read the wave file to use WaveFileReader, but i read and audio type so that i use MediaFoundationReader .
MediaFoundationReader doesn't compatible with windows 10
Thanks

@markheath
Copy link
Contributor

when you say Windows 10 do you mean as a UWP app? If so, yes, you can't use MediaFoundationReader. There is an experimental MediaFoundationReaderRT that the UWP demo app uses that might work for you.

@bentorkington
Copy link

bentorkington commented Nov 27, 2018

I have a .WMA file that reliably reproduces this error on Windows 7 if you'd like it. MediaFoundationReader was throwing this COM error on a very small minority of WMA files I saved with random file names (and extensions) from Path.GetRandomFileName(). Adding the correct ".wma" suffix, or opening the files myself and using StreamMediaFoundationReader() opens the same files with no problems.

The files were created with MediaFoundationEncoder.EncodeToWma().

@markheath
Copy link
Contributor

Are you saying that it always works if you have a ".wma" extension? If so, then why not just use that?

@bentorkington
Copy link

It does, and I do now. I'm just trying to shine some light on possible causes of whatever might be causing this issue.

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

5 participants