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

Jonathan Viney jonathan.viney at gmail.com
Thu May 23 07:44:35 EEST 2019


Hi,

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.

Eg:
ffmpeg -first_rtcp_ntp_time_path out.mp4.ntp -i rtsp://10.0.0.1/ -c copy
out.mp4

Regards,
-Jonathan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avformat-rtsp-add-first_rtcp_ntp_time_path-option-to.patch
Type: application/octet-stream
Size: 3296 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190523/1ec0f141/attachment.obj>


More information about the ffmpeg-devel mailing list