[Libav-user] Read RTCP lost packets info
Vitor Vanacor
vitorvanacor at gmail.com
Mon Jun 11 17:17:45 EEST 2018
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.
I've seen this question (
https://stackoverflow.com/questions/20265546/reading-rtcp-packets-from-an-ip-camera-using-ffmpeg)
about reading RTCP packets, but I have two issues with it:
1. It uses RTSP structures. In my case, the RTP stream is not necessarily
RTSP, so I imagine it wouldn't work.
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?)
I also found this function (
https://www.ffmpeg.org/doxygen/3.0/rtpdec_8c.html#a7775bfcc7505137bfa63f5610908a659)
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).
So, any help regarding these doubts that I have or another different way to
extract the packet loss information would be appreciated!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20180611/6c00207c/attachment.html>
More information about the Libav-user
mailing list