Recording Video in 320x240

195 views
Skip to first unread message

ritvik....@mettl.com

unread,
Feb 4, 2016, 4:41:13 AM2/4/16
to kurento
Hi!

I'm currently working with the example one2many call example and I have introduced a Recorder endpoint in between which is recording correctly. The problem is that the file is huge for even small time durations. I'm trying to scale down the video resolution but nothing seems to work. My media constraints are as follow:

var options = {
                                onicecandidate : onIceCandidate,
                                mediaConstraints : {
                                    audio: true,
                                    video: {
                                        maxWidth: 320,
                                        minWidth: 320,
                                        maxHeight: 240,
                                        minHeight: 240,
                                        maxFrameRate: 12,
                                        minFrameRate: 12
                                    }
                                }
                            };

As well as I have limited the bitrate from the server side. I have used the following configuration but nothing seems to work.

candidateWebRtc.setMaxOuputBitrate(50);
candidateWebRtc.setMaxVideoSendBandwidth(50);
candidateWebRtc.setMaxAudioRecvBandwidth(50);
candidateWebRtc.setMaxVideoRecvBandwidth(50);

Any explanation why

1. Why is the recording still in 640x480 resolution
2. Even though the bitrate is limited, data is being transmitted at ~170KB/s

Thanks!

Ivan Gracia

unread,
Feb 4, 2016, 9:52:28 AM2/4/16
to kur...@googlegroups.com
Those constraints are not according to specs. Also, you can set the minimum video recv bw to 50.

In any case, 50KB is probably too low for audio and video, even with that quality.

--
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.

Ritvik Sachdev

unread,
Feb 4, 2016, 9:56:15 AM2/4/16
to Ivan Gracia
‎Hi Ivan,

Could you tell me what constraints would be correct according to specs for 320x240 video resolution and a frame rate under 15. Also, would 50KB do if it were video alone?

Thanks!
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/ZOs_p6Zw0ps/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kurento+u...@googlegroups.com.

Ivan Gracia

unread,
Feb 4, 2016, 10:02:59 AM2/4/16
to Kurento Public
Check this post.

Ivan Gracia


Ritvik Sachdev

unread,
Feb 4, 2016, 10:37:02 AM2/4/16
to Ivan Gracia
Thanks! I'll update my constraints and get back to you. Meanwhile could you suggest me ways to keep my recorded file size to a minimum? Also, how can I save bandwidth on bandwidth since currently, a single stream uses ~170KB/s. I'd like them to consume a tenth of that because I would be hosting multiple users ~200 at a time and each feed would be ~2hrs long.

Sent from my BlackBerry 10 smartphone.
From: Ivan Gracia
Sent: Thursday, 4 February 2016 20:33
To: Kurento Public

ritvik....@mettl.com

unread,
Feb 5, 2016, 1:59:41 AM2/5/16
to kurento, ritvik....@mettl.com
Thanks Ivan! That seemed to resolve the issue. Any idea when firefox would start supporting the frameRate option?

Ivan Gracia

unread,
Feb 5, 2016, 7:12:06 AM2/5/16
to Kurento Public, ritvik....@mettl.com
I thought it was working already... Are you sure it is being ignored?

Ivan Gracia



--

ritvik....@mettl.com

unread,
Feb 8, 2016, 12:14:43 AM2/8/16
to kurento, ritvik....@mettl.com
There was a casing issue, "frameRate" doesn't get detected. Rest, correct me if i'm wrong, the stream takes some time to settle and initial varies a bit. I haven't tested a longer recording. I'll let you know the results once I get around with the testing.

Ritvik Sachdev


On Thursday, February 4, 2016 at 3:11:13 PM UTC+5:30, ritvik....@mettl.com wrote:

Ivan Gracia

unread,
Feb 15, 2016, 7:00:09 AM2/15/16
to kurento, ritvik....@mettl.com
Yes, it's a slow start connection, so it has to stabilize a bit in the first seconds of connection.
--
Reply all
Reply to author
Forward
0 new messages