2010-12-02 9 views
0

Windows Mediaエンコーダを使用して、Webカメラからのビデオとマイクからのサウンドを録音します。 CBRを使用してビットレートベースのモードとビデオを使用してオーディオを記録するプロファイルを設定しました。Windowsメディアエンコーダを使用してビットレートベースのオーディオを録音できません。

this.newProfile = new WMEncProfile2(); 
      this.newProfile.ValidateMode = true; 

      this.newProfile.ContentType = 17; 
      this.newProfile.set_VBRMode(WMENC_SOURCE_TYPE.WMENC_AUDIO, 0, WMENC_PROFILE_VBR_MODE.WMENC_PVM_BITRATE_BASED); 
      this.newProfile.set_VBRMode(WMENC_SOURCE_TYPE.WMENC_VIDEO, 0, WMENC_PROFILE_VBR_MODE.WMENC_PVM_NONE); 
      newProfile.AddAudience(400000); 
      IWMEncAudienceObj audience = newProfile.get_Audience(0); 
      audience.set_VideoCodec(0, 3); 
      audience.set_VideoBitrate(0, 700000); 
      audience.set_VideoFPS(0, 25000); 
      audience.set_VideoKeyFrameDistance(0, 5000); 
      audience.set_VideoBufferSize(0, 3000); 
      audience.set_VideoWidth(0,800); 
      audience.set_VideoHeight(0, 600); 
      audience.set_AudioCodec(0, 1); 
      audience.SetAudioConfig(0, 2, 44100, 192000, 16); 
      this.newProfile.Validate(); 

ただし、ビデオ出力には音がありません。それはCBRモードでの作業です。

答えて

0

私はBitrateベースのVBRを認識しましたが、エンコーダは(encoder.Start();)を2回起動する必要があります。今、私は音を録音することができます。

関連する問題