Clarification Regarding Audio Codec Support in Microphone Session Integration

We are currently working on integrating Our IP cameras with the Milestone system using Custom Driver via MPS Driver Framework . During this integration, specifically while implementing the Microphone session, we come across some observations related to audio play.

The cameras support audio in various codecs, including G711mulaw, G711alaw, G726, and AAC.

For example, when the camera is configured with G726, 8kHz, 16kbps audio configuration, and the audio data is sent with the following header from Camera Driver to Milestone recording server, the audio fails to play in XProtect Smart Client. Could you please confirm below audio header is fine for G726 8kHz, 16kbps for audio play .

  • CodecType = AudioCodecType.G726
  • CodecSubtype = AudioCodecType.G726Subtype16BitLittleEndian
  • Timestamp = DateTime.Now
  • ChannelCount = 1
  • BitsPerSample = 2
  • Frequency = 8000
  • SampleCount = data.Length(bytes) * NumberOfBitsInAByte(8)/ BitsPerSample
  • SequenceNumber = SequenceNumber + 1

Can you please clarify whether the microphone session integration supports different codec(G711mulaw, G711alaw, G726 , and AAC) types ?

If there is a specific requirement to transcode the audio in Camera Driver for proper playback in the Milestone system, if yes what format we have to transcode ?

Hi,

Can you clarify whether you hear noise, or nothing at all, when listening to the device in the SmartClient? Assuming the AudioHeader contains the correct information, and the data transmitted is in the correct format, all of the mentioned audio codecs should work. As for the provided header information, assuming that the BitsPerSample is correct, the information looks very reasonable.

Have you tried looking if there are any failures in the driver logs or related recording server logs on the server?

Best regards,

Simon Rønneberg

Hi Simon,

Thanks for the reply.

We hear environmental noise when we test with G726 audio codec.

I will capture driver and recording server logs for audio streaming use case tomorrow morning and will share it here.

Thanks,

Venki