Dropping frames vs. reducing resolution

1,277 views
Skip to first unread message

Waikit Lau

unread,
Oct 29, 2015, 2:03:38 AM10/29/15
to discuss-webrtc
Hi friends, we are webRTC newbies and need some help here.
We have a peer sending webRTC video to 1-4 peers (half-duplex). When we get up to 2-4 peer receivers, we see degradation in resolution over time. We think it's the sender's encoder chewing up too much CPU, therefore it's lowering resolution. Is there a way to force it to drop frames rather than lowering resolution. If there's congestion, we want to keep resolution as high as possible and are ok dropping as many frames as possible.

Are there any flags we can set on webRTC to do this?

Appreciate any help!

Ben Schwartz

unread,
Oct 29, 2015, 9:44:31 AM10/29/15
to discuss...@googlegroups.com

Have you tried just disabling cpu overuse detection?

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/5c79f9c3-43b9-47a4-b50e-85bd25b86ef1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Waikit Lau

unread,
Oct 30, 2015, 3:29:15 PM10/30/15
to discuss-webrtc
Thx for suggestion. Will try that next.
Where do we insert the flag? In createOffer, createAnswer or when creating a new RTCPeerConnection?

Ben Schwartz

unread,
Oct 30, 2015, 3:49:59 PM10/30/15
to discuss...@googlegroups.com

Alexandre GOUAILLARD

unread,
Nov 1, 2015, 7:34:15 PM11/1/15
to discuss...@googlegroups.com
hi waikit:

are you looking for a flag in the browser, in JavaScript,
or a flag in the native C++ code for a native app?


For more options, visit https://groups.google.com/d/optout.



--
Alex. Gouaillard, PhD, PhD, MBA
------------------------------------------------------------------------------------
Principal Architect - Citrix, San Francisco
President - CoSMo Software Consulting, Singapore
------------------------------------------------------------------------------------

Waikit Lau

unread,
Nov 2, 2015, 12:30:51 PM11/2/15
to discuss-webrtc
Alexandre - in the browser in JS. 

Alexandre GOUAILLARD

unread,
Nov 4, 2015, 11:32:26 PM11/4/15
to discuss...@googlegroups.com
Hi waikit,

You have no such flag available today.

However, the draft of the specs has a new flag to help you: RTCDegradationPreference (here)

Do not expect an implementation in browsers before Q2 2016 though.

HTH.

Alex.



For more options, visit https://groups.google.com/d/optout.

Christoffer Jansson

unread,
Nov 5, 2015, 12:58:54 AM11/5/15
to discuss...@googlegroups.com

You can turn off the cpu overuse detector by passing in the "googCpuOveruseDetection": true as an optional constraint when creating the peer connection. This used to work, not sure if it does anymore, we used it in this old test page: https://github.com/webrtc/testrtc/blob/master/src/manual/peer2peer/js/main.js#L528.


Christoffer Jansson

unread,
Nov 5, 2015, 1:00:08 AM11/5/15
to discuss...@googlegroups.com

And by true i mean false off course:) E. G. googCpuOveruseDetection": false 

Emin DENİZ

unread,
Apr 5, 2016, 6:49:38 AM4/5/16
to discuss-webrtc
Hi Cristoffer,
I tried to set googCpuOveruseDetection parameter as false but video Resolution keep decreasing. Have you ever try this method? Or do you have any other suggestions? Any help will be appreciated. 
Thank you 

5 Kasım 2015 Perşembe 09:00:08 UTC+3 tarihinde Christoffer Jansson yazdı:

Christoffer Jansson

unread,
Apr 6, 2016, 3:47:06 AM4/6/16
to discuss-webrtc
Turns out you cannot disable it entirely, take a look at this thread.

/Chris


For more options, visit https://groups.google.com/d/optout.
--
/Chris

Emin DENİZ

unread,
Apr 6, 2016, 3:50:55 AM4/6/16
to discuss-webrtc
Hi Chris,
Actually I start that mail thread :) I found solution for cpu limited resolution. I mention it on the last post. Now I am dealing with disable band with limited resolution. 

6 Nisan 2016 Çarşamba 10:47:06 UTC+3 tarihinde Christoffer Jansson yazdı:

Christoffer Jansson

unread,
Apr 6, 2016, 4:08:44 AM4/6/16
to discuss-webrtc
Ow ;) I was replying on my phone and did not check the names on the thread, sorry.


For more options, visit https://groups.google.com/d/optout.
--
/Chris

Shashank Gupta

unread,
Apr 22, 2019, 1:22:22 AM4/22/19
to discuss-webrtc
Hi Waikit Lau,

I am facing the exact same issue in android during webRTC integration. and from last, one week and didn't find any solution. Did you fix this issue? Could you please help me to solve this problem.
Thanks. 
Reply all
Reply to author
Forward
0 new messages