From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id AC5D7434EE for ; Tue, 14 Jun 2022 09:12:20 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8CA0268B58B; Tue, 14 Jun 2022 12:12:16 +0300 (EEST) Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [80.241.56.161]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 64B0268B366 for ; Tue, 14 Jun 2022 12:12:08 +0300 (EEST) Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4LMjPL2WVrz9sQr for ; Tue, 14 Jun 2022 11:12:06 +0200 (CEST) Message-ID: <2085463a-c755-6b87-1cd2-ddc78c1e576b@gyani.pro> Date: Tue, 14 Jun 2022 14:41:54 +0530 MIME-Version: 1.0 Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: <20220614080937.5263-1-ffmpeg@gyani.pro> <8eba956c-1462-dbd3-26c5-608688ae3f6@passwd.hu> From: Gyan Doshi In-Reply-To: <8eba956c-1462-dbd3-26c5-608688ae3f6@passwd.hu> Subject: Re: [FFmpeg-devel] [PATCH] avformat: set start_time_realtime when demuxing X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: 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 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".