简体   繁体   English

在CBR音频编码中指定所需比特率的属性名称

[英]Name of the property that specifies the desired bit rate in CBR audio encoding

I'm trying to configure a "Windows Media Audio Standard" DMO codec to compress in single-pass, constant bit-rate mode (CBR). 我正在尝试配置“ Windows Media音频标准” DMO编解码器以单通,恒定比特率模式(CBR)进行压缩。 Unfortunately I can not find on the MSDN documentation how can I pass the desired bit-rate to the encoder object. 不幸的是,我在MSDN文档中找不到如何将所需的比特率传递给编码器对象。

In other words, I'm looking for the equivalent of MFPKEY_RMAX which seems to identify be the desired bit-rate setting for two-pass Variable Bit-rate encoding, but for single-pass, CBR encoding. 换句话说,我正在寻找MFPKEY_RMAX的等效项,它似乎确定是两次通过可变比特率编码但对于一次通过CBR编码所需的比特率设置。

Finally found it. 终于找到了。 The key I required is MF_MT_AUDIO_AVG_BYTES_PER_SECOND and is documented here : 我需要的密钥是MF_MT_AUDIO_AVG_BYTES_PER_SECOND在此处进行了说明

Choose the encoding bit rate. 选择编码比特率。

For CBR encoding, you must know the bit rate at which you want to encode the stream before the encoding session begins. 对于CBR编码,必须在编码会话开始之前知道要对流进行编码的比特率。 You must set the bit rate during while you are configuring the encoder. 在配置编码器时,必须设置比特率。 To do this, while you are performing media type negotiation, check the MF_MT_AUDIO_AVG_BYTES_PER_SECOND attribute (for audio streams) or the MF_MT_AVG_BITRATE attribute (for video streams) of the available output media types and choose an output media type that has the average bit rate closest to the target bit rate you want to achieve. 为此,在执行媒体类型协商时,请检查可用输出媒体类型的MF_MT_AUDIO_AVG_BYTES_PER_SECOND属性(对于音频流)或MF_MT_AVG_BITRATE属性(对于视频流),然后选择平均比特率最接近的输出媒体类型您想要达到的目标比特率。 For more information, see Media Type Negotiation on the Encoder. 有关更多信息,请参见编码器上的媒体类型协商。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM