On Thu, May 23, 2019 at 7:14 PM Moritz Barsnick <barsn...@gmx.net> wrote:

> 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.)
>

I agree having it transferred to a metadata key in the output would be
useful. That was my first thought, but seems like it would be a larger
patch and I wasn't sure if it would be able to write to the metadata for
streaming formats like fragmented MP4 (which is what I'm using) because the
RTCP packet arrives some time after the output metadata would have be
written (from what I understand). Please correct me if I'm wrong about that.


>
> > +                            av_strlcatf(buf, sizeof(buf), "%lld",
> s->start_time_realtime);
>
> start_time_realtime is int64_t, so the format identifier should be
> '"%" PRIi64'.
>

Thanks - will update the patch.

Regards,
-Jonathan.


>
> Moritz
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to