From patchwork Tue Oct 9 12:32:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Molkentin X-Patchwork-Id: 10631 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:ab0:73d2:0:0:0:0:0 with SMTP id m18csp4842949uaq; Tue, 9 Oct 2018 05:33:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV63BNiXy5ZJ/o/DcrUFT5lZUXDJ0UZVu3qy4F3Bxj6JVeU+BhX3XQf2Nzpw6sMIn6kqNpGry X-Received: by 2002:adf:9564:: with SMTP id 91-v6mr20768947wrs.60.1539088420944; Tue, 09 Oct 2018 05:33:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539088420; cv=none; d=google.com; s=arc-20160816; b=vH/5MqnC8GTxZI7tuZ7j6NJgbwxust9tlL0t6O/nAsHU8j/mJvR1+Mn8Ax4KKSLHgj eLmd1jdJNpaUS83oLL4JBrOPz2SobHuMCZ1OJcbT68TQsQaPi4k1bUjtrrAO23fEA0vz HepLeWGkj+Grav7HmV0Cnpev9MIlCdUUMHJ9mS5zLsBsEC7whR+iqSQ3xbsCgQchFOYf /Ln45ORFulzxcKOX+93MCxyXQjl9YK9tKALk+HErVdnS8IEOUlZYP+elhYYxA+RzO5JA FVE7Z0kLmG5pYouj31IivaNRHLBbkdX7Xkt7krHdt/3NL/JHp/hSuysZ6ejqSePvt6ZR nmYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to; bh=JOc5xqtUFXs/UTzTvqCqTeFe7/Tq476Dci8Iwu+xOQE=; b=H8Z62z/Tc8L65lI2f94erNcMUI+qdqEBoMT/4NJHH83C6ey3cnWRoDMgjUCOJII0w9 8tlWB9c1crGa6PpguRDAY0eio9IVXzoKFb8UzaieBnCHCNo6Ngg2/OD45Kese1lchXNJ /gcKP9yMQqaHPhdKAz9lbHzxDbRjNMXBA4fSeaaOHyu2+3hFbO3jIcm9JzZOHucyo3XJ cUBK10zuyQX5MLhvEvEA5Xu754zM+io9fhH+hQ9dNuOdNry0gelqET5bXz2qeyQsvpmt r2FWZBarG4lnM3Pn5ltbckoZO1nKzwNozEIieMgYiZnomxtlLRGTUaCBXVqkbuNT882/ 5MxA== 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 30-v6si19507958wrc.389.2018.10.09.05.33.40; Tue, 09 Oct 2018 05:33:40 -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 839A468A141; Tue, 9 Oct 2018 15:33:03 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail.molkentin.net (mail.molkentin.net [138.201.121.149]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1881C68A129 for ; Tue, 9 Oct 2018 15:32:57 +0300 (EEST) Received: from localhost (localhost4.localdomain4 [127.0.0.1]) by mail.molkentin.net (Postfix) with ESMTP id DCEB5DD5F1; Tue, 9 Oct 2018 14:33:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at example.com Received: from mail.molkentin.net ([127.0.0.1]) by localhost (mail.molkentin.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6aeR4Zhb8yWH; Tue, 9 Oct 2018 14:33:18 +0200 (CEST) Received: from oldnewthing.fritz.box (ip5b40eeb3.dynamic.kabel-deutschland.de [91.64.238.179]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: daniel@molkentin.de) by mail.molkentin.net (Postfix) with ESMTPSA id 076E1DE05E; Tue, 9 Oct 2018 14:33:16 +0200 (CEST) From: Daniel Molkentin To: ffmpeg-devel@ffmpeg.org Date: Tue, 9 Oct 2018 14:32:54 +0200 Message-Id: <20181009123258.21222-3-daniel@molkentin.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181009123258.21222-1-daniel@molkentin.de> References: <20181009123258.21222-1-daniel@molkentin.de> Subject: [FFmpeg-devel] [PATCH 2/6] libavfilter/ebur128: add target value to statistics line X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: Conrad Zelck , Daniel Molkentin MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Daniel Molkentin Signed-off-by: Conrad Zelck --- libavfilter/f_ebur128.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c index dfccbff5ec..89bfcb0b3e 100644 --- a/libavfilter/f_ebur128.c +++ b/libavfilter/f_ebur128.c @@ -735,7 +735,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) loudness_3000 -= ebur128->pan_law; } -#define LOG_FMT "M:%6.1f S:%6.1f I:%6.1f LUFS LRA:%6.1f LU" +#define LOG_FMT "TARGET:%d M:%6.1f S:%6.1f I:%6.1f LUFS LRA:%6.1f LU" /* push one video frame */ if (ebur128->do_video) { @@ -768,7 +768,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) /* draw textual info */ drawtext(pic, PAD, PAD - PAD/2, FONT16, font_colors, LOG_FMT " ", // padding to erase trailing characters - loudness_400, loudness_3000, + ebur128->target, loudness_400, loudness_3000, ebur128->integrated_loudness, ebur128->loudness_range); /* set pts and push frame */ @@ -811,7 +811,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) av_log(ctx, ebur128->loglevel, "t: %-10s " LOG_FMT, av_ts2timestr(pts, &outlink->time_base), - loudness_400, loudness_3000, + ebur128->target, loudness_400, loudness_3000, ebur128->integrated_loudness, ebur128->loudness_range); #define PRINT_PEAKS(str, sp, ptype) do { \