From patchwork Wed Jul 13 09:17:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 36774 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:6da0:b0:8b:e47:9dbf with SMTP id wl32csp226191pzb; Wed, 13 Jul 2022 02:18:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sjepaCPAubqU8Bf/rnKMW/DCNwxw4X5cpE1gac4Q1ak8+wokCkg4rMgXcHp651TTli37Iv X-Received: by 2002:a17:907:9613:b0:72b:68df:8ada with SMTP id gb19-20020a170907961300b0072b68df8adamr2523320ejc.31.1657703935080; Wed, 13 Jul 2022 02:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657703935; cv=none; d=google.com; s=arc-20160816; b=PLnkQgZifDYGVvPG9Jcn3Ou7WSotDKtObUiuKecv7nprCNaB3BzbGvyxuJRTcCWq8B /7hBCVSxM2ZkTdGnLDKwQnong5OX913lq1oPKOY8rjLnC8F5T6IHZiegIs6oP1XVheR0 h42Do1YRWQnRr/9fZSspJC+K6wgrMk2oJA9I6n5td+SWHJ1Ej3KsV9zahPo+VAbN317i wR1y6XT5/A8ujZM9ZR5e2FCLaGenFat3c/RgpT0D39jAMJEH2lxHn1Ul67quQQbzH/tM ISU7807f3Bac6NkXMRDHE3+dgj2HbAE2q8C0jsN5LC67R9QVyfNt9TQyON7j3Vdf7ksG d1ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=Qp8gsJYzv3FmIxEWXRK01SekWv7eSb79w5m6X9yoq2M=; b=STaBmcx21m1QNrEt+B5eppH1+unc9FJ1D7KzUqEGIEnn8bvkUIM+Ins/BKjgc9hCPM LQleF7/9jL0so4Or5681iIoKI3/9ZcxIm+ZESrbPlg2Hk+DOuHs80903uX28p9fTayCy OiJiC5P7/9nwFfmYkLPndzflDTd6XtIHezDZLiPA6mfndAyw5HAKnPOz2+Sw7Zq3oAkg Q1YaGTuMDtpYSZ4oZrPkfGQTJVWWDI4EvPK8Y4ho5EvqUWe11HpmoYU+eOgPTeYmvg97 XENi+5R3ect64kbmhF5R5uf17AlRToj9CqXvP3asriTJae+hyu55i4hZKy+GprSD3jqn 7cXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id o4-20020a056402438400b0043ac721c313si8657157edc.550.2022.07.13.02.18.54; Wed, 13 Jul 2022 02:18:55 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 61B3368B99F; Wed, 13 Jul 2022 12:17:45 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0897C68B948 for ; Wed, 13 Jul 2022 12:17:37 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 975B524017E for ; Wed, 13 Jul 2022 11:17:33 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 09VHqeXcshcL for ; Wed, 13 Jul 2022 11:17:33 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id 212DF240511 for ; Wed, 13 Jul 2022 11:17:29 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id EB78E3A03EE; Wed, 13 Jul 2022 11:17:27 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 13 Jul 2022 11:17:25 +0200 Message-Id: <20220713091725.16638-9-anton@khirnov.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220713091725.16638-1-anton@khirnov.net> References: <20220713091725.16638-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 9/9] lavfi/vf_showinfo: print frame durations 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: pjx7iOIYDCh0 --- libavfilter/vf_showinfo.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 6efcafce28..2c8514fc80 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -709,10 +709,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) } av_log(ctx, AV_LOG_INFO, - "n:%4"PRId64" pts:%7s pts_time:%-7s pos:%9"PRId64" " + "n:%4"PRId64" pts:%7s pts_time:%-7s duration:%7"PRId64 + " duration_time:%-7s pos:%9"PRId64" " "fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c ", inlink->frame_count_out, - av_ts2str(frame->pts), av_ts2timestr(frame->pts, &inlink->time_base), frame->pkt_pos, + av_ts2str(frame->pts), av_ts2timestr(frame->pts, &inlink->time_base), + frame->duration, av_ts2timestr(frame->duration, &inlink->time_base), + frame->pkt_pos, desc->name, frame->sample_aspect_ratio.num, frame->sample_aspect_ratio.den, frame->width, frame->height,