Thanks for taking the time to read my question.
I am developing a C ++ application using Qt and the Windows API.
I am recording the microphone output into small 10s audio files in raw format and I want to convert them to aac format.
I tried to read as many things as possible and thought it would be nice to start with the Windows Media Transcoding API.
The problem is that I cannot use the .raw or .pcm file in the "CreateObjectFromUrl" function, and therefore I am pretty much stuck here at the moment. He continues to fail. The hr return code is 3222091460. I tried to pass the .mp3 file to a function, and of course it works, so there is no connection with url-human-failure.
MF_OBJECT_TYPE ObjectType = MF_OBJECT_INVALID;
IMFSourceResolver* pSourceResolver = NULL;
IUnknown* pUnkSource = NULL;
hr = MFCreateSourceResolver(&pSourceResolver);
if (FAILED(hr))
{
qDebug() << "Failed !";
}
hr = pSourceResolver->CreateObjectFromURL(
sURL,
MF_RESOLUTION_MEDIASOURCE,
NULL,
&ObjectType,
&pUnkSource
);
MFCreateSourceResolver , CreateObjectFromURL : (
, :
- aac Windows media?
- , , , ?
, ffmpeg libav, , GPL. Windows Media aac, .
, , , , , , , . ( , )