FEC calculation logic - More details on how it works

125 views
Skip to first unread message

shrish MV

unread,
Jan 23, 2018, 12:58:55 PM1/23/18
to discuss-webrtc
Hi All,

I have been trying to understand the code around the file webrtc/modules/video_coding/media_opt_utils.cpp, to understand how the FEC rate is calculated give the different parameters like RTT, loss, bitrate , resolution , framerate etc. I am able to understand a few things , 

- the FEC rate tables have been calculated by some empirical experiment for 576x704 resolution.
- for other resolutions, we try to normalize to the above resolution and calculate based on loss
- boost protection for key frames
- convert the fecrate from 0-128 to 0-255 range exponentially

There are a few more details and reasoning i would like to understand.
- i dont see any unittest for this class ?
- in the code , we calculate the correction factor for lower rates , but it is never used anywhere ?
- the code for calculating "resolnFac" and "effRateFecTable" and "rateIndexTable" , i would like to understand the reasoning behind the code ?
- the kFecRateTable in fec_rate_table.h , how are these values calculated ?

If someone could explain me the above or point to a document regarding the above questions, that would be really helpful.

Thanks in advance.
Regards,
Shrish

yishen wang

unread,
Aug 20, 2021, 10:23:02 AM8/20/21
to discuss-webrtc
I would also like to understand  resolnFac
Reply all
Reply to author
Forward
0 new messages