From patchwork Sat Apr 9 13:37:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Tomas_H=C3=A4rdin?= X-Patchwork-Id: 35239 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:671c:b0:7c:62c8:b2d1 with SMTP id q28csp130087pzh; Sat, 9 Apr 2022 06:37:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjR21ROhn5wEGCxSD937mf7p/zktPIXj0W4S+S1U+J7PEQJY5sKb6yYPWrXhkTxYa73gWs X-Received: by 2002:aa7:cd5a:0:b0:41d:58be:3949 with SMTP id v26-20020aa7cd5a000000b0041d58be3949mr5584686edw.105.1649511456724; Sat, 09 Apr 2022 06:37:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649511456; cv=none; d=google.com; s=arc-20160816; b=bk+2EhBZjys9HrBjU5L0Ouwt+NnmwOhBW3s2hsaVhFuOk7BiPY285W5fUOYlX6Zg6+ 6tj0b5B1xLBAyLOe7E4qGZWKBD7ZpIsFRhp1J/O23iC5K3GsrF59dSo6OqjN7mH9s2PS egsBKiftuCQYoB9ZS0DOFB/quBpPRLL+7tT4WynAwjK731vzMc4dXIgr8mW2oZoKaHME wLdj0be1WeRPxDexpA/HkaCHeU7F5UBqcVEBRZOLHGIXzh6g9ILt2cMxufBtk6vegwu9 EJ458vGyML0lHY7uIIQSeLhwoMePH+WtUd2bQeQRoIJjnZAErZF83BGF0b5Ai/w7ecl+ QgCw== 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:user-agent:references:in-reply-to:date:to:from :message-id:dkim-signature:dkim-signature:delivered-to; bh=wymv1jPw9zmcsjU6r+Cv8peH2x67TDRqYiFptO8xCgU=; b=RpoE4LOUmGuyF+sNTJ89ZyszhzuhszryPceZ/5GVXRsoH+ieSPc9qGh+WdEJ3RxNwv 4mzypI9mskeywQW7e++VSIAXuzFsZkZapv5ridpY+UkWyqpMm3GDCWXlCxD5QqfjomYy jCTaor63plDngo2v5tY3qt8GwXXR41BtnsAEQ5i+ystJKwngTnolq+u/lI+o8FgrVLbT nW8smpGXpttXcH/Ace5bZ62kESsx5dEJjdUMyHcjId35VHIk4pFx2riNEEaYLYNrcnCz j7IGNKUS1GIEdXiHrca2IzLvVaISKcXha8Zqjn3EkotaZU6Lso/uDHqsKkifvy1EUj2U BSDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@acc.umu.se header.s=mail1 header.b=TfPSsm4t; dkim=neutral (body hash did not verify) header.i=@acc.umu.se header.s=mail1 header.b=FWs+Z52V; 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=acc.umu.se Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id d9-20020a170906370900b006e8346fb799si813495ejc.270.2022.04.09.06.37.36; Sat, 09 Apr 2022 06:37:36 -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=@acc.umu.se header.s=mail1 header.b=TfPSsm4t; dkim=neutral (body hash did not verify) header.i=@acc.umu.se header.s=mail1 header.b=FWs+Z52V; 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=acc.umu.se Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4C42968B2ED; Sat, 9 Apr 2022 16:37:34 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail.acc.umu.se (mail.acc.umu.se [130.239.18.156]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D865A68ABA3 for ; Sat, 9 Apr 2022 16:37:27 +0300 (EEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by amavisd-new (Postfix) with ESMTP id 6681144B90 for ; Sat, 9 Apr 2022 15:37:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=acc.umu.se; s=mail1; t=1649511447; bh=GUdFIJQGqZj+dI9ibzkjzBNgmXTitVCg5xFcvq2PXFU=; h=Subject:From:To:Date:In-Reply-To:References:From; b=TfPSsm4tYPFAV4YVLQn5Pui0O4Y+xlNEDwxOCBeDS4J2ScklzKijIo916iN+tLQNP 6cmpzwEeskL/htimbCobQvLJXel0ZX3fw+RGZ+6v+EwjWP2WViyml6PTKo9yXf2EkY 3q8gV3H5X/89k3oDat3XidU1hYJgWgPh/RrJGQUckhgNMAUjLdynJn8R66W+Pu9k6u j3qP2fDKoq1J5cI12oUyLhMQ11OJw8waYjtej55uJ5gKjuhlsHnhdj7rfSqYLAMV0I 6Fzgj4ObyKW0DcsYipNWdN6xWjdArxopSFDhWPu2AEqcueJGaqrmA97pRKkOQlViVl eVGVYmY0wn4Tw== Received: from [192.168.1.244] (213-67-66-101-no2430.tbcn.telia.com [213.67.66.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: tjoppen) by mail.acc.umu.se (Postfix) with ESMTPSA id CAFB544B8F for ; Sat, 9 Apr 2022 15:37:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=acc.umu.se; s=mail1; t=1649511446; bh=GUdFIJQGqZj+dI9ibzkjzBNgmXTitVCg5xFcvq2PXFU=; h=Subject:From:To:Date:In-Reply-To:References:From; b=FWs+Z52V09VVP13EtbwBy4Vmu9PfJlPE67fHTopeU1M2E6wCgu5+1okUWgQqrbAUp Aj9lB5Tk9DlQDqBvPXPvI2OiXCbYLWU3C8LNobHCsbvI3zJ0Jo9tZqJqENwD700xGf 18Iq6PbXbpBufl6P5iHJIBrCjjLdUKV0HqK4xX38jXzRefjfxfo9bZY2W6VbMoM5W5 obZdMIk5Ts6VBFrmUPgYn+4Tw5NtZyzp8TO+yjkXDqCNySlqAX91u2FrV3Zt5vdUGi aAC8G8wK4U0GqFwURb3KwmJ/XRC9UyPX35WTY4YvCik1Fmey4M4cM8ArA4MbA2aLel El6Mg5vzPi09A== Message-ID: From: Tomas =?iso-8859-1?q?H=E4rdin?= To: FFmpeg development discussions and patches Date: Sat, 09 Apr 2022 15:37:26 +0200 In-Reply-To: References: User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/3] doc/encoders.texi: Document updated behavior 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: lM2JckczZ/bc I forgot to comment on the previous patch the change from -keyint_min to -g. It didn't really make much difference then since the encoder would put keyframes at fixed interval in addition to any accidental keyframes that the encoder may deem appropriate /Tomas From 99c3b511252ba403b1aa7f00d31f9455304c50da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Sat, 9 Apr 2022 14:40:47 +0200 Subject: [PATCH 3/3] doc/encoders.texi: Document updated behavior Bitrates of akiyo changed slightly. --- doc/encoders.texi | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 1adfe382a4..75e49ec359 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -1279,23 +1279,23 @@ Compatible with Windows 3.1 and vintage MacOS. @subsection Options @table @option -@item keyint_min @var{integer} +@item g @var{integer} Keyframe interval. -A keyframe is inserted every @code{-keyint_min}-th frame. +A keyframe is inserted at least every @code{-g} frames, sometimes sooner. @item q:v @var{integer} Quality factor. Lower is better. Higher gives lower bitrate. -The following table lists bitrates when encoding akiyo_cif.y4m for various values of @code{-q:v} with @code{-keyint_min 100}: +The following table lists bitrates when encoding akiyo_cif.y4m for various values of @code{-q:v} with @code{-g 100}: @table @option @item @code{-q:v 1} 1918 kb/s @item @code{-q:v 2} 1735 kb/s @item @code{-q:v 4} 1500 kb/s -@item @code{-q:v 10} 1064 kb/s +@item @code{-q:v 10} 1041 kb/s @item @code{-q:v 20} 826 kb/s @item @code{-q:v 40} 553 kb/s @item @code{-q:v 100} 394 kb/s -@item @code{-q:v 200} 311 kb/s +@item @code{-q:v 200} 312 kb/s @item @code{-q:v 400} 266 kb/s @item @code{-q:v 1000} 237 kb/s @end table @@ -1311,6 +1311,7 @@ Avoid wasting bytes, ignore vintage MacOS decoder. The minimum and maximum number of strips to use. Wider range sometimes improves quality. More strips is generally better quality but costs more bits. +Fewer strips tend to yield more keyframes. Vintage compatible is 1..3. @item strip_number_adaptivity @var{integer} -- 2.30.2