From patchwork Sun Oct 7 16:02:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Molkentin X-Patchwork-Id: 10621 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:ab0:73d2:0:0:0:0:0 with SMTP id m18csp2672356uaq; Sun, 7 Oct 2018 09:03:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV63xQvYFGAN0GzqjO5FD7u59ENBj4GkbCPkKy50X8j4PZs+pPeEQx7/TdYwdMZCgx3M1Xggo X-Received: by 2002:a1c:5e07:: with SMTP id s7-v6mr12601141wmb.91.1538928190188; Sun, 07 Oct 2018 09:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538928190; cv=none; d=google.com; s=arc-20160816; b=uvssBroYQsjZROfC/B6tk2nq5zKfiI+PE3Nq+9iKGN+/BGA979yH/3DwJQxLB6ZhSC DmhGn4y+n6bx/h0ImXwpAmSzgWq9by2ey3lI5/rNssPoiram8cQ/5KdL95qepZwEpzxS 85cSjg/1gkkQ4vcyO+gmBnJtqdiYnbSlLMfQDk8zo68coWtj6OxjuGqy2W/dztTBPy4B ktfOKxovy15uDGOfw3EE3e5Vqak+1hhtfg6M94OAHMiDty18OgaRE6vM4/bzS9QT4FuZ hbXv63tecoTz+dNHoTaq+C+pi3VMmByuzfY+Qs5DRCdAnYKRDLWNmu7nkBHFGPwxcCt2 sNug== 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=LrzhVRYkAuwTNqc0hICAvy0kSeJm+IiY962s5TE74BNzzVFAJA7GZqgjgfW18CHExY lRnCVDwzFAREQZlitAYQOJtzm42QbMxVgOsYGygpwNxNOiwVIa/ZtfcwaBogc6M8yaXl bsRK2ol0p3ONAax2tvCgFIw//qoIEpanitsBOQjK0hIuqTIfg4tWMlGnn3Tk8ZNd6say HdedPjz0gBZB2PD6TZApL0Ib4qJYEsvldVP0leRAZzBsd5laprE8lM4x+OXXNEar86r8 8uXYvM97lEFGYPbukQRL/cODz2NrkSexghw7dz0JkAGcjcsIjPXiT6AJr1t3cA5sVDR6 s+ug== 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 q130-v6si6262176wme.161.2018.10.07.09.03.09; Sun, 07 Oct 2018 09:03:10 -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 8D78668A118; Sun, 7 Oct 2018 19:02:30 +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 CED64689B79 for ; Sun, 7 Oct 2018 19:02:22 +0300 (EEST) Received: from localhost (localhost4.localdomain4 [127.0.0.1]) by mail.molkentin.net (Postfix) with ESMTP id 212E4D0514; Sun, 7 Oct 2018 18:02:44 +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 qjQVolQcwEUz; Sun, 7 Oct 2018 18:02:43 +0200 (CEST) Received: from oldnewthing.club.berlin.ccc.de (dancefloor-nat.fuckup.club.berlin.ccc.de [195.160.172.42]) (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 445C3D0392; Sun, 7 Oct 2018 18:02:42 +0200 (CEST) From: Daniel Molkentin To: ffmpeg-devel@ffmpeg.org Date: Sun, 7 Oct 2018 18:02:26 +0200 Message-Id: <20181007160229.18250-3-daniel@molkentin.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181007160229.18250-1-daniel@molkentin.de> References: <20181007160229.18250-1-daniel@molkentin.de> Subject: [FFmpeg-devel] [PATCH 2/5] 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 { \