3

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

faraway
  • 1,491
  • 10
  • 22
  • 2
    you're the developer, shouldn't you know? – Philipp Hancke Mar 24 '21 at 14:25
  • 2
    I know the answer. If someone from the community answer, we're going to send a small gift. If no one answers, I'll post the answer soon. https://groups.google.com/g/ant-media-server/c/XNFXYVarV38 – faraway Mar 24 '21 at 14:37

1 Answers1

3

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.

Zafer
  • 2,130
  • 15
  • 23