Oleg, I guess that you use my implementation ( http://code.google.com/p/csipsimple/source/browse/trunk/CSipSimple/jni/silk/pj_sources/silk.c) of silk codec. As far as I understood from silk codec api, the storage of previous frames is done by SILK itself. So the implementation I did is already valid to use FEC feature of SILK. And for the few tests I did with SILK with my implementation it's already capable to retrieve lost frames. I could mistake however since I didn't spent a lot of time on the SILK implementation. But my guess are pretty confirmed by the Opus implementation I did later (opus is based on SILK + CELT). So normally, you have just nothing to do if you want to use FEC with pjsip + my codec implementation. Regards, R?gis Le 25 mai 2012 16:31, "Oleg Lutsenko" <oleg.lutsenko at googlemail.com> a ?crit : > Hi guys, > > I am going to use nice FEC (Forward Error Correction) feature of SILK > codec, to recover lost frames. To use this feature I need to have access to > the next two frames after the lost one. This two frames include redundant > information about previous frame, so, potentially, its possible to recover > the lost frame. > > pjmedia_codec_op struct has recover function which I need to implement: > > pj_status_t(* pjmedia_codec_op::recover)(pjmedia_codec *codec, unsigned > out_size, struct pjmedia_frame *output) > > The problem I have right now, is that I have no idea how to get any frame > around the lost one. Is there any way how to get specific frame in a stream? > > Regards, > Oleg Lutsenko > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120525/915c3eb4/attachment.html>