FEC for audiohridge

70 views
Skip to first unread message

左裕初

unread,
Sep 6, 2016, 5:38:03 AM9/6/16
to meetecho-janus
Hi, all

I simply change the USE_FEC parameter to 1  in order to make use of the opus forward error correction(FEC). However, it turned out that the decoded packet to be an array of zero, and the client can hear nothing after then.

Am I missing something before I can make use of FEC?

左裕初

unread,
Sep 6, 2016, 5:50:12 AM9/6/16
to meetecho-janus

More information. I think this is related to the opus_decode api and I have checked it before.


int opus_decode(OpusDecoder * st,
const unsigned char * data,
opus_int32 len,
opus_int16 * pcm,
int frame_size,
int decode_fec 
)

The decode_fec means:

[in]decode_fecint: Flag (0 or 1) to request that any in-band forward error correction data be decoded. If no such data is available, the frame is decoded as if it were lost.

If I pass 1  decode_fec, the pcm output is an array of zero. I use chrome as the client to test this function and I have checked the useinbandfec is set to 1 in the sdp offer and answer. So does it mean chrome cannot encode FEC data, which makes the decoder output an array of zero?


在 2016年9月6日星期二 UTC+8下午5:38:03,左裕初写道:

Lorenzo Miniero

unread,
Sep 6, 2016, 5:59:38 AM9/6/16
to meetecho-janus
I'm not familiar with FEC support in Opus and Chrome, sorry, I still haven't looked into this. As to FEC support for Opus in Chrome, you should try asking on discuss-webrtc.

L.
Reply all
Reply to author
Forward
0 new messages