Jump to content
  • 0

How to change the bit rate for audio publisher

Q Le


Do you know how to change the bit rate for audio publisher in ant-media-server ... I try to broadcast the music but the sound is very bad, it seems transfer about 32 kps, is there anyway I can change the audo publisher for the ant-media-server up to 128 kps or 256kps ????  I am using the web to broadcast.


Link to comment
Share on other sites

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0

Could you try what happens if you add bandwidth property here:https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/audio_publish.html#L189

Like here:https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/index.html#L389

bandwidth:300 kbps as an example.

Best Regards,

Enes Kuluk.
Link to comment
Share on other sites

  • 0

Hello Enes Kuluk!  Thanks so much for your help ... Here is my settings ...

I put  900 kps for the maxVideoBitrateKbps   for the publish audio and the output music still the same.  I used the video publisher and  set   maxVideoBitrateKbps = 900; and I set the constraints: 

var mediaConstraints = {


video : false,


audio : true



The output data of publisher is 30kps  - 35kps... and the data for  listener  is 100 kps -  128kps ...
I want the output data for publisher is 128kps - 256kps so the music will get clear ...

So, anything else I could do for improve the quality of music ???


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...