datarhei / restreamer

The Restreamer is a complete streaming server solution for self-hosting. It has a visually appealing user interface and no ongoing license costs. Upload your live stream to YouTube, Twitch, Facebook, Vimeo, or other streaming solutions like Wowza. Receive video data from OBS and publish it with the RTMP and SRT server.
https://docs.datarhei.com/restreamer/
Apache License 2.0
3.92k stars 448 forks source link

Audio codecs in cameras #68

Closed And63 closed 5 years ago

And63 commented 5 years ago

The video is fine. I have a problem with sound in cameras with G.711 / G.722.1 / G.726 / MP2L2 / PCM audio coding. There is silence instead of sound. If the camera has audio coded in AAC, the sound is normal. How can fix it?

ioppermann commented 5 years ago

You can set the environment variable RS_AUDIO=aac. This will force encoding the audio track to AAC if it is not already AAC (https://datarhei.github.io/restreamer/docs/references-environment-vars.html#rs_audio)