[FFmpeg-devel] [PATCH] avformat: set start_time_realtime when demuxing
Gyan Doshi
ffmpeg at gyani.pro
Tue Jun 14 12:11:54 EEST 2022
On 2022-06-14 01:51 pm, Marton Balint wrote:
>
>
> On Tue, 14 Jun 2022, Gyan Doshi wrote:
>
>> Add new flag AVFMT_START_REALTIME for the couple of demuxers that set it
>> internally.
>
> I don't think this is the same semantics.
>
> start_time_realtime is the time when the stream was originally
> captured, and not when the stream was received. So you can't simply
> use av_gettime() in the demuxers for that field.
I saw that in the rtsp read_packet. I thought of adding a new field but
think the semantics are close enough to serve the purpose of a rough
sync so I added the flag for the demuxers that receive origin timestamp.
I can update the doxy to record this difference. Or should I add a new
field?
Regards,
Gyan
More information about the ffmpeg-devel
mailing list