I'm writing a tool in C# that muxes H.264 frames into MP4 files, and I'm using Media Foundation's media sink with sink writer to do this. Things work pretty well under Win8, but under Windows 7 the same code throws an exception, HResult: 0xC00D36E6 (MF_E_ATTRIBUTENOTFOUND), when invoking sink writer's Finalize [...] read more
I am trying to create an instance of an audio renderer with a given GUID by calling MFCreateAudioRenderer with the attributes pointer set. I've set all the required values, but the call returns E_INVALIDARG and mftrace.exe shows 13808,33E0 15:09:52.27643 CMFAttributesDetours::GetUnknown @014C4550 - enter 13808,33E0 15:09:52.27644 CMFAttributesDetours::GetUnknown @014C4550 attribute not found [...] read more
I've been on a quest for a while now to pass the PCM of an MP3 from W8.1/WP8.1 to Unity3D and I believe I'm getting close. I was referred to this project which works absolutely fine but, of course, it's in VB.NET so it can't be used with Unity. VB [...] read more
On the supported codecs page, AMR-NB is listed as one of the few encodings that is supported for both encode and decode on a variety of platforms. However, it is conspicuously absent from any of the AudioEncodingProperties "Create" methods, such as AudioEncodingProperties.CreateMp3 but no corresponding AudioEncodingProperties.CreateAmr method. All attempts to [...] read more
I am developing an Windows Store App in WP8.1. I need to take photo through camera and save it and use it for showing but it throws exception everytime. My code is-- async private void capturePhoto_Tapped(object sender, TappedRoutedEventArgs e) { try { MediaCapture mediaCapture = new MediaCapture(); StorageFile sf = [...] read more
I am porting a Windows Phone 8 app to Windows 8 and it seems that Media Engine library works differently. Here is my initialization code that works on WP8: DX::ThrowIfFailed( MFStartup(MF_VERSION) ); ComPtr<IMFMediaEngineClassFactory> mediaEngineFactory; ComPtr<IMFAttributes> mediaEngineAttributes; // Create the class factory for the Media Engine. DX::ThrowIfFailed( CoCreateInstance(CLSID_MFMediaEngineClassFactory, nullptr, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&mediaEngineFactory)) [...] read more
Under what circumstances the IMFMediaSourceTopologyProvider::GetMediaSourceTopology() does not fail? It always fails with code 0xc00d36e6 (MF_E_ATTRIBUTENOTFOUND). Please do not answer with a link to MSDN. read more