[FFmpeg-devel] [PATCH] avformat/rtsp: Add -first_rtcp_ntp_time_path option to write the first NTP time to a file.

Moritz Barsnick barsnick at gmx.net
Thu May 23 10:14:14 EEST 2019


On Thu, May 23, 2019 at 16:51:16 +1200, Jonathan Viney wrote:
> > The NTP time from the first RTCP packet is currently extracted in
> > libavformat/rtsp.c and stored in AVFormatContext.start_time_realtime.
> > However, there is no way to access this value when using ffmpeg from the
> > commandline.
> >
> > This patch adds an option when using an RTSP input to write the value to a
> > file when it is received.

Is this useful for anything? Would it be more useful in a metadata key?
(Just wondering, not critisizing.)

> +                            av_strlcatf(buf, sizeof(buf), "%lld", s->start_time_realtime);

start_time_realtime is int64_t, so the format identifier should be
'"%" PRIi64'.

Moritz


More information about the ffmpeg-devel mailing list