使用Media Foundation从未压缩的IEEE浮点音频编码到AAC
Encoding from Uncompressed IEEE floating-point audio to AAC using Media Foundation
我一直在尝试使用Media Foundation编码未压缩的IEEE浮点音频(MFAudioFormat_Float)到AAC(MFAudioFormat_AAC),但似乎AAC编码器只能采用未压缩的PCM音频(MFAudioFormat_PCM)作为输入- AAC编码器。
当我使用MFTEnum或MFTEnumEx函数时:
hr = MFTEnum(
MFT_CATEGORY_AUDIO_ENCODER,
NULL, // Reserved
&tininfo /* MFAudioFormat_Float */, // Input type to match.
&toutinfo /* MFAudioFormat_AAC */, // Output type to match.
NULL, // Attributes to match. (None.)
&pCLSIDs, // Receives a pointer to an array of CLSIDs.
&count // Receives the size of the array.
);
它找不到任何可用的编解码器(count == 0
)。
那么是否有可能使用Media Foundation来做到这一点呢?我能找到一些其他编解码器并安装和使用吗?或者也许有其他方法可以做到,而我做错了什么?
https://learn.microsoft.com/en-us/windows/win32/medfound/aac-encoder
输入类型MF_MT_SUBTYPE Subtype. Must be MFAudioFormat_PCM.
MF_MT_AUDIO_BITS_PER_SAMPLE Bits per sample. Must be 16.
MF_MT_AUDIO_SAMPLES_PER_SECOND Samples per second. The following values are supported: 44100 (44.1 KHz) 48000 (48 KHz)
相关文章:
- 如何确定我已使用非编码文件到达 EOF?
- 用c++阅读音频
- 为什么这个音频包络不能通过开关的情况?
- 使用 MATLAB 编码器生成C++代码:编译错误"undefined reference to `rgb2gray_tbb_real64'"
- 在卡萨布兰卡形成编码参数的列表
- FFMpeg库:如何在音频文件中精确查找
- 使用C++进行游程编码
- 如何将不同的可执行文件合并到一个窗口框架中进行编码?像浏览器一样
- 使用已使用 java 编码的 openssl 解码数据
- 需要反转音频步进公式
- boost 是否有按特殊类型值编码状态"compact optional"?
- FFmpeg:编码PCM 16音频数据分配错误
- FFmpeg音频编码器新增编码功能
- QMultimedia - 支持哪些视频/音频编码和容器
- 试图解码音频上编码的类似调频的信号
- 在输入和输出之间使用不同数量的样本对音频ffmpegc++进行编码
- 使用Sink Writer编码音频
- 使用Media Foundation从未压缩的IEEE浮点音频编码到AAC
- 音频 MP2 编码和解码产生一半的数据C++和 FFMPEG
- libav音频编码从原始pcm到OGG Vorbis的例子