From patchwork Wed Sep 28 09:21: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: 38399 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp77783pzh; Wed, 28 Sep 2022 02:21:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6C+NvmYMOT42W+vT4rCyUomJzAHtsmvBvqhNz/Upxl/aLJydsFQZS2pA9XgzESl3C4Ww6O X-Received: by 2002:a17:907:d0e:b0:782:6565:33b3 with SMTP id gn14-20020a1709070d0e00b00782656533b3mr25190085ejc.52.1664356908235; Wed, 28 Sep 2022 02:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664356907; cv=none; d=google.com; s=arc-20160816; b=u9XpLmS5RP+l8zadmwLXSznnG+CjRn5jYuCBObWZaAULuxeSsTq4oRQc9xVkXwT2FX aL29kOnhIwNrz4C16fYnyutuMP4oqUO4j1dfnJerqXuMYMx4b5ekwsN9yY19Wu5tWA9J OiidPZWKXU4Pc9iFgV6EgOf8MljCC/O02ZB9m+TEYpP7Ui/2BsOIkF3aRY8Xv1D/XGGL PGvikwUbYFm2vTJl0uiGZupdrRpAWHPBdoG+3Kk2RRuVJe9UfDD6hMSp+WogIcjbMOMl uKfe0GL9PSOyLSuBeFfbkbQlkUeD9t0fazFfOcTdBmRJa/xRZ3H1yBnIhDxvucgPJweD 7jow== 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:message-id:date:to:from :delivered-to; bh=NYB7bSIZfy8t9kZ8mUGtw/zPX6jHiOe6Kr1HNkfyp78=; b=pP9FNHKgBuXuKGvER4b3P33+AgeBBRYcnm5O6VH996e3hmCySeDsmI7Tk+jJCwPMVq ilt6sm06Urt+hLzLzKj1OJ/RYSgiYbBz7bctT0B6A7995s+GSXB9LXVe14eQKsKOcG+M L/fgeo3XylHEos+jzH0ORUZkiy1aTzZmWY1my5mIcecmlPHHpTja9cn1SOLQtY7AK0Hd 5DXRESqI/nvVv5NOLxaOuk8HoBf9bjJwuESnUuFNqZmds37McBweQXu6++Cl+n1ll0eQ T+8ba1v9xuw6nmtrz7yPwu6sG/P6lGhBFK60LwIHKIssiM6xTJaTIVE0mBjm2AsRsqCn 9cgQ== 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 sc11-20020a1709078a0b00b00782a3405722si4113053ejc.40.2022.09.28.02.21.46; Wed, 28 Sep 2022 02:21:47 -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 3E50B68BBA4; Wed, 28 Sep 2022 12:21:44 +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 0317268BB65 for ; Wed, 28 Sep 2022 12:21:38 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 7842B2405F9 for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id rdPJ0zZNF6GZ for ; Wed, 28 Sep 2022 11:21:37 +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 01C2B2400F4 for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id F14BA3A0520; Wed, 28 Sep 2022 11:21:36 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Sep 2022 11:21:25 +0200 Message-Id: <20220928092132.31566-1-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/8] lavfi/vf_fps: set frame duration 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: ciP9lq/tC1+g --- libavfilter/vf_fps.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c index 0e5a1fec35..051d278f54 100644 --- a/libavfilter/vf_fps.c +++ b/libavfilter/vf_fps.c @@ -291,6 +291,7 @@ static int write_frame(AVFilterContext *ctx, FPSContext *s, AVFilterLink *outlin // Make sure Closed Captions will not be duplicated av_frame_remove_side_data(s->frames[0], AV_FRAME_DATA_A53_CC); frame->pts = s->next_pts++; + frame->duration = 1; av_log(ctx, AV_LOG_DEBUG, "Writing frame with pts %"PRId64" to pts %"PRId64"\n", s->frames[0]->pts, frame->pts); From patchwork Wed Sep 28 09:21:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38401 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp77834pzh; Wed, 28 Sep 2022 02:22:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4UeJtEKmkpj8YRa6pCLzfB7NlLAuO91OxUiDavvQJy6DygbsCMBX8Yr7Im5DtRjgSklwoF X-Received: by 2002:a17:907:6d03:b0:782:abba:936c with SMTP id sa3-20020a1709076d0300b00782abba936cmr21645301ejc.758.1664356923145; Wed, 28 Sep 2022 02:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664356923; cv=none; d=google.com; s=arc-20160816; b=OpxwfVlcdK5XFTT3+YyAeCIgC+EC27DXCubhHQ6jPkXkku3VF/tQ19myEoodpsR/Of N+g5tZLalgwgcYjbqj0masIjMZDLLts+/1BnRT9E7hPG2LZgCzSDitan+7tX5XdtL+Mz d0iqU3t4M3VN/IwtfoakyXfwq+Ktpz/JkWjE3Ys45dYpipjK1TZWUS9IlltO8DIfEj1B AWdiZDMVCjA3hLxkUFqUMlxNLrT1bQQqzLvXeZpTUTKYoyHzMe/QwvUF9YgdagBqKdAi 3+d70QncrcnyPQPuOz7p4W1uukQT50G8CwZOf7SyytE6/09/ZgaL+UHyBlBKAbX7XrHG rLIA== 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=afEguXSpTSPBebU4A+tDKzTn08Gn1c+A+AGSDLB25Tk=; b=JvBfTNbO1WG3bu2QGl+x5n41Bcx9bEVp6HWKFGfX6PYWqi5PMLSB8j0FkkrCCBu85R Oya8kNcE/EtFNs248PFasnIwTfsc4MrHaT1ux/wssejkegHx8PPj376ZUwoBNVWfKPhr LPI+KkSQohiYP20P0Z9UiXd4+ZoKhLnwpDWdCymRS3wHPZhU/g4GhMBD8YB3D/IB2QyV JGpyQAnm1VBzQw2eBDSwDq2FCZ4Kt0P7dxGDjA8i83zlWuXiEN1x7o/8hLpbGwDqcL4G Jg4FwSXN3YEIBzg5zNY1LsUHVALcU6t8Bt+oBJGxc9k16vXS8dw0QpvDWot1DZp6lowW yASQ== 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 d23-20020a056402401700b00454c2c7f37csi4320839eda.101.2022.09.28.02.22.02; Wed, 28 Sep 2022 02:22:03 -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 16E6668BB65; Wed, 28 Sep 2022 12:21:47 +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 C39BD68BB82 for ; Wed, 28 Sep 2022 12:21:38 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 4AFB52404E4 for ; Wed, 28 Sep 2022 11:21:38 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 9O_hS4TeojdX for ; Wed, 28 Sep 2022 11:21:37 +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 164A32404F5 for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 012243A0D7F; Wed, 28 Sep 2022 11:21:36 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Sep 2022 11:21:26 +0200 Message-Id: <20220928092132.31566-2-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220928092132.31566-1-anton@khirnov.net> References: <20220928092132.31566-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/8] lavfi/setpts: unset 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: wMoqfjgdKnjs This filter cannot know frame durations. --- libavfilter/setpts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/setpts.c b/libavfilter/setpts.c index 171fae88c0..ba653df4ae 100644 --- a/libavfilter/setpts.c +++ b/libavfilter/setpts.c @@ -185,6 +185,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) d = eval_pts(setpts, inlink, frame, frame->pts); frame->pts = D2TS(d); + frame->duration = 0; av_log(inlink->dst, AV_LOG_TRACE, "N:%"PRId64" PTS:%s T:%f POS:%s", From patchwork Wed Sep 28 09:21:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38404 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp78018pzh; Wed, 28 Sep 2022 02:22:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM58hYde5ttzjTh9nCwln9BfXi9vYvcitJh88X4Ww0zasiv0vYtGwL9wq4laO7yG59Lfu9lP X-Received: by 2002:a05:6402:33c4:b0:448:e63e:4f40 with SMTP id a4-20020a05640233c400b00448e63e4f40mr31885009edc.203.1664356951200; Wed, 28 Sep 2022 02:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664356951; cv=none; d=google.com; s=arc-20160816; b=dKOtOVjmf+QUoJ+Nb2LtuY46qp0DpFWBTmzTFphzFC95ZBKpdiU7pK5GuzgAvy+R6A jikDN9igR6vWoNbf2z7vxCWUIjTkt8UC227hQbIhWuqjIXNJt/98rqp2VvPL+GYNO56K bmxIUibGFwOM2EmrK7hPHh7M675gD23jGTafDYGidJ/BtLU9oKI3KMs8t4e9iA9dZhuY /6ABXV/mmYayaCCaCnevSfJiNSkHnaWVHnftG8JHqbppVn/zYVy5LBrNqM/Fp8YG8uYT IzDnh6XOsHJpdE2hqJRUgpk4jxp1we6gc5+k41XBZZ5PESKDA2k/m1P8mIZc7a8GRxJK ak2Q== 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=xz1wtgzE4FGxhoIaZGtZZP/mlxQ8sCBLYZmUY0TUEsg=; b=IKbsyyNUSG7u9e7dxyEimrK2iKwr2G7Zk9p0a44gQOtKkDAHRmaNSRqzySS7aYlNi6 PEz7WXjlKG2Dt7TaUbyDWKlauPZjCAns0dW0LI3EsGdpuAuzJUqxocbtLu0sU0B9TSDe GqZuHpYx11bC2Dk9wWI44y0gRExB75mieUVtTxeSxFt/TV8LF6QAOO4AaeNutNWCCHpV H0SkdhzHw/xAu5MQo/duR6J3xTRRL+XxMyVLuByTcvDzMb8LGDF+w+uYjmz62jHKky7d tCnPckpD8UJdoN5zftfVXqbvC8cEu6W+gPVX9LeMfKU06mkMudEzqBqTN3X6hX81F5Ph zCeg== 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 x1-20020a170906b08100b00780f0b45416si3567086ejy.622.2022.09.28.02.22.30; Wed, 28 Sep 2022 02:22:31 -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 E777168BBC5; Wed, 28 Sep 2022 12:21:49 +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 4017E68BBB0 for ; Wed, 28 Sep 2022 12:21:43 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 9B73F2404F8 for ; Wed, 28 Sep 2022 11:21:39 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id yGIrinn8r2gN for ; Wed, 28 Sep 2022 11:21:39 +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 1AD202404F7 for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 0573F3A0DA0; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Sep 2022 11:21:27 +0200 Message-Id: <20220928092132.31566-3-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220928092132.31566-1-anton@khirnov.net> References: <20220928092132.31566-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/8] lavfi/avf_ahistogram: set 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: z4DzcOrDMIVp The filter is supposed to produce CFR output. --- libavfilter/avf_ahistogram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/avf_ahistogram.c b/libavfilter/avf_ahistogram.c index d14e0bcfac..c45493730d 100644 --- a/libavfilter/avf_ahistogram.c +++ b/libavfilter/avf_ahistogram.c @@ -245,6 +245,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) memset(s->out->data[3] + n * s->out->linesize[0], 0, w); } s->out->pts = av_rescale_q(in->pts, inlink->time_base, outlink->time_base); + s->out->duration = 1; s->first = s->frame_count; From patchwork Wed Sep 28 09:21:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38402 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp77887pzh; Wed, 28 Sep 2022 02:22:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7EHpoDlZ6Q3QkkeDbunE0KPy50l7DiLUXZi20xON4zAXVrnMHp2ARB4hk4IECOuQhImhnP X-Received: by 2002:a05:6402:400e:b0:44f:1b9d:9556 with SMTP id d14-20020a056402400e00b0044f1b9d9556mr32247507eda.208.1664356932168; Wed, 28 Sep 2022 02:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664356932; cv=none; d=google.com; s=arc-20160816; b=BMNfUHd58rtj8XUzw7DCNEbD4Wwbbpr4I7N+cziKXofQHsxoLm92n77wYbzfnZC6Rd 8yRCNp4+UHCG2VWo/gGNFBUgs7Wt2dJGp5V80YKQ2R+fcGjPrB7VpGP6QKukEyzyIyfX g376gyb4V5DSsR85ofZjE/t4oTCUzyAks+iOtOUustxCmqHUULQeyxdFcXOJcY8p6v4d 1TvbblrXhc+KRcSStkNSK2IAOxYQuI+reERhw0CCeMsgbDJ0ZlzoTnJKgqvDQ4KUfM+I kpvtkQZj29ld5ZW0wgP99z9BwyQIvymBA8z/FQOUkSOsmU4UVCjKgQTpvYihiKB5TaUC 2xnA== 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=Enwl2d7VF7ZBk1xe3lpVJFvLSyq9sayVxFVF+tdZeEo=; b=q9POkK1NFETVd5WDIJfNB7KDr4VzIno91Gv0E2dOoUh4G2lgjXxNiMtaWhSCPqEfQp TeRbFovBiIiPQXdVqOFSbY3EOvsyi5GGChsDjL+cTVMq6e/2AZFQEkidqmtcwVDjEvqy fJmk/+mMr939R8R9YN3wGAcDFTh6AF77igxx3T9lTFL6qn5Nmd5E4wVX2qWAd8mYW56v CvarUosKQ3hKC4DpX/9A7XTQZtj34iwmMHjaB+FsfSBZdVV4Uk+Q9rV/60fiaX1he08g KbkUKVRuBECLQqErl9/PJK3N67E3XMthh0lZe5Kf5TTdED4OerEX9Z8sTZVHGY/N7e9y mLrg== 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 g11-20020a50d0cb000000b004539c6d849bsi3834372edf.171.2022.09.28.02.22.11; Wed, 28 Sep 2022 02:22:12 -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 E506168BBB6; Wed, 28 Sep 2022 12:21:47 +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 4AD4968BBA5 for ; Wed, 28 Sep 2022 12:21:39 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id CAD642404F5 for ; Wed, 28 Sep 2022 11:21:38 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id BRiDnNxIicRm for ; Wed, 28 Sep 2022 11:21:37 +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 07AA8240183 for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 097CB3A13BB; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Sep 2022 11:21:28 +0200 Message-Id: <20220928092132.31566-4-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220928092132.31566-1-anton@khirnov.net> References: <20220928092132.31566-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 4/8] lavfi/avf_aphasemeter: set 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: yrsdgE3RuP64 The filter is supposed to produce CFR output. --- libavfilter/avf_aphasemeter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/avf_aphasemeter.c b/libavfilter/avf_aphasemeter.c index 3501e62825..0f7692982c 100644 --- a/libavfilter/avf_aphasemeter.c +++ b/libavfilter/avf_aphasemeter.c @@ -327,6 +327,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) AVFrame *clone; s->out->pts = in->pts; + s->out->duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); + clone = av_frame_clone(s->out); if (!clone) return AVERROR(ENOMEM); From patchwork Wed Sep 28 09:21:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38403 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp77960pzh; Wed, 28 Sep 2022 02:22:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5/iDeVtBZV0Zc2Z3Rh8O1OFsSsEUistkP5km5xjCsLyo3/ebMgpQR5Ch9uUaL8Khzd31Gl X-Received: by 2002:a17:907:c1c:b0:782:9d80:8bbf with SMTP id ga28-20020a1709070c1c00b007829d808bbfmr22294638ejc.203.1664356942340; Wed, 28 Sep 2022 02:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664356942; cv=none; d=google.com; s=arc-20160816; b=K0udeN4BPMXmT2T3K0a/rYxtPvBrfWekf7o7khl6f24MhdRPpIeWloSu1LXEIZvpUp 3Mww5KkK844y9aIg4icFHwN3Zj6yyguDxLEsJck+8c47tYu+Vr0rLsa4QW0eVL8NsAQg 8D1Qd2rNPpAv/T6mKqCuXxzEOgy3yrGBVwKM6t+obQPSCEdT2Sr6B4q9A6arubRmgYi8 wf0Gf6xzFzW6RZBtxmn2kX/hx0cHpPmYTmPSLkuA2/U0mMkbAf764NGRUVp2fbnLYnyI 3u3uMZalw6tUXihd6qorLQd6V8ntuzZo8G63AGcL5jX7pJrs+vXi6Ps9DnSeP70+AHr7 HErw== 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=JwxwAQADOM9Rw9CMyB7N0phiLWAqo0JKIMpJgw45bkg=; b=FNZLfbr12zImgwUYmtyFlQ4iEYRNfwErTXNZ0QrFgSfXc4vZClw3w2kyZHRxIYxxS3 vElOr5NnJFd2gyaWUUhW+gix3sH+URkl38VAJK5ZShh1moD8JolPjxSaxpINoQI1ACJs lHckC3/y9kbFxIuQZbpzW32HBsZLbVyNXxs3g2zZvimeJ/FeUolY1ZSZQbgZmFg4D4DD udxZ/VduWqETHggGVFV/JqAZ+ilhlti1l+Fp9k4G0/kow2Kn7tnfzdJzWls7Aep6YV0q vXkjZcdXUBS6oibHyqZtgsLN2fGEYngpTtnu+NN/cI6+QSwLkhAWolewi/xUNeH2F+Gw npYg== 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 di9-20020a170906730900b0073d78bbd49csi4247268ejc.666.2022.09.28.02.22.21; Wed, 28 Sep 2022 02:22:22 -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 04C6968BBBD; Wed, 28 Sep 2022 12:21:49 +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 B02FA68BB65 for ; Wed, 28 Sep 2022 12:21:39 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 3B62E240183 for ; Wed, 28 Sep 2022 11:21:39 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id uxUy6JbVctXM for ; Wed, 28 Sep 2022 11:21:38 +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 1D6642404F8 for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 0D5AF3A15EA; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Sep 2022 11:21:29 +0200 Message-Id: <20220928092132.31566-5-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220928092132.31566-1-anton@khirnov.net> References: <20220928092132.31566-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 5/8] lavfi/avf_avectorscope: set 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: /f5muqDnLUpE The filter is supposed to produce CFR output. --- libavfilter/avf_avectorscope.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/avf_avectorscope.c b/libavfilter/avf_avectorscope.c index fe381a631d..2ed85f56e5 100644 --- a/libavfilter/avf_avectorscope.c +++ b/libavfilter/avf_avectorscope.c @@ -275,6 +275,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) memset(s->outpicref->data[0] + i * s->outpicref->linesize[0], 0, outlink->w * 4); } s->outpicref->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base); + s->outpicref->duration = 1; av_frame_make_writable(s->outpicref); ff_filter_execute(ctx, fade, NULL, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx))); From patchwork Wed Sep 28 09:21:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38400 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp77794pzh; Wed, 28 Sep 2022 02:21:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6UQwFkOjpkH+5RReZuwhEFJqtSqOBawkncJndYAeJRaKQNjaNQ00yKrEEujH2Eoo2KgaIZ X-Received: by 2002:a17:906:ee86:b0:741:89bc:27a1 with SMTP id wt6-20020a170906ee8600b0074189bc27a1mr27038234ejb.725.1664356915338; Wed, 28 Sep 2022 02:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664356915; cv=none; d=google.com; s=arc-20160816; b=s1RyXR/A+VjyAfrnXjwiRdMXtG4m9wVXCOHpr6/mh6kpu6hBB7QbIceqrpxa0vZYmY DLrEyw7DErSVbYWl4eFmK+yvEnIUwiOlwGC7v8cZ5YBkCCqygWyyi+YTdaAGk+z5DlqO fM8LtZzJVoIm82KMHACUjeIpgHG+EMsTR+Dbg1UMLHTUJnZg5olIg9vtBU7fbpUASSwq 5oVdbjAugH45i6EMw6OzWcB/TCmr4j2UYMyjIc/heOJzQC4608qD/dhf8gaXnKipUuyx T+Fnj6kbuKAiJV4Bxgdih7niiIEcIUEj8QcNHPdRCLVSTTEpIqwISyPMMTrvl5ZFlpIr b3cg== 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=jnptQ3eUPYUCQcSVSX+VidlwiMzXBYjBRTOpSVpdlaA=; b=pR4YEHeCWdijOnm5ZmEzBwVoD3xFPwDqhsBQFbOcv6XsvbIRI0k4/CMxYbh0j4wMgt 6g80NjkWlTqVjaDG567NbMNkmmoalJ1vJugskI0FkrHk6us9x6MGDM74oOiURw8XtXiG nDRyZHbNGndE8k1ExcJPap3YWW5asOMuMSZsQ3Gs34/UfwD52GBuuWFhzZelLZv/k+sU Cf029IjyesjfK/X1xb2+BiImSBepasr7BgIItsfgDBIpk9thSx9WDdsW44sbTQZLSWNN 6ps0nsX6KN0+tNzt3KBDsygKDgK3VnTYDlZw3SeeCKb1sWbStHZdvy9I3+uqpzLtFz7W DY5A== 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 p8-20020a056402500800b004571d0f395fsi4296571eda.602.2022.09.28.02.21.55; Wed, 28 Sep 2022 02:21: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 2A03A68BBAB; Wed, 28 Sep 2022 12:21: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 5B87768BB65 for ; Wed, 28 Sep 2022 12:21:38 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id DC1832400F4 for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id ruNkcvnDXdok for ; Wed, 28 Sep 2022 11:21:37 +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 0D4AA2404E4 for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 116593A168C; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Sep 2022 11:21:30 +0200 Message-Id: <20220928092132.31566-6-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220928092132.31566-1-anton@khirnov.net> References: <20220928092132.31566-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 6/8] lavfi/avf_showcqt: set 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: cT/7MQMt3Sl1 The filter is supposed to produce CFR output. --- libavfilter/avf_showcqt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c index 33c482bd42..c019dc2564 100644 --- a/libavfilter/avf_showcqt.c +++ b/libavfilter/avf_showcqt.c @@ -1187,6 +1187,7 @@ static int plot_cqt(AVFilterContext *ctx, AVFrame **frameout) UPDATE_TIME(s->sono_time); } out->pts = s->next_pts; + out->duration = PTS_STEP; s->next_pts += PTS_STEP; } s->sono_count = (s->sono_count + 1) % s->count; From patchwork Wed Sep 28 09:21:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38405 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp78095pzh; Wed, 28 Sep 2022 02:22:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5WYhXz8e2sCBcDXFyNw+bc+NuMzmaldXUs13crnMR3xgn40oWi1mdBqNnWlLpN10VBGI+5 X-Received: by 2002:aa7:c04d:0:b0:454:2f81:b966 with SMTP id k13-20020aa7c04d000000b004542f81b966mr32699960edo.269.1664356960641; Wed, 28 Sep 2022 02:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664356960; cv=none; d=google.com; s=arc-20160816; b=wi3GT4PpDBLc5UqcNZUjCHR02x6ccSZvUapTne5WNUi+rCHb7Pq1YANBoK1ARPdPfr +dsPjxMcjDZ9pZu8Uxjd7RFfyHQT7pPaWthT8fQ3Sv7hISRsnuTrc7FA2gX74UQFwdR/ +RzzSE7tFfr2YN0oyvAlYpBcb2adfWqRKGxcI6IHSX1LQIKwdzDOsAoeGTgIzIye4Ict GvM8DCJu24i7BkWEw+WMi02lGdBHIQzXpeWp/vOstQZsdlZPY2LJ/MeDOe/7cWweIM7B 0GqHu59rdpOGyChGgEY9q/hkpNem2BWoJP6CWWh6HVu//LLA0NGoqiVN+jw4U6Oxjbjs RX1g== 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=D8LlqEZ2p8tPygMVIZgBFuCTQ9OEy2lxoMtLNhro9MQ=; b=oUIIN///TIzCbAANsDR8qnLO/fvrKlQ5IWcJQhptm5RVcpKXCSD2nNYyOF4EKF6P5w xdtf1mHwbYyb214LkIhK9obx+DR9MsHCRSoxyuNSEpwpeucGmvTWbZ0AkNmoetg3CeIM gXGlkapemO3N6rKkL6bvquGJnoXSsZnKnK5/kHxwjYjDQZzsf+rgHY67Fm95gp+tRz+Q eEpu1Vu6533BYzGQclEuRdmMBqeUqVSjW+O+qt11/WC3kAEy4plZjD5slo6Gb9aG77j6 aTZWQDRR05aWCQLTisfGXawnwKJY+WAwgqBHUhH2kO5tmA8L3BPJ91cSAlM0kVeiYZJs Hspg== 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 pk4-20020a170906d7a400b00782a1b59663si3301823ejb.891.2022.09.28.02.22.40; Wed, 28 Sep 2022 02:22: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 D1C4868BBCB; Wed, 28 Sep 2022 12:21:50 +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 4773668BBB9 for ; Wed, 28 Sep 2022 12:21:43 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 138EA2404F7 for ; Wed, 28 Sep 2022 11:21:40 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id IhM8GNcR-3ks for ; Wed, 28 Sep 2022 11:21:39 +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 386062405EC for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 159D83A169F; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Sep 2022 11:21:31 +0200 Message-Id: <20220928092132.31566-7-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220928092132.31566-1-anton@khirnov.net> References: <20220928092132.31566-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 7/8] lavfi/avf_showfreqs: set 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: 1QD8/AOLEELt The filter is supposed to produce CFR output. --- libavfilter/avf_showfreqs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/avf_showfreqs.c b/libavfilter/avf_showfreqs.c index 86a67c7328..cc7d6204b4 100644 --- a/libavfilter/avf_showfreqs.c +++ b/libavfilter/avf_showfreqs.c @@ -469,6 +469,7 @@ static int plot_freqs(AVFilterLink *inlink, int64_t pts) av_free(colors); out->pts = s->pts; + out->duration = 1; out->sample_aspect_ratio = (AVRational){1,1}; return ff_filter_frame(outlink, out); } From patchwork Wed Sep 28 09:21:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38406 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp78158pzh; Wed, 28 Sep 2022 02:22:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM70MnlR6lLvlcIVmWYpQydGsDMEIsoERsB1N3F2FBMZiwy/I9npjQ1ujkIE1wrOTebZ5F3B X-Received: by 2002:a05:6402:1e8d:b0:454:79a9:201f with SMTP id f13-20020a0564021e8d00b0045479a9201fmr32586578edf.176.1664356969583; Wed, 28 Sep 2022 02:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664356969; cv=none; d=google.com; s=arc-20160816; b=tDfXVNpvwqzfH6i9qobqSPVcY72J4Aw0xszivKpOTPb5j9bDAAe8pfJXEISZUFRvYi 7Vx8LpaamdbWjxNp0Cq0Xj4F3xiFqL+Ot6jOEvSZ/w2F9F+oP8XdqwZocGD4s7XWFeVR ZOIL/Oavl5mkRMLMoL/291IEXxrVEUlXIe81WrorSO9ocLsOYY+exslS+z5CYxQIW5j8 9da//YiJe2zuRSjGQOnBlkbZpJzvS2ZuIx5KAM9jHAk1SLLFl75xJgcoZXCJORy58Sz7 DBcL+r/a/la/Rr/QUf8EEW8NgSPKjUwlbXZrlz0GxJHm2Vg9UF4anBD+tqUO6Y8syEvR 7T6g== 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=jGwZUw1ElXX6kgDJfapBuY7INNwFybliqG8tvQetAT4=; b=Pq7Gvpg0whkcSnFcrNeFTeGOXENOlqlSHwbgiUENpXKumZYbkkuxjVA/lUPOBr5AfN /w8IxTQRfNhASkEIW9G67AynYcui8K/EKjgRVKJb6RKmEW97z8f/MW5umjxbyHABqqWk 44hQ5aUO2En8mNHEM8wn7NS7m+HD33Utpeuan0LpFnV5nVlbKolpZg98IClPG+MaxGYT 85aA5P3Xg6aLLKrsQSfFBiz1JztAeis1QUB31/ghpsm+jwDXWhsutA8RUcO5f0HOwrlG TdZlv6gZkqy/w1ehPqNhTQ3z87gWzTDqGlLT2U8qBkVnzWJ6EkfvzCdh7uVknm/OmDrn JAvA== 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 sc6-20020a1709078a0600b00783d5a873dcsi4450270ejc.341.2022.09.28.02.22.49; Wed, 28 Sep 2022 02:22:49 -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 BB2B068BBBC; Wed, 28 Sep 2022 12:21:51 +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 9697368BBBB for ; Wed, 28 Sep 2022 12:21:43 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id E73F12405EC for ; Wed, 28 Sep 2022 11:21:40 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id OQXZ1foGW8Kb for ; Wed, 28 Sep 2022 11:21:38 +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 1E8B5240591 for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 1A12B3A1767; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Sep 2022 11:21:32 +0200 Message-Id: <20220928092132.31566-8-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220928092132.31566-1-anton@khirnov.net> References: <20220928092132.31566-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 8/8] lavfi/avf_showspatial: add framerate option 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: ip8FXbvp+if9 Apparently this option was intended (the context contains a currently-unused frame_rate field), but was never added. This results in the output timebase being unset after config_output(), so the input audio timebase ends up being used for video output, which is clearly wrong. Add an option for setting output video framerate. Also set output frame durations. --- doc/filters.texi | 3 +++ libavfilter/avf_showspatial.c | 4 ++++ libavfilter/version.h | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index d0f718678c..7e516a43ba 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -29337,6 +29337,9 @@ Default value is @code{hann}. Set ratio of overlap window. Default value is @code{0.5}. When value is @code{1} overlap is set to recommended size for specific window function currently used. + +@item rate, r +Set output framerate. @end table @anchor{showspectrum} diff --git a/libavfilter/avf_showspatial.c b/libavfilter/avf_showspatial.c index 7807628540..3db4db9af0 100644 --- a/libavfilter/avf_showspatial.c +++ b/libavfilter/avf_showspatial.c @@ -62,6 +62,8 @@ static const AVOption showspatial_options[] = { { "win_size", "set window size", OFFSET(win_size), AV_OPT_TYPE_INT, {.i64 = 4096}, 1024, 65536, FLAGS }, WIN_FUNC_OPTION("win_func", OFFSET(win_func), FLAGS, WFUNC_HANNING), { "overlap", "set window overlap", OFFSET(overlap), AV_OPT_TYPE_FLOAT, {.dbl=0.5}, 0, 1, FLAGS }, + { "rate", "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str="25"}, 0, INT_MAX, FLAGS }, + { "r", "set video rate", OFFSET(frame_rate), AV_OPT_TYPE_VIDEO_RATE, {.str="25"}, 0, INT_MAX, FLAGS }, { NULL } }; @@ -187,6 +189,7 @@ static int config_output(AVFilterLink *outlink) } } + outlink->frame_rate = s->frame_rate; outlink->time_base = av_inv_q(outlink->frame_rate); av_audio_fifo_free(s->fifo); @@ -253,6 +256,7 @@ static int draw_spatial(AVFilterLink *inlink, AVFrame *insamples) } outpicref->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base); + outpicref->duration = 1; return ff_filter_frame(outlink, outpicref); } diff --git a/libavfilter/version.h b/libavfilter/version.h index 5aac9c513a..4ccbf5641c 100644 --- a/libavfilter/version.h +++ b/libavfilter/version.h @@ -32,7 +32,7 @@ #include "version_major.h" #define LIBAVFILTER_VERSION_MINOR 49 -#define LIBAVFILTER_VERSION_MICRO 100 +#define LIBAVFILTER_VERSION_MICRO 101 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \