Skip to content

Processing Audio from IP Cameras

Processing audio from IP cameras

Most IP cameras support only PCMA/PCMU audio codecs (also known as G.711a and G.711u).

Flussonic can store this PCMA/PCMU audio in the archive and transmit it over RTMP and HDS protocols that support this codec. Due to the infeasibility of transmitting such audio over other protocols such as HLS or storing it in MP4 for a playback, client simply will not hear the sound as these codecs are not supported by HLS or MP4.

Therefore, in order to make the audio available for playback to all client's devices and players, enable transcoding of the audio received from an IP camera.

To do so, first install the flussonic-transcoder package:

Note

The package flussonic-transcoder is necessary only if you plan to use the CPU to perform transcoding. If you use Nvidia NVENC, no extra packages are needed.

apt-get install -y flussonic-transcoder

Then enable sound transcoding for your stream from the camera as follows:


stream origin {
 url fake://fake;
}
stream camera {
 url rtsp2://localhost/origin;
}

or


stream camera1 {
 url rtsp://localhost:553/bunny.mp4 aac=true;
}

This way Flussonic will transcode the audio track to AAC codec, so it will be possible to send it to all of your clients over any protocols without the loss of a sound.