From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 16FED45008 for ; Mon, 19 Dec 2022 15:27:11 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A220768B8C8; Mon, 19 Dec 2022 17:27:08 +0200 (EET) Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B0AFE68A6B5 for ; Mon, 19 Dec 2022 17:27:02 +0200 (EET) Received: by mail-vs1-f51.google.com with SMTP id a66so9011829vsa.6 for ; Mon, 19 Dec 2022 07:27:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=VI92cRJhYbKdnCe9wPJDaZpuSPe6p7kHCOVO4XqhaL0=; b=FA6/PQ4x6SeGJ3zRiB957sMTMF0m0uqh5YOWEa30c1PDoQBZEy0I4qwZp2zcLs4Drk 8rfDPNQt67aWO/50KeJ9lMlBt9nj+t62qKCljlia3tSnOG7EwuKsURJBoNKNATJO4MWs QzKjBolv0n6zsmZMoW36YtsRxNVeXpBSE5Ps3cS1a6CJNeookgyvm5mZ9Mr852f8vuqj R5hocW9EgAEDxDSydd7c/33bs8EBP9WcTeQ2KvlwZOdWeOD3IwOPZ0vY/f4fDqhR2q0E bDdAvz843qLhOCmdIc+qUfeGcZr44vR/0g/WyMoqxsyX+mLfLObFe2MnR8+rW8UOZSZ0 4Ukg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VI92cRJhYbKdnCe9wPJDaZpuSPe6p7kHCOVO4XqhaL0=; b=I3ep0Ad2iEUdM1IIuu3E7aCPWZmJw3qQDG4mTpLY1BMzXiAXWih192qEMNJj023QBX X/Y1YbHkkGMKYUo928D59dOpXbRPd+Lhk417VHdL0z7bnp2o52DBQY99yLDY3wm4/+/J EN5vPXBfHXohKF1lVvJWGI0Ic2L74dbix94KWRg8eEL0KWIrIHbANxgdylQjRQmtC0Zo FPXyc1M6qkTUCNmQI5YP+io3HnngLTArKYZqj7vuTNu6KQTnR5VCy6sROXSjGucsgX0W rhr3ZGigT8yLreg/LRrznA7Bw4pHjoubaiWlEDTXKMOdNBJQWUx5xav0OzUb4eMsPJpq cgdQ== X-Gm-Message-State: AFqh2krGpcgrIQhYRM5cPnI3YImT+KQZGd1MvTh8g8IK4VeKV5kYWOTt 70am9ZQ9VWW783o+seZM+9dia83//GlFz2cPQDGEaKX/ X-Google-Smtp-Source: AMrXdXtNacvve4zEmpwMYJQxFmAojXnb5CmYU3agzebGSxkr+cN6DNlonRV10t+KppjniKSNdJiIwpmuOYMxk/b34/k= X-Received: by 2002:a67:e9c3:0:b0:3bf:7e97:6301 with SMTP id q3-20020a67e9c3000000b003bf7e976301mr63424vso.36.1671463621393; Mon, 19 Dec 2022 07:27:01 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:612c:2428:b0:32a:5eaa:92e4 with HTTP; Mon, 19 Dec 2022 07:27:00 -0800 (PST) In-Reply-To: <001401d8f434$06dcf3d0$1496db70$@nodoa.me> References: <001401d8f434$06dcf3d0$1496db70$@nodoa.me> From: Paul B Mahol Date: Mon, 19 Dec 2022 16:27:00 +0100 Message-ID: To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] lavfi/vf_decimate: add mixed option to process input only partially to be decimated 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 11/9/22, mail@nodoa.me wrote: > The purpose of this new option is to enable processing of mixed content > such > as TV recordings or even movies which have some cuts in telecined 24fps and > others in 30p. > > Enabling it (mixed=1) will calculate a common timebase between decimated > and > non-decimated content and set frame duration according to whether the > current cycle contains a frame deemed to be a duplicate or not. > > The default is disabled (mixed=0) and keeping it disabled will keep the PTS > as before (verified using ffprobe). > > > > Regarding setting frame->pts, I had to adjust this part a bit as it is no > longer possible to assume all frames counted by frame_count_in have the > same > duration. > > As for outlink->frame_rate, I have removed the assignment in the case of > mixed content as the output will be of variable frame rate. Please tell me > in case this is not sufficient to signalize VFR content. > > > > An example for verifying the result is > http://samples.ffmpeg.org/HDTV/Hellboy.ts > > ffmpeg -i Hellboy.ts -map 0:v -c:v libx264 -vf > fps=fps=30000/1001,fieldmatch,decimate=mixed=1,fps=fps=120000/1001 -preset > veryfast -crf 10 Hellboy.mp4 > > The source has a frame rate of 30000/1001 -> timebase 1001/30000 which with > a decimation cycle of 5 results in a decimated timebase of 24000/1001 and a > common timebase of 1001/120000. > > The source contains 24fps interlaced content which will result in a > duration > of 5 frames at the output frame rate of 120000/1001. > > The source also contains 30p content which in the output will have a > duration of 4 frames. > > This particular source requires the frame rate to be set to constant > 30000/1001. I haven't looked into why but I have verified this to also be > required if not applying this patch. > Applied _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".