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 2F4A744A84 for ; Mon, 6 Feb 2023 01:22:39 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2EAB868BE53; Mon, 6 Feb 2023 03:22:36 +0200 (EET) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8F28A68BCE9 for ; Mon, 6 Feb 2023 03:22:29 +0200 (EET) Received: by mail-wm1-f45.google.com with SMTP id l37-20020a05600c1d2500b003dfe46a9801so6182471wms.0 for ; Sun, 05 Feb 2023 17:22:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iWt8ixD6hvHiVwjwWbJfIh8JkId0C7RwbJ+BvDHEu4w=; b=RnWyZlNb9BvUlO3O7UdM17g5u3Z5ck+YuuY637igaI7GTJvybjMI7qb74u3/mNKajd j7CN9pVxmn8v69H7Z4RbPLaGM1cn2t1AMhPyApEi9qGA8r9sPMfcjHLsfDjdYYuwOHA7 z9LAhxT+sRf8TFVGezpnbZn9jwmlvgtycJr4Xt2tZWLkU4SsDyp33X5Daxr3LFu8u30z 1CeEQxVB1zi+mdd7qCO0GFsuuQXMFwSxEdeyNlBDpsyIMYs4HWFtuUNR2YwZp8soR2v0 jJdG4DE14hgsqw0eLfE+n2ANgjT0uz+RkJHCHvnAHMcquDCxRC5JpLVDsYpqlVjCV/zJ z5hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iWt8ixD6hvHiVwjwWbJfIh8JkId0C7RwbJ+BvDHEu4w=; b=JYPWaCtdlP+Gyi+z0LqOaYi8Bekg1vn9GofvPZldNktlg2BleTi7FjyYSdFrMBexXi 1ZbHSliVDuNcL1qmQRFkMkgmZ0Doq+9YWoQjp4Q3zGIkLDpjtFEtcjpXHm8sNO6UCg5z +dv+tw7VQYnZdsOT646jxWJmjb6ayghcMJ57hBC2c/f9bORi1WeD9YuSfEamGRz2ea3p 179ExZmYGOmMmBte1XDTXrNe89/yUgT1DwnSPWDHE19IgkeyH3CSTTbCpcUeLrzouv6e 6cOJfFdFQinCghBjesaVjE4P9hmxPiU9Idy7EyjGDMIqmv+TCl2ZN4GPj5maYBReRPd5 7JSg== X-Gm-Message-State: AO0yUKVP1HLviXNhv6qZ0azH/D3c5/EL+kSoEF9fAnihZXnx9ga5nJYc dKZF5YZWCArgp+PcHZdPQHHODMHfPPo= X-Google-Smtp-Source: AK7set/cwRRE7LAabxeoZiNVoB490HYsKgVfBl4Owx3FcwkzK/3x1kFCNdpKtxaMpLBjq6pjgmo+xQ== X-Received: by 2002:a05:600c:1d03:b0:3dd:1bcc:eb17 with SMTP id l3-20020a05600c1d0300b003dd1bcceb17mr17927353wms.28.1675646547339; Sun, 05 Feb 2023 17:22:27 -0800 (PST) Received: from mariano (94-37-133-75.adsl-ull.clienti.tiscali.it. [94.37.133.75]) by smtp.gmail.com with ESMTPSA id ip20-20020a05600ca69400b003dd19baf45asm8963175wmb.40.2023.02.05.17.22.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Feb 2023 17:22:26 -0800 (PST) Received: by mariano (Postfix, from userid 1000) id 004DEBFB73; Mon, 6 Feb 2023 02:22:24 +0100 (CET) From: Stefano Sabatini To: FFmpeg development discussions and patches Date: Mon, 6 Feb 2023 02:22:24 +0100 Message-Id: <20230206012224.338931-1-stefasab@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/2] ffmpeg_demux: show fixed timestamps in ts_fixup 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 Cc: Stefano Sabatini Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Help debugging. --- fftools/ffmpeg_demux.c | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index 4b5c62b0d5..71ce7d9a02 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -173,16 +173,19 @@ static void ts_fixup(Demuxer *d, AVPacket *pkt, int *repeat_pict) const int64_t start_time = ifile->start_time_effective; int64_t duration; - if (debug_ts) { - av_log(NULL, AV_LOG_INFO, "demuxer -> ist_index:%d:%d type:%s " - "pkt_pts:%s pkt_pts_time:%s pkt_dts:%s pkt_dts_time:%s duration:%s duration_time:%s\n", - ifile->index, pkt->stream_index, - av_get_media_type_string(ist->st->codecpar->codec_type), - av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &ist->st->time_base), - av_ts2str(pkt->dts), av_ts2timestr(pkt->dts, &ist->st->time_base), - av_ts2str(pkt->duration), av_ts2timestr(pkt->duration, &ist->st->time_base)); +#define SHOW_TS_DEBUG(tag_) \ + if (debug_ts) { \ + av_log(NULL, AV_LOG_INFO, "%s -> ist_index:%d:%d type:%s " \ + "pkt_pts:%s pkt_pts_time:%s pkt_dts:%s pkt_dts_time:%s duration:%s duration_time:%s\n", \ + tag_, ifile->index, pkt->stream_index, \ + av_get_media_type_string(ist->st->codecpar->codec_type), \ + av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &ist->st->time_base), \ + av_ts2str(pkt->dts), av_ts2timestr(pkt->dts, &ist->st->time_base), \ + av_ts2str(pkt->duration), av_ts2timestr(pkt->duration, &ist->st->time_base)); \ } + SHOW_TS_DEBUG("demuxer"); + if (!ist->wrap_correction_done && start_time != AV_NOPTS_VALUE && ist->st->pts_wrap_bits < 64) { int64_t stime, stime2; @@ -225,6 +228,8 @@ static void ts_fixup(Demuxer *d, AVPacket *pkt, int *repeat_pict) if (ist->st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO && av_stream_get_parser(ist->st)) *repeat_pict = av_stream_get_parser(ist->st)->repeat_pict; + + SHOW_TS_DEBUG("demuxer+tsfixup"); } static void thread_set_name(InputFile *f) -- 2.25.1 _______________________________________________ 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".