[FFmpeg-devel] [PATCH] avformat: set start_time_realtime when demuxing
Marton Balint
cus at passwd.hu
Tue Jun 14 23:26:00 EEST 2022
On Tue, 14 Jun 2022, Gyan Doshi wrote:
>
>
> 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?
I prefer a new field.
Thanks,
Marton
More information about the ffmpeg-devel
mailing list