nanocosmos Documentation

nanocosmos Documentation

  • nanoStream Cloud
  • H5Live Player
  • nanoStream Webcaster
  • nanoStream Apps and SDKs
  • Samples
  • FAQ
Edit

nanostream/directshow/directshow_mpeg_audio_encoder

Configure encoder settings

Here is a pseudo sample code, showing how to set the bitrate for the encoder - m_pEncMpegA is the instance of the mpeg audio encoder:

ICodecAPI* encoderInt;
m_pEncMpegA->QueryInterface(IID_ICodecAPI, (void **) &encoderInt);
VARIANT v;
v.vt = VT_INT;
v.intVal = 128000;    // 128 kb
encoderInt->SetValue(&PROPID_nanoMPAEBitrate, &vt);
...
encoderInt->Release();
</code>
Last updated on 2/21/2021
  • Configure encoder settings
Contact
HomepageContactSupportLegal Terms
Products
Nanostream Cloud with Bintu.LiveH5Live Low Latency HTML5-PlayernanoStream WebcasterNanostream Apps and SDK
More
BlogTwitterFacebookLinkedInGitHubStar
nanocosmos GmbH
Copyright © 2021 nanocosmos GmbH - doc version Sun Feb 21 2021 20:36:34 GMT+0000 (Coordinated Universal Time)