Framerate and frame skipping

154 views
Skip to first unread message

soft.deve...@gmail.com

unread,
Mar 26, 2018, 8:54:07 AM3/26/18
to discuss-webrtc
Hi,

I have a webrtc native app with a custom video capturer pushing 60FPS to my webrtc peer connection. I have also an external encoder configured as H264 1280x720p with min bitrate of 6Mbps and max of 12Mbps.
The thing is that even o LAN i dot reach to get those 60FPS on the encoder side (the HW can do 360FPS), i have constant video capturer framerate of 60FPS but the encoder is constantly being called to SetRateAllocation, this is an example sequence:

0m:31s:099ms: SetRateAllocation( 6578 kbps , 48 fps ); 
0m:31s:153ms: SetRateAllocation( 6448 kbps , 50 fps ); 
0m:31s:187ms: SetRateAllocation( 6590 kbps , 52 fps ); 
0m:31s:235ms: SetRateAllocation( 6660 kbps , 52 fps );
0m:31s:269ms: SetRateAllocation( 6724 kbps , 54 fps );
0m:31s:314ms: SetRateAllocation( 6578 kbps , 50 fps );

It can be called each 100ms and i think this is a little bit to hard. Is it the expected behaviour even on a LAN with less than 1ms latency and 0 packet loss?? (it does even happen when streaming from localhost to localhost).
So, i think there is something i may be missunderstanding, is there any way to disable frame skipping to the encoder? What may be the reasons it is not setting an stable 60FPS 12Mbps on the encoder side?

Any suggestion is welcome :)
Best regards
Reply all
Reply to author
Forward
0 new messages