ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.23k stars 619 forks source link

Make configurable audio sample rate on RTMP endpoint #4503

Open muratugureminoglu opened 1 year ago

mekya commented 1 year ago

Thank you for the issue Mr. Murat :)

pseudoh commented 11 months ago

Hi any updates on this? It's becoming more and more of a requirements for us as an enterprise customer.

mekya commented 10 months ago

Hi @muratugureminoglu,

It seems that so much time has passed since we create this issue and I don't understand what it means for now. I think the lesson I learned is to create issues with basic explanation.

So what do you want to achieve through this issue @pseudoh?

Cheers Oguz

pseudoh commented 10 months ago

Hi Oguz. Thanks for your response. I've dug up our email that we originally sent to your support team regarding this. Please see below. In summary, we'd like to be able to configure the rtmp audio sample rate. Hope this gives you enough information.

We are using the RTMP endpoint to restream an incoming webrtc to antmedia to an external rtmp server. It all works well however we have an issue where the external RTMP server require the audio sample rate to be at 48000 however antmedia seems to fix this to 44100 when going from webrtc to rtmp endpoint. Is there a way to modify the sample rate?

mekya commented 10 months ago

Hi @pseudoh,

Thank you for the explanation. Yes it makes sense for me. Although this option is still not available, 2.7.0 uses 48 kHz by default in AAC encoding because Ant Media Server starts to ingest WebRTC streams with 48 kHz and stereo in the 2.7.0 release.

Do you still need to have this configuration option?

Cheers Oguz