Set bitrate in Kurento.....

1,203 views
Skip to first unread message

parthmu...@gmail.com

unread,
Oct 19, 2015, 6:28:52 AM10/19/15
to kurento
Hi guys,

can anyone please guide me where exactly we can set the bitrate in kurento. I want to restrict the bitrate at 5mpbs for my project.

Thanks in advance.


Ivan Gracia

unread,
Oct 19, 2015, 11:55:48 AM10/19/15
to Kurento Public
Which bitrate? The one exchanged between KMS endpoints, or the one that WebRTC endpoints will get from browser clients?

Ivan Gracia



--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Parth Sharma

unread,
Oct 20, 2015, 5:52:34 AM10/20/15
to kur...@googlegroups.com
hi ivan ,
thank you for the reply. actually i want that KMS should send the 5 mbps bitrate to browser. as from camera it is coming as 12 mbps .
Now i found that there is one configuration in MediaElement.conf.ini file inside /etc/kurento/modules/kurento folder and after uncommenting the default entry i am 
able to get the output bitrate as 1.5 mbps. 

Now i have got another problem is that now KMS is taking more than 100% CPU memory and its a big issue now i am facing.

I tried to understand the issue and as per my point of view it is because when 12mbps stream is coming and KMS is reducing it to 1.5 mbps so it may be doing some
conversion/encoding internally and thats why CPU usage is going at much large amount.

Kindly suggest here as how i can handle this memory leak issue in KMS.

--
You received this message because you are subscribed to a topic in the Google Groups "kurento" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kurento/GjtjKQRoTvU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kurento+u...@googlegroups.com.

Ivan Gracia

unread,
Oct 20, 2015, 5:55:39 AM10/20/15
to Kurento Public
I'm not really sure I understand your setup. Actually, if you could describe it, it would help a lot! How are you sending the camera feed to KSM? I assume is RTP, right? Or is it RTSP? Could you describe your pipeline? I'm totally lost.

Ivan Gracia


Parth Sharma

unread,
Oct 20, 2015, 6:00:54 AM10/20/15
to kur...@googlegroups.com
hi Ivan,

We are providing the camera feed to KMS in RTP .

Parth Sharma

unread,
Oct 20, 2015, 6:15:00 AM10/20/15
to kur...@googlegroups.com
hi Ivan,

We are providing the camera feed to KMS in RTP. Actually what i am trying to do is.

I have a WebRTC peer who is there on browser client, and another peer is a relay device who is accepting a feed from camera and sending it to KMS at 12 mbps.
Now KMS is sending that stream at 1.5 mbps to browser peer. That is whole pipeline structure

I hope i am able to convey the complete info. If not kindly let me know for more details.

Mario Giammarco

unread,
Oct 21, 2015, 5:04:16 AM10/21/15
to kurento
I am interested too in this thread.
You are asking very specific info about his setup but in my opinion this is a very generic problem that happens a lot of times.
Basically when you use Kurento e.g. for videoconferencing the FIRST problem you have is to limit bandwidth.
So you do not understand what you need to modify to limit bandwidth. Is it a kms option? A Java API? The browser configuration?
You asked how to improve documentation in a poll.
Well a tutorial on bandwidth management is needed.

Thanks a lot,
Mario Giammarco
www.oclab.it

Parth Sharma

unread,
Oct 23, 2015, 6:38:29 AM10/23/15
to kur...@googlegroups.com
hi,
The issue is narrowed down and point is coming out to be as without recording mode it is working perfectly fine.
But in recording mode the issue is replicable and it seems kurento is keeping the recorded file contents somewhere in memory and that is why its exhausting RAM of machine.

Please help me how i can resolve this issue, is there any setting i need to do for kurento to flush the recorded file?
The issue is only in recorded mode.

Ivan Gracia

unread,
Oct 28, 2015, 5:51:40 AM10/28/15
to Kurento Public

The recorder normally stores media as it arrives, but how you create the recorder, and what type of media you feed to it is important. By default, it is configured to expect AUDIO and VIDEO, and it will not start recording until both types of media arrive. If you feed only one type to a recorder with default config, it will buffer all the media received until you execute the stop method, as it will sit there expecting the other media type to arrive.

Is it possible that your camera is only feeding video, and that the recorder expects audio and video?

Ivan Gracia



Chen Cong

unread,
Dec 21, 2015, 10:47:13 PM12/21/15
to kurento
it is helpful, my question is  how to  create a video record ? i can not find a type configuration in the documentation..

在 2015年10月28日星期三 UTC+8下午5:51:40,igracia写道:

Ivan Gracia

unread,
Dec 22, 2015, 9:35:26 AM12/22/15
to Kurento Public
Have a look at this tutorial.

Ivan Gracia


Reply all
Reply to author
Forward
0 new messages