From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 0D2A040059 for <ffmpegdev@gitmailbox.com>; Sun, 20 Apr 2025 11:25:00 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 01A44687D9F; Sun, 20 Apr 2025 14:24:57 +0300 (EEST) Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 09ACF687D16 for <ffmpeg-devel@ffmpeg.org>; Sun, 20 Apr 2025 14:24:51 +0300 (EEST) Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4ZgR40267yz9t6Q for <ffmpeg-devel@ffmpeg.org>; Sun, 20 Apr 2025 13:24:48 +0200 (CEST) Message-ID: <4607d003-bd32-4f47-9a07-fec3233eed45@gyani.pro> Date: Sun, 20 Apr 2025 16:54:44 +0530 MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org References: <20250419150541.A8EF7411BF6@natalya.videolan.org> Content-Language: en-US From: Gyan Doshi <ffmpeg@gyani.pro> In-Reply-To: <20250419150541.A8EF7411BF6@natalya.videolan.org> Subject: Re: [FFmpeg-devel] [FFmpeg-cvslog] avformat/dump: Print stream start offsets for input streams X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> Archived-At: <https://master.gitmailbox.com/ffmpegdev/4607d003-bd32-4f47-9a07-fec3233eed45@gyani.pro/> List-Archive: <https://master.gitmailbox.com/ffmpegdev/> List-Post: <mailto:ffmpegdev@gitmailbox.com> On 2025-04-19 08:35 pm, softworkz wrote: > ffmpeg | branch: master | softworkz <softworkz@hotmail.com> | Sat Feb 23 04:59:10 2019 +0100| [02d7384ed5eec0152056c081b536c16cb86e6361] | committer: softworkz > > avformat/dump: Print stream start offsets for input streams > > Seeing the offset of video and audio streams to each other is often > a useful metric in diagnosing and understanding issues with playback > or transcoding. > This commit adds those offsets to the stream info print. > > Signed-off-by: softworkz <softworkz@hotmail.com> > >> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=02d7384ed5eec0152056c081b536c16cb86e6361 > --- > > libavformat/dump.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/libavformat/dump.c b/libavformat/dump.c > index 3d37623a41..8c7db7b275 100644 > --- a/libavformat/dump.c > +++ b/libavformat/dump.c > @@ -678,6 +678,11 @@ FF_ENABLE_DEPRECATION_WARNINGS > print_fps(1 / av_q2d(st->time_base), "tbn", log_level); > } > > + if (st->start_time != AV_NOPTS_VALUE && st->start_time != 0 && st->time_base.den && st->time_base.num) { > + const double stream_start = av_q2d(st->time_base) * st->start_time; > + av_log(NULL, AV_LOG_INFO, ", Start-Time %.3fs", stream_start); This should use the same precision as the other timestamp printouts, to avoid subtle inaccuracies. For a single-stream MPEG-TS , ffmpeg prints "start: 1.466667" for the format and "Start-Time 1.467s" for the stream. Regards, Gyan > + } > + > dump_disposition(st->disposition, log_level); > av_log(NULL, log_level, "\n"); > > > _______________________________________________ > ffmpeg-cvslog mailing list > ffmpeg-cvslog@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog > > To unsubscribe, visit link above, or email > ffmpeg-cvslog-request@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-request@ffmpeg.org with subject "unsubscribe".