From patchwork Fri Jul 7 09:48:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 42481 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1e:b0:12b:9ae3:586d with SMTP id c30csp7162087pzh; Fri, 7 Jul 2023 02:50:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlEgc7HbHN0tF3NDilphgTJ/rAkfHIoHZcEjiSrtXde4b3qXvnVzeAgzKYpqeVpHrCsiPOI0 X-Received: by 2002:a17:906:2205:b0:988:fea3:ae56 with SMTP id s5-20020a170906220500b00988fea3ae56mr3731543ejs.0.1688723414410; Fri, 07 Jul 2023 02:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688723414; cv=none; d=google.com; s=arc-20160816; b=wX96DqH7NDjM1Pc2aYcd5L72qS7/BIv9+q/PcxopwJNF71MViuN85rcszo/6Lrr7GP qI/Ycyl99OF+PtJ76LGTDCiqJIO4dRHzh8ba3Lu+EVBbtB5wT5nYQRzqgY2MTK2wO7ot kmLsp9+SpNqecg8Jm51FBMJwysH21dCb0h5h5iXZ69NWCZObHPrzdm8Z1pgIdgLHY5HY jjjMMUcyiiCcXM4hm8LgkPs71R5BHimxlbTtf0AFNmTwv/X/TGnaNukAA3JHSaTDm06f lkzEuOv6UWcSNs/mHwwFFvEsyCKIfB7iM6QPq1snMMj4a88x/pSGem4mbsEJUyT4WZRL /Jcg== 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=0tJ142qYIkFjROmMZMo72Z9X1AgAXFckmyZnKt15cqU=; fh=8ZF2QtiKOjBtyn9wuO2cMeZaLsE4aq02Bq77gGK61E8=; b=sXjKkTm45OOLfo2TmIT4LOO3doR/8NIq0ySbcCivUTHeyC1kJFY7WRSF5CEO76KVCH RIfkPQL29Qrz8VLSxJtLOesLfyJJNyI5yYBnpL9sWEI6tW3Op3NY1Vb5+aOPdbFwmlSR NvUo2JcPsHic9WQPKES17gl6DQEeUWmNodKHTVIyoOT20CdbvzszDGykAdXrVLFSECTD GC6NyNwwwbQqD9LSSZyZAQnQFJAFSac/1YmcV4HOVGyPH3ZoZUxb1rntqxyTNK8TIX15 0DF9K/TbahzHUu+5Sf9kxzpnQVZ0gCVy1Cpd0P02Iys7DMU+yAPZ8zlrI5o+sjYfjQcl 1CBg== 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 w10-20020a1709060a0a00b00991f834e0b3si1965644ejf.194.2023.07.07.02.50.14; Fri, 07 Jul 2023 02:50:14 -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 1ABD168C7EF; Fri, 7 Jul 2023 12:49:16 +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 7CED968C7B5 for ; Fri, 7 Jul 2023 12:49:08 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id B882C2406D0 for ; Fri, 7 Jul 2023 11:49:06 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id dNUHmEmfpheS for ; Fri, 7 Jul 2023 11:49:06 +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 05DDF2406CF for ; Fri, 7 Jul 2023 11:49:01 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 3A8713A1B0D for ; Fri, 7 Jul 2023 11:48:55 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Fri, 7 Jul 2023 11:48:47 +0200 Message-Id: <20230707094847.25324-22-anton@khirnov.net> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230707094847.25324-1-anton@khirnov.net> References: <20230707094847.25324-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 22/22] doc/ffmpeg: fix -enc_time_base documentation 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: 52TjyZ9HsN1C Stop claiming the argument is always a floating point number, which * confuses floating point and decimal numbers * is not always true even accounting for the above point --- doc/ffmpeg.texi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index 59e9fbfcb2..2273c39214 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1803,8 +1803,7 @@ Try to make the choice automatically, in order to generate a sane output. Default value is -1. @item -enc_time_base[:@var{stream_specifier}] @var{timebase} (@emph{output,per-stream}) -Set the encoder timebase. @var{timebase} is a floating point number, -and can assume one of the following values: +Set the encoder timebase. @var{timebase} can assume one of the following values: @table @option @item 0 @@ -1818,11 +1817,11 @@ Use the timebase from the demuxer. @item filter Use the timebase from the filtergraph. -@item >0 +@item a positive number Use the provided number as the timebase. This field can be provided as a ratio of two integers (e.g. 1:24, 1:48000) -or as a floating point number (e.g. 0.04166, 2.0833e-5) +or as a decimal number (e.g. 0.04166, 2.0833e-5) @end table Default value is 0.