[FFmpeg-devel] Extracting NTP timestamp from RTCP

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Oct 22 21:03:50 CEST 2013

On Tue, Oct 22, 2013 at 11:06:14AM -0600, Fred Rothganger wrote:
> It seems the simplest way to do this is to read the field
> RTPDemuxContext.first_rtcp_ntp_time (libavformat/rtpdec.h). Right
> now I have an incredibly bad hack in my own code which includes
> copies of all the necessary structs to upack the data (since these
> are not part of the public interface).
> I would like to do this in a much cleaner manner. In order of preference:
> * You tell me there is already an interface for it, and I am an
> idiot to have missed it.

I certainly wouldn't call you idiot for it, not least because I am not
sure it will work, but wouldn't that timestamp belong into
av_dict_set etc. to set it, other dict functions to access, a grep
should find you lots of examples.

Hope that helps,

More information about the ffmpeg-devel mailing list