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 155EC44F5B for ; Sat, 11 Feb 2023 00:12:28 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9B5A368BCEC; Sat, 11 Feb 2023 02:12:25 +0200 (EET) Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 179D968B890 for ; Sat, 11 Feb 2023 02:12:19 +0200 (EET) Received: by mail-ej1-f49.google.com with SMTP id gr7so19836232ejb.5 for ; Fri, 10 Feb 2023 16:12:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=eWDetrh1+tDULKvUFFGeipsKMzz+YOszWZv0UbDpZLc=; b=Q12sgxMT+YI19ShbbrCcr8pr1SZ9frUITut9/WN8mcVlNR7yR0hZZ46PzeiPEBTSUL /iG1bGoBzEqbyuRMnLwjqix4PUbSREOi1Dop3GEVKEr3ZO+JqnNsvZcvjRJIlZ2O9jgJ 1JX026n1w7Qmtg3Gtk/xHP6UM2JPCUi2Z0sbBIVY8s5d7emvz2SJwHFWnCwlPlT79iK0 ifjY1WCY7njC0rJFOGodEpP/L8Hz7xP+K9UnFoBjcI2JORbc6XF/f12RZHlXYURP25hM zYYgymukERzTf4htMfRNkqosVKZMA102VOzKkdpPPG/FTL4Dd/Guo0SjXI/htcVibUaP ybmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=eWDetrh1+tDULKvUFFGeipsKMzz+YOszWZv0UbDpZLc=; b=lOOpRSJCikBCx6Eu8bzfKIxMTLpo7PeJF6OyBMKcbR4rA774gGJY9+g5j2UZ7ebVkK KwVxsjsjXwA/59xFk3ltwxt3zBIWiljDmNbdEBVjtLjKmxRZMeD9lt586mQ4Xk+WwjuX eH4NLv/pIUwxtoeCXuQKrqcM3fDqC+usDguRZRFkEI3Se/aXrexEildpwXE9fITxvxOW 7pWmFlUOTmlhpmI0Rg7KEcKZ575WxAYNi+RTgg6qdpat4EwF6REopb+ZmG1fr+gAO6qQ v1FsLIvmDGAQH4SmFPhU/+xxHZodXx/BEGO9YTl3ESSCq9Hl/cA0dbvPdivXVe/rzmCl P4jw== X-Gm-Message-State: AO0yUKUQJAFrs59w6nqMBuk2RKsYNEz9/DnPJyYLJB3vDZPjGU4YaRX1 F4sLWabUr6018Rbnkn5XasITLZmiZywW/Tfx X-Google-Smtp-Source: AK7set9xmb9kgT03TJ6l/VrPzRnO6nxFdtagbvst2IW0+V+gonfHD19KsMOY2j2pFsGw6mAhp1VePw== X-Received: by 2002:a17:906:308e:b0:88a:da35:dd51 with SMTP id 14-20020a170906308e00b0088ada35dd51mr17057296ejv.14.1676074337857; Fri, 10 Feb 2023 16:12:17 -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 c18-20020a17090618b200b0088452ca0666sm3039077ejf.196.2023.02.10.16.12.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 16:12:17 -0800 (PST) Received: by mariano (Postfix, from userid 1000) id A203BBFB73; Sat, 11 Feb 2023 01:12:18 +0100 (CET) Date: Sat, 11 Feb 2023 01:12:18 +0100 From: Stefano Sabatini To: FFmpeg development discussions and patches Message-ID: <20230211001218.GD338325@mariano> Mail-Followup-To: FFmpeg development discussions and patches References: <20230206012224.338931-1-stefasab@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230206012224.338931-1-stefasab@gmail.com> User-Agent: Mutt/1.13.2 (2019-12-18) Subject: Re: [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 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: On date Monday 2023-02-06 02:22:24 +0100, Stefano Sabatini wrote: > Help debugging. > --- > fftools/ffmpeg_demux.c | 21 +++++++++++++-------- > 1 file changed, 13 insertions(+), 8 deletions(-) Will apply in a few days. BTW are categories exposed through the CLI (for example to only enable debug logs for a given category)? > 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".