How to set the bit rate in a KURENTO call?
I am learning Kurento Media Server 6 and am now playing with tutorials. I noticed that the quality of the stream is very poor. I switched to a higher resolution, but the problem persists. I am connected to a server on a 100/100 Mbps network and the stream should be crystal clear. I think KMS 6 is set to bit rates by default. I tried looking in the documentation and tutorials for some method that sets the bit-rate, but couldn't find it. How and where can I change the default bit rate (if possible)?
As suggested below, I tried to set bandwith in nodejs one-to-many demo server.js when creating a presenter:
webRtcEndpoint.setMinVideoSendBandwidth(1000, function(error) {
if (error) {
stop(sessionId);
return callback(error);
}
});
The quality is still very poor, nothing has changed (the server daemon has been restarted to reflect the changes in the code). Am I doing it right?
source to share
KMS by default limits BW for WebRTC endpoints to 500Kbps and limits BW on transcoding to 300Kbps. You can change these defaults with the following settings:
On sent WebRtcEndpoints:
WebRtcEndpoint#setMaxVideoSendBandwidth(max_bw_in_kbps)
On any media element doing transcoding:
MediaElement#setOutputBitrate(outbut_bitrate_in_bps)
Take a look at kms-core KMD for more information on these properties and methods
source to share