<div dir="ltr">

It seems to be something trivial, but I couldn't find a way to get the information of the packets lost, usually sent by RTCP in RTP streams.<br><br>I've seen this question (<a href="https://stackoverflow.com/questions/20265546/reading-rtcp-packets-from-an-ip-camera-using-ffmpeg">https://stackoverflow.com/questions/20265546/reading-rtcp-packets-from-an-ip-camera-using-ffmpeg</a>) about reading RTCP packets, but I have two issues with it:<br><br>1. It uses RTSP structures. In my case, the RTP stream is not necessarily RTSP, so I imagine it wouldn't work.<br>2. Even if it was (or worked without RTSP), it uses the rtsp.h header, and as far as I understand this file functions are not exposed (the only exposed headers in /libavformat when compiling FFmpeg are avio.h, libavformat.h and version.h. Maybe I'm wrong here?)<br><br>I also found this function (<a href="https://www.ffmpeg.org/doxygen/3.0/rtpdec_8c.html#a7775bfcc7505137bfa63f5610908a659">https://www.ffmpeg.org/doxygen/3.0/rtpdec_8c.html#a7775bfcc7505137bfa63f5610908a659</a>) in the rtpdec.h that calculates the packet loss using the RTPStatisticsread from RTPDemuxContext. But I don't understand how I would access this RTPDemuxContext (the function I found that returns this structure is in rtsp.h, so I'd be back to the previously mentioned problem).<br><br>So, any help regarding these doubts that I have or another different way to extract the packet loss information would be appreciated!<div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><p style="margin-top:0px;margin-bottom:0px;font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px"><br></p></div></div></div></div></div>