From patchwork Tue Oct 11 09:54:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38688 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4a86:b0:9d:28a3:170e with SMTP id fn6csp777902pzb; Tue, 11 Oct 2022 02:55:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6uDHoMX79rNzoL6o18DXN5T8/1j2njW/FZU4nWyFKEyzF1mH8pEj2ALLAkqIBQiLehp1sq X-Received: by 2002:a17:907:1623:b0:78d:9e8b:171d with SMTP id hb35-20020a170907162300b0078d9e8b171dmr11306881ejc.309.1665482142120; Tue, 11 Oct 2022 02:55:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665482142; cv=none; d=google.com; s=arc-20160816; b=pP7dbiDZoG3Aq4I4ugTF4hBNDX3TNn3FRE+Ck6thErJm2/6K2vC6M7RFRSyp7wzOPG uoA0DeWzqsbAv27DqIk1izg0+pUyNWKgiGMdIkG49cp9xdpso4YQpFdB0IAMaJ0GFkDe di4GkcARwYz+oOs5UnrZq0dAPXYTOQ9rzsMuR71A3QxM7/NqpEBjUGa8Jhv4jLPr8q/F K6jvpYBU6veszuxcMIRofIijNxp17l9GwHB3XMD+hxzLs3OgrGsORMcTZA6tvj+J95oH OhhHkbTULFuUJlQj1BPSII5hd9gqBN/PJotMTg8TB28XyWcV3DZwLrF0ITpyyOZtRqDp OFdA== 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=wzbmIua134P/ppwMHXfbk9ndauaM8I9sK5rM6ZfwK2s=; b=jKXdndzVC1KM/T8OZJanArGqURqUEpQ5h7fK8seaD52Gp6qDTCT398o3PyK0umSyiq KFxsZsjtL7CxA3tJg1IXD1FC4lTGPme63IwK9RX9E5T8HdaUhcogXHRjT8lvx71yM3tz hbK2GNSXzlat+blooL8xpQPbJfT+9cbLT89SeOqwXmk3MFflY9tFJVY7zc6DbSQNT1JR eFJ1TEr4ihIH8ctpBb9ur/PmparvgpXXoHOJVCCs4IfDZvVSZLvsg2/ioAEKYCv+8oMy lPKPahDkqKC9XQRS8C5GWh5bpOoh+H5Ry0p5fMXEoJ6aOgLWBzW/p9TAclIC9mIAJToq xOUg== 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 hb31-20020a170907161f00b00781dbeebeb1si14779243ejc.585.2022.10.11.02.55.41; Tue, 11 Oct 2022 02:55:42 -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 C2F6068BC90; Tue, 11 Oct 2022 12:55:09 +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 590A768BC72 for ; Tue, 11 Oct 2022 12:55:00 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id CE7D92404F8 for ; Tue, 11 Oct 2022 11:54:59 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id c4DXFAr-iK-D for ; Tue, 11 Oct 2022 11:54:57 +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 D7FC32400F4 for ; Tue, 11 Oct 2022 11:54:57 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 61A933A00FF for ; Tue, 11 Oct 2022 11:54:55 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 11 Oct 2022 11:54:41 +0200 Message-Id: <20221011095445.27001-1-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/5] lavfi/vf_framepack: properly set output duration for framesequence output 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: s4yIsQgaY0Fv Output has to be CFR in this case. --- libavfilter/vf_framepack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_framepack.c b/libavfilter/vf_framepack.c index f30909ccff..6ea88df8b2 100644 --- a/libavfilter/vf_framepack.c +++ b/libavfilter/vf_framepack.c @@ -329,8 +329,10 @@ static int try_push_frame(AVFilterContext *ctx) for (i = 0; i < 2; i++) { // set correct timestamps - if (pts != AV_NOPTS_VALUE) + if (pts != AV_NOPTS_VALUE) { s->input_views[i]->pts = i == 0 ? pts * 2 : pts * 2 + av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); + s->input_views[i]->duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); + } // set stereo3d side data stereo = av_stereo3d_create_side_data(s->input_views[i]); From patchwork Tue Oct 11 09:54:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38684 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4a86:b0:9d:28a3:170e with SMTP id fn6csp777768pzb; Tue, 11 Oct 2022 02:55:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ZyjQvGYOK1a091oe8gI7i80PulZAJpOj0h6nmuDzUhRlS+cs3OM0IJ39QgS/wjPb7ifED X-Received: by 2002:a17:907:5c2:b0:77e:def7:65d8 with SMTP id wg2-20020a17090705c200b0077edef765d8mr18358907ejb.487.1665482107853; Tue, 11 Oct 2022 02:55:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665482107; cv=none; d=google.com; s=arc-20160816; b=AZ3x9TtB0N4U9ksoO0nSRTVeO8MJQ6wBDkVxFabHGiaSUkU58VtvuEBDuwgCt6sdwm DdtXcis0ib1aRrRCjog6mcfLZ+Ro//RTAWM7flKpw1uZ6LIS5etXJNYIRT/eBiBO9Aw4 tB2LeeEWRs8cUttODq6MyJv5+KJaiM60F+M3Pk3fHnIx0QatJsi4TjFcvpQL9rSdvboc i99iEN+aSolaORMHujTfoDjN/e9s1wMg+8Lrdu5dEXanZXO6iCw4o75wNHUlfhQQQ9HV UWe/1ujFqbkz756hkRBLl3uI1U8ZE9h1/Osyq7LTG91InAmq8PO3jgqjfLROoI2tkJVc fXVA== 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=my4IzuSjv+lgYgjYri0EOONhxAP0GVUNeVPSV2YQppk=; b=WZiz6JGY6rjSsU2eV21BaUAlUK1u9GKVhQjfWeVj1vzQT8A7w0+qh2TUCWpCSLYNOy OAQGlm2SFjvAv6YyUTUzOGFGRl79q7cQ+KuBtADrT5uxV3uW5kKoTP8LpecKDBELWzKZ uwiSb2IyIMKx+1sNK7hFNSClzk0ZlN3QUTk9AVTVCLRxZtzaX40N9IIStCOBp3ce87Wj OvZNAL7k4UuSWxgA4Lqq0nwcqEi3FFoM68fj9b+OQCtAK+PKDB179tsRNDF6og13TnQC 8bjivAuu6S/sGO9t5IIkfBQNqS27mjb0rl20e/yDrGh3Tff/PUbnh6bun5ZljMzesb/r PMpw== 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 b10-20020aa7cd0a000000b00458947655ebsi11623585edw.89.2022.10.11.02.55.07; Tue, 11 Oct 2022 02:55:07 -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 C3EF968BC58; Tue, 11 Oct 2022 12:55:03 +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 A9B0F68BB70 for ; Tue, 11 Oct 2022 12:54:57 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 1FCFA2404F5 for ; Tue, 11 Oct 2022 11:54:57 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id Hz9acrGbq0vL for ; Tue, 11 Oct 2022 11:54:56 +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 746672404E4 for ; Tue, 11 Oct 2022 11:54:56 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 633273A0D7F for ; Tue, 11 Oct 2022 11:54:55 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 11 Oct 2022 11:54:42 +0200 Message-Id: <20221011095445.27001-2-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221011095445.27001-1-anton@khirnov.net> References: <20221011095445.27001-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/5] lavfi/vf_deinterlace_qsv: set output 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: IYDdRfOsdl+K --- libavfilter/vf_deinterlace_qsv.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavfilter/vf_deinterlace_qsv.c b/libavfilter/vf_deinterlace_qsv.c index 3065d6ac95..98ed7283ad 100644 --- a/libavfilter/vf_deinterlace_qsv.c +++ b/libavfilter/vf_deinterlace_qsv.c @@ -516,6 +516,11 @@ static int process_frame(AVFilterContext *ctx, const AVFrame *in, out->pts++; s->last_pts = out->pts; + if (outlink->frame_rate.num && outlink->frame_rate.den) + out->duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); + else + out->duration = 0; + ret = ff_filter_frame(outlink, out); if (ret < 0) return ret; From patchwork Tue Oct 11 09:54:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38685 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4a86:b0:9d:28a3:170e with SMTP id fn6csp777796pzb; Tue, 11 Oct 2022 02:55:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ZuYEem812p5/rGGVaHktQiIi4/7P+SMnCxOxQgo0Hjg+PuMpqmJ+sigqlPpiXpq/B1vRu X-Received: by 2002:a17:907:2d06:b0:78d:50db:130e with SMTP id gs6-20020a1709072d0600b0078d50db130emr17152898ejc.371.1665482116697; Tue, 11 Oct 2022 02:55:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665482116; cv=none; d=google.com; s=arc-20160816; b=G79JemIuhFhuMhwH0xBWxK3kc3Ey+TCp/vy7fMj4nBUvRjPPqSULHJnc2hIztDKRJX 96CtYSb0EhAyTBl5rLavGvtcKUaE1nlb52wCdvt6NzDHFiJNu3YgL94yLdnBZSX4u+S8 6LxNHClSOLYuB4XGx0Hl57NB4aOAwqVFq+oT6KWOkyoVy4igsLbBUrYhz/DJGuoFwJal yqyO3hvkBnixiDKOg3RVLioWuK3GdjQnxbAlsHcG1+WjyVQZlxe95Zi+ihc6JiJLT13D At/9Sre9gjJsSDW4pcOfucj9bbq4Bx8Z3TuJVu8TpLEY/IbK2WuHryC8YdzlGgoT2VfF AH/Q== 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=uU6H0SGOjHJS3GEX6wAQNHuTyGyrfRYmdhgvmzTLvmY=; b=APneOedONfyLIsJyVdsSWNwWvVDuKSyTQ4STNPwD1T81BK0C71RCfAe6ryeYGy8PRm POzx56GlVDA78xFWcK1omjg5j/wO4oetmkGZ0VzkN6BwxJCHPcVN7BN4kMpyO1PM4bIh 9eCdiODNQf7oUIHmpaRYRLk9FDQseI7ZizHKp0hYuiaO/tVO489AxWE66UbXzAyONEvu Z6G75vzZuH5Ek++uDKSpkPkbOJC6F9GByg4FwSc6+QcS8MvKZrB/HiyTbxp0/kYDMVFR v80lhdgYKtWFhw8usMGKt+f5qRGidt21Dyv8jEFeyReyAiB4/4aOLWIx2I/JigBqZd9e Wo8A== 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 hd30-20020a170907969e00b0077cfdda438csi12284057ejc.35.2022.10.11.02.55.16; Tue, 11 Oct 2022 02:55:16 -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 C9E4268BC6F; Tue, 11 Oct 2022 12:55:04 +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 B40B568BC0C for ; Tue, 11 Oct 2022 12:54:57 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 3A9382404E4 for ; Tue, 11 Oct 2022 11:54:57 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id UuiTX7Alr_iy for ; Tue, 11 Oct 2022 11:54:56 +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 739832400F4 for ; Tue, 11 Oct 2022 11:54:56 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 647533A0DA0 for ; Tue, 11 Oct 2022 11:54:55 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 11 Oct 2022 11:54:43 +0200 Message-Id: <20221011095445.27001-3-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221011095445.27001-1-anton@khirnov.net> References: <20221011095445.27001-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/5] lavfi/vf_frei0r: set frame durations for frei0r_src 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: 2v//Zp2j5V1s This source produces CFR output. --- libavfilter/vf_frei0r.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c index 1e01114b76..66351d6678 100644 --- a/libavfilter/vf_frei0r.c +++ b/libavfilter/vf_frei0r.c @@ -488,6 +488,7 @@ static int source_request_frame(AVFilterLink *outlink) frame->sample_aspect_ratio = (AVRational) {1, 1}; frame->pts = s->pts++; + frame->duration = 1; s->update(s->instance, av_rescale_q(frame->pts, s->time_base, (AVRational){1,1000}), NULL, (uint32_t *)frame->data[0]); From patchwork Tue Oct 11 09:54:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38686 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4a86:b0:9d:28a3:170e with SMTP id fn6csp777818pzb; Tue, 11 Oct 2022 02:55:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7+fWhDwCy9SOXKPJwhqR+V3oLpCuCitvxeZIRk2FUCG/mRgeHvYgjWhzCA2LuF8sLAZT8a X-Received: by 2002:a17:907:7f05:b0:78d:e869:f2fe with SMTP id qf5-20020a1709077f0500b0078de869f2femr465806ejc.684.1665482125030; Tue, 11 Oct 2022 02:55:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665482125; cv=none; d=google.com; s=arc-20160816; b=0NV06YjrE0Uz+H5wpqg8U21+McsuX0Sf0H44zSxGyfnq76E4s/Jf6Zk8yeD0MsWR5U IOxdfv6pJMaohrxN7Bf4nOjXMK/ijBeUvYSjMlYf883t6GqU65+bJvu2OIy8SNqPONVr esI6e5R36iXd3VCXL3QAfoV1iKNbmMFVETD8A+vmH0HFnURdUn1oHjBxXPGMCACg2Lmo mKVuaCbvz5KovqjH6G9yo+QRWDUMluSMbwAuQw6pamNGhmE8sqEIgh+Wg1pVzcnQaf8G 9IgIR2BLnT3rHBSE5h1zgwaRCNDVzQDnTZ5erDv1M5kw19ngA/PnwQ2J4wcufw+6Arj6 ir6g== 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=XFuFAyjMzD432NDAx0QZ7KlhxHMGAcMRVzwjzdj+0ks=; b=TsVW61RTAKE6MiIOqP38EIFkFgyResZ7bsyEVEobeb2erXmfHyOb8QowN8d4lxQL3J jYXxQF04uMTchkfXZIa5uzq9SXKat102GBB8huOlKfvHKG3BAjVmRwKuc4YzVZO+POWs tK1v9X3V72D25ylgFIiY7hzsMp0SmHr1CdGKNBVtxX60Dl6Sx/n8XJPxWhTGSWXVmWac DMpw5LyKA4SzNBPGq0jq9T5fIdKX1zCUjaTOy3r8YODxqr9GQ9B+ahzLvG50ztueb9Xd ozN8YpADcgfAGLstmQWZoh0JVtlKgYysS+t6VrYjH/sNTmP7KTkn2zyddWUOiL9r9F4A 1WMQ== 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 h15-20020a05640250cf00b0045907cec72dsi16044402edb.320.2022.10.11.02.55.24; Tue, 11 Oct 2022 02:55:25 -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 D247F68B992; Tue, 11 Oct 2022 12:55:07 +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 C1F1868BC57 for ; Tue, 11 Oct 2022 12:54:58 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 41D41240591 for ; Tue, 11 Oct 2022 11:54:58 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 7pSHhPhqs8Td for ; Tue, 11 Oct 2022 11:54:57 +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 D80972404F7 for ; Tue, 11 Oct 2022 11:54:57 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 65C983A13BB for ; Tue, 11 Oct 2022 11:54:55 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 11 Oct 2022 11:54:44 +0200 Message-Id: <20221011095445.27001-4-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221011095445.27001-1-anton@khirnov.net> References: <20221011095445.27001-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 4/5] lavfi/vf_minterpolate: set output 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: m95rLelsUIAC This filter produces CFR output. --- libavfilter/vf_minterpolate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_minterpolate.c b/libavfilter/vf_minterpolate.c index 97d0e96c59..f2de61ca39 100644 --- a/libavfilter/vf_minterpolate.c +++ b/libavfilter/vf_minterpolate.c @@ -1189,6 +1189,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *avf_in) av_frame_copy_props(avf_out, mi_ctx->frames[NB_FRAMES - 1].avf); avf_out->pts = mi_ctx->out_pts++; + avf_out->duration = 1; interpolate(inlink, avf_out); From patchwork Tue Oct 11 09:54:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38687 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4a86:b0:9d:28a3:170e with SMTP id fn6csp777861pzb; Tue, 11 Oct 2022 02:55:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM73dBxH+xOYA5JKTedjsBeYyO5IappsQo1kgaSQclkecDikxZQqC3cSwgkTwNMgWbQEjlCy X-Received: by 2002:a17:907:2723:b0:789:ae01:6fbd with SMTP id d3-20020a170907272300b00789ae016fbdmr18634316ejl.731.1665482133717; Tue, 11 Oct 2022 02:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665482133; cv=none; d=google.com; s=arc-20160816; b=N2En8noX/bEz/V27MQqctXfFQpYr505TpxI4kwDe/ePCItb5s4bMCiJh/+3XUzbT+K vu9JSehxIKhVABxon2PQj0AfXBA+pxT3qctuWU9tghMjxk7dGXEUBao2EzuVBF+v2k2D WqILRVQQycMhRhQ4eMQpdMk/lHSKRhVZsTrMI+oMX2/qVKNP/bNAzXBCqMjs6g/EbO+j 1W64yr47ZoJexls8YvFTOKeKjYoRxwUEwImR2LnAGP7KYOY5Yc+y2dKmVM8V+9FuOUQP y98IS6qkLckobpxT/dSaNYErcfRV0cPnHPgAcY3ywogX58/FaNA7nnsg+/W3YXqbcjRU OESw== 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=BBSSZUyPlIy5depXH5QGuxvxMk1yoPusZwCAdxJv7zk=; b=MpadB8t13Q01f419CKoz5JRBb1tcVm7sRxa4fo1kh+S77s/iE2UnAxf5Z4SEosWmhT RF5BMjZwrUBinbCNCa/dKJowwURbP57NAErJ3jD7RhQ4qzxkcWP0kATNkf8F61SaOIQf DRorYS64wbXn/353sX95RbxKUS8Z1wPwY5V2SLSinE9oOC3SjNNDQWRB6wwsNcyyNjBg DAeG1Ht2w3ryFa1f9zI2XZAv315c9E3QOykALCT2p8vhsOTCgLyF3VKimX3oC1idD8FB PlXh5f18aExSFCsdzYdHMsykRo8lRX0wx0RDc076FnwKHYAzHvPcykEL5WEFa1c9mMaj zerw== 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 z5-20020a1709060f0500b007315809ec88si11653904eji.399.2022.10.11.02.55.33; Tue, 11 Oct 2022 02:55:33 -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 C889E68BCA7; Tue, 11 Oct 2022 12:55:08 +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 3093068BC61 for ; Tue, 11 Oct 2022 12:54:59 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id A70A42404F7 for ; Tue, 11 Oct 2022 11:54:58 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id drPgUzcsCJei for ; Tue, 11 Oct 2022 11:54:58 +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 DBC692404F8 for ; Tue, 11 Oct 2022 11:54:57 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 715AD3A168C for ; Tue, 11 Oct 2022 11:54:55 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 11 Oct 2022 11:54:45 +0200 Message-Id: <20221011095445.27001-5-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221011095445.27001-1-anton@khirnov.net> References: <20221011095445.27001-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 5/5] lavfi/src_avsynctest: set video 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: GU8dlXdkY/IR This filter produces CFR video output. --- libavfilter/src_avsynctest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/src_avsynctest.c b/libavfilter/src_avsynctest.c index c78e517ac3..78e4a2ba50 100644 --- a/libavfilter/src_avsynctest.c +++ b/libavfilter/src_avsynctest.c @@ -348,6 +348,7 @@ static int video_frame(AVFilterLink *outlink) } out->pts = s->vpts++; + out->duration = 1; return ff_filter_frame(outlink, out); }