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 ?