How to completely disable audio transcoding in Ant Media Server in order to increase the performance?

Viewed 313

Ant Media Server transcodes stream from Opus to AAC by default in WebRTC ingesting. It transcodes because it needs to create HLS, MP4 or DASH streams. However I only use WebM recording and I don't need AAC encoding. I just don't want AMS to transcode the audio stream.

Do you let me know if it's possible by changing some configuration?

Regards, A. Oguz

1 Answers

In order to turn off transcoding from Opus to AAC, the following settings should be applied:

settings.mp4MuxingEnabled=false
settings.hlsMuxingEnabled=false
settings.dashMuxingEnabled=false
settings.aacEncodingEnabled=false

You need to put these lines into the application configuration file. Its path is something like this: /usr/local/antmedia/webapps/#app name#/WEB-INF/red5-web.properties

By default, their values may be true.

Related