From patchwork Fri Apr 27 11:59:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andre Ribeiro Camargo X-Patchwork-Id: 8669 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:155:0:0:0:0:0 with SMTP id c82-v6csp882552jad; Fri, 27 Apr 2018 10:27:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo6akhRxvtxStExYM+ppR7QaKwLbqU/93NANUpZIWP5OLrF/yZd642T6uqFWaRUP/4i8qC7 X-Received: by 2002:adf:b594:: with SMTP id c20-v6mr2566081wre.65.1524850049709; Fri, 27 Apr 2018 10:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524850049; cv=none; d=google.com; s=arc-20160816; b=vNyXrwtXuzSxcTYgJM4/fcrqUwTM8eUOEYOfvHvhb+5r8fL/uZIMdvHwCORU2IZOSU p76BeUc5ln4MNvJJHeGT5H1n3ijaSwjv5zAHciKTZ/bGyTplfjSna6vQYACnUHGtZ9zz HDyBa0/tNdfadMzBP9C9QTTmnUsq1IkIT1PlJp3Fk51Ssf+h7/Hj61nT9n1ZrYe5D45V R5ZndRSJgesRQdo9eNG8MjyrFBO7noYDEOWSNLDXkoVFQzRCnPxtPgFHkkUt9wtIQCNO TDrMWEyEfyrN1IINKtH73HBTZ13qtIw+as+affDgiHaqQ1QGO3N3G10tgoP4ZRDe50ZC xL3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:message-id:date:thread-index :thread-topic:to:from:dkim-signature:delivered-to :arc-authentication-results; bh=Fxal0XSw7E9Mg9qnwdt7+Ugk3JETCP6lA+w3ilOLTsY=; b=b9U/WWGCDUeRiogCO9qe3dZhnpOgvu1EtFKNECKe/0KAZ0TchjRzWJ5ZBB+iw12PsL sB4aikgFlhoOfG+rsYus2+mHtCFRw8LNg/2uSlXY/JQICpaUr4WP5mIfPm2YBD8fZxgg KLct136jTxeNqiMpeqv4dvT5n1bXljEhL0RrTd0gRtEZB7Gki+AzKnYbxbEcnISoEU7R O0/rePAj6w1l28UFgcPRDr1aTmPNvKc1QFx3GdIlfhyRDBPTOFyf0JoaGKBSQlZt+lBE qhPp6/viudmUNJmE+uBLyk1Ol9n6LO0YMIlsUvOwmQ8c+GaBD/vQmcSeRPr/DY1+sesT CtQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@rederecordbr.onmicrosoft.com header.s=selector1-sp-r7-com header.b=cK+J2Rs0; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=r7.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 63-v6si1447012wrh.93.2018.04.27.10.27.28; Fri, 27 Apr 2018 10:27:29 -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; dkim=neutral (body hash did not verify) header.i=@rederecordbr.onmicrosoft.com header.s=selector1-sp-r7-com header.b=cK+J2Rs0; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=r7.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EF93368A635; Fri, 27 Apr 2018 20:26:55 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0080.outbound.protection.outlook.com [104.47.34.80]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DFAD168A52F for ; Fri, 27 Apr 2018 14:58:36 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rederecordbr.onmicrosoft.com; s=selector1-sp-r7-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=K6CNRBRTHR02g0NK/x/qmI8l7caU9xes5XuYgDPzzg4=; b=cK+J2Rs0dlhpAU24m11bUR91LrLKXo06f6FILVdf4sk59YKokMKeLEBji4we762JBIqZ92QGJPpUZe0ODf6pQT0/k8KUtXcj2KsdMHB7V+rpPG2xsdB3zXiPvllVRwiQFeL7yXMD4fMXf7IrivAshDUjzo9unzDVi+fDEwu6LKs= Received: from FR1PR80MB0422.lamprd80.prod.outlook.com (10.170.195.13) by FR1PR80MB2022.lamprd80.prod.outlook.com (10.175.144.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.14; Fri, 27 Apr 2018 11:59:04 +0000 Received: from FR1PR80MB0422.lamprd80.prod.outlook.com ([fe80::24f5:bf7d:ae95:5226]) by FR1PR80MB0422.lamprd80.prod.outlook.com ([fe80::24f5:bf7d:ae95:5226%14]) with mapi id 15.20.0715.018; Fri, 27 Apr 2018 11:59:04 +0000 From: Andre Ribeiro Camargo To: "ffmpeg-devel@ffmpeg.org" Thread-Topic: Format fps field of progress report to two decimal digits Thread-Index: AQHT3h6++EnENI0Rr0GuiOEvB5hAWQ== Date: Fri, 27 Apr 2018 11:59:04 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=arcamargo@sp.r7.com; x-originating-ip: [187.51.18.126] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; FR1PR80MB2022; 7:2NYmt3dETax/OxMFFRIwq8kbk5HdrAVJ5fAflLNjZG5EkbTTjbsLzChWu7nLLd8iMORUrlcmlF80wfTnKAGAabLwBkSmvqPmShYk2wtpxHsU3xRq7UYMNA95mu/SJCfVJQlIn1EVLmqvrnwNnJRYcJbVd9wfuKyhqjD5eVBGAgs3Ki3s2fsqvxXoi7whsIi+DHNVeYUE6HToQCs3Q3pQW918UCZPjiY3CD8Wt6JLGQFXr46q55h2qq1WYO2TqLFg x-ms-exchange-antispam-srfa-diagnostics: SOS; x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(49563074)(7193020); SRVR:FR1PR80MB2022; x-ms-traffictypediagnostic: FR1PR80MB2022: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(102415395)(6040522)(2401047)(5005006)(8121501046)(3231232)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6041310)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:FR1PR80MB2022; BCL:0; PCL:0; RULEID:; SRVR:FR1PR80MB2022; x-forefront-prvs: 0655F9F006 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(39850400004)(39380400002)(376002)(396003)(346002)(53754006)(199004)(51874003)(189003)(106356001)(3660700001)(2351001)(5890100001)(14454004)(486006)(478600001)(55016002)(33656002)(476003)(8676002)(6916009)(81156014)(74316002)(6436002)(2906002)(9686003)(66066001)(2501003)(105586002)(99936001)(68736007)(6116002)(81166006)(6606003)(19627405001)(53936002)(3846002)(186003)(5660300001)(7736002)(316002)(25786009)(5250100002)(97736004)(7696005)(2900100001)(6506007)(99286004)(102836004)(3280700002)(26005)(54896002)(86362001)(5640700003)(8936002)(59450400001); DIR:OUT; SFP:1101; SCL:1; SRVR:FR1PR80MB2022; H:FR1PR80MB0422.lamprd80.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; MX:1; received-spf: None (protection.outlook.com: sp.r7.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: JInYFuK1ry0HtEjUera9iw3Z8ABlFv+u/Mc9+pW7m/G6yhGfW9wOKs9KgfFrHACLXbxUcc7p47JYAxdLGSPi52tbV9irQug8oluSirVqrRVdKrB6TRiwdqi/w+cj9OKTrikfDIJjhwNPc9A6KVG4ZeO/Ie/IwlRkTvuVM5N89kanA5JrVhLunQ5QhcpH7A7r spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 2b39d30e-281a-47cb-de7a-08d5ac3645e2 X-OriginatorOrg: sp.r7.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b39d30e-281a-47cb-de7a-08d5ac3645e2 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Apr 2018 11:59:04.2875 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: c6f46298-0364-4624-add1-d88efbc6b23f X-MS-Exchange-Transport-CrossTenantHeadersStamped: FR1PR80MB2022 X-Mailman-Approved-At: Fri, 27 Apr 2018 20:26:55 +0300 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 Subject: [FFmpeg-devel] Format fps field of progress report to two decimal digits 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hello everybody! Mr. Niedermayer, could you please review the attached patch to ffmpeg.c? Thanks in advance. André AVISO Esta mensagem, incluindo os seus anexos, pode conter informações confidenciais destinadas a indivíduo e propósito específicos e é protegida por lei. Se você não é o destinatário dessa mensagem, fica desde já notificado de que não poderá utilizar, copiar ou divulgar as informações e os conteúdos dos documentos. É terminantemente proibida a utilização, acesso, cópia ou divulgação não autorizada das informações presentes nesta mensagem. NOTICE This message, including its attachments, may contain confidential and/or privileged information intended for a specific person and/or purpose and is protected by law. If you are not the addressee of this message, you shall not use, copy or disclose any information herein. From 6085cdab413c0f95aca567260bf16df09f446531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Camargo?= Date: Fri, 27 Apr 2018 00:35:31 -0300 Subject: [PATCH] fftools/ffmpeg: change fps progress log message to show two decimal digits Useful when live encoding videos at 29.97 fps because delivers a more accurate result for monitoring. --- fftools/ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 4dbe72186d..565b2c6dab 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1696,7 +1696,7 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti av_bprintf(&buf, "frame=%5d fps=%3.*f q=%3.1f ", frame_number, fps < 9.95, fps, q); av_bprintf(&buf_script, "frame=%d\n", frame_number); - av_bprintf(&buf_script, "fps=%.1f\n", fps); + av_bprintf(&buf_script, "fps=%.2f\n", fps); av_bprintf(&buf_script, "stream_%d_%d_q=%.1f\n", ost->file_index, ost->index, q); if (is_last_report) -- 2.13.5 (Apple Git-94)