From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id BD22A4D111 for ; Sun, 8 Feb 2026 23:03:19 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'oRF6fNdX5K2MkRB30kk1klB8M5EdbtGzPs7qoCMwLIg=', expected b'KRILoI23b6rJqm1TkMRBV/MSXXiK0+O4mvGDygmbzac=')) header.d=niedermayer.cc header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1770591775; h=date : to : message-id : references : mime-version : in-reply-to : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : from; bh=p+VNSGdjQ4neHKtVvzuNL6LFTPu5+bRirH4ajz9z6tw=; b=GxbqgNHkqVCzSoReDu81WANfKCBV5sXhQPj9q1Boq7vRbPoCpzaZugBHmawqn+soqEQhD IkPll+jZjZ7mvcYpnZWcfyUS8RwbvsLQ4NgNPO4hjv2OM9juODIoogMF7zAIOH5bi3D1PVE 8HSqWoxD1c2hl0pHocnAC4XwwXt6inikszecCjPBqdZeYo59rFTPSSkY48oq274QlBpiNdW RSg5/PzIDby9TpHLHG80TXMg3VH4CMyQg/pUCKbzcwCf/jis31vgUNQ20pDyTSYKc4iIJAt CO65oGAQti2IdeANkdBtpfbvdEdThodjC2E8bKNhNa6I8CyLI2BG8lCFrdrw== Received: from [172.20.0.4] (unknown [172.20.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 1923C6910E3; Mon, 9 Feb 2026 01:02:55 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1770591752; b=dVIPIyo5ynA/LBBjYT+U9KIUvZ+0BhonymHCqdnO9S94ZpEhL/89FwFYGBrj4OTaVcnSr /30YCSmk4rcW4809H8lVRGI2FuYUbxCZlK85wDnROvg0k29mX+05470oMED6ISFt1lFQkHh lnw2Pa1KzZSTyylsH4CV1w74Tw3SECRoFz9eSGMo1ojny0GN2PI9pSBi6BI/qMaWEvUo81Q 67e0s5D8EE0bJZ6Hg4+niXTIteN4SKRDFGWMCMwxcSukk8nogwC4cJzp75d7QH4uiQAuphk 307gbNWcRDow9aPRJ1IU3lFKeDHmUzeiIjqVYJdi6pgooOcNu2Y58CHW9jQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1770591752; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=oRF6fNdX5K2MkRB30kk1klB8M5EdbtGzPs7qoCMwLIg=; b=E+ySfC0jmBEQjpcUNwHWo/JC9cQlFy1RW3G1bYrM7uJj809MIMOwkfUyXogkIOCoM87Gh YmvXhxP8wz5pKZy2YF6KNYRXqgUENb432W+XZ10y8UikctD9rj9keh0njHOgbbLJN4Z4BS2 wLL08LPLJBEWVCRCpTjKCHGw/mFEEd4Xggg2sIL33dR75Rom0nU+z45Oo13xWE3xH11BorD WUNWUBRYXlskFm2XoH29Czkz0gvnb/awpooLOJ01UBI/btGuajALJDijta+XkxD/WLLzAD0 ZOfePlsObdK4aI82bcX4Z8ab5tlnrMcjPWFZTd/QYiy+jdYVLSm7cpBe95wg== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=niedermayer.cc; arc=none; dmarc=none Authentication-Results: ffmpeg.org; dkim=pass header.d=niedermayer.cc; arc=none (Message is not ARC signed); dmarc=none Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id CD049690AE0 for ; Mon, 9 Feb 2026 01:02:13 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 2318A4337F for ; Sun, 8 Feb 2026 23:02:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1770591732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KRILoI23b6rJqm1TkMRBV/MSXXiK0+O4mvGDygmbzac=; b=QLuyfE3p+YVpWTWZDMhy7ayCACv+pTbdrrdsHmqRjY+bwmSNlawpN4g1d0HAxPp/RIApmO Aa3YJSegDcT9axheVi1GYpPS+272gh3ZPhLdeODljhC7XcOYYyqbfQqbkzDwI2JLPeEcAV 36i+PeXTiirT9gK5lucwXBOM+64HNSjm6SQWP1MkOEwGvU3pDlFSQk3xJ33CufNj00EKKN KqLelAYUOh0zAMzoXgAo36gg+e5r9xmojEZIkWhSxQLfxJp89DSTWVfyYkm6SFzxqfdtJ5 kRUMYRCJTh9nUNMwZ84xl2amjIvJGeMjJmHJIDYF0MQOpqQuiGJ03immZ35DPw== Date: Mon, 9 Feb 2026 00:02:09 +0100 To: FFmpeg development discussions and patches Message-ID: References: <20260208045621.46911-1-om.bhandankar@gmail.com> MIME-Version: 1.0 In-Reply-To: <20260208045621.46911-1-om.bhandankar@gmail.com> X-GND-Sasl: michael@niedermayer.cc X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduleehvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculddutddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeffledtfeevfeffheeuuefhtdejieelueeftdeitdfgheetgefffeefteekffdthfenucffohhmrghinhepfhhfmhhpvghgrdhorhhgnecukfhppeeguddrieeirdeiiedrhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieeirdehtddphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhqihgupedvfedukeetgeeffeejhfdpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-State: clean X-GND-Score: -90 Message-ID-Hash: AS36VE5NMAQST6RN5NJJ54GBV6FCPLKE X-Message-ID-Hash: AS36VE5NMAQST6RN5NJJ54GBV6FCPLKE X-MailFrom: SRS0=4rvz=AM=niedermayer.cc=michael@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] Re: [PATCH] fftools: add -ignore_unknown_options for forward-compatible CLI usage List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Michael Niedermayer via ffmpeg-devel Cc: Michael Niedermayer Content-Type: multipart/mixed; boundary="===============3517896420265567682==" Archived-At: List-Archive: List-Post: --===============3517896420265567682== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gUzgqmD13ZB5VF3Q" Content-Disposition: inline --gUzgqmD13ZB5VF3Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi On Sun, Feb 08, 2026 at 10:26:21AM +0530, Om Bhandankar via ffmpeg-devel wr= ote: > From: ombhandankar >=20 > Add a new global option -ignore_unknown_options that downgrades the > "Unrecognized option" fatal error to a non-fatal warning, allowing > processing to continue. >=20 > This enables scripts and programs that invoke FFmpeg to include options > from newer versions while maintaining compatibility with older ones. > The option must appear before any unrecognized options on the command > line. >=20 > Both option parsing paths are handled: split_commandline() used by > ffmpeg, and parse_options() used by ffplay/ffprobe. The option is > defined in CMDUTILS_COMMON_OPTIONS so all tools support it. >=20 > When an unrecognized option is skipped, its potential argument is not > consumed, as there is no reliable way to determine whether an unknown > option expects an argument. >=20 > Ref: https://trac.ffmpeg.org/ticket/11626 >=20 > Signed-off-by: Om Bhandankar > Co-authored-by: Cursor > --- > Changelog | 1 + > doc/fftools-common-opts.texi | 14 ++++++++++++++ > fftools/cmdutils.c | 15 ++++++++++++++- > fftools/cmdutils.h | 1 + > fftools/opt_common.h | 1 + > 5 files changed, 31 insertions(+), 1 deletion(-) instead of a bool, it may be better to list the specific options for which their failure should be ignored. -ignore_unknown_options "fancynewoption,anotherfancynewoption" -fancynewopt= ion 123 in principle this would allow also to specify if the option takes an argume= nt that should be skipped But before accepting an implemenattion of that idea above, id like to see h= ow this looks. This is a feature which is ok if its simple, clean and easy maintainable. thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Take away the freedom of one citizen and you will be jailed, take away the freedom of all citizens and you will be congratulated by your peers in Parliament. --gUzgqmD13ZB5VF3Q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaYkV7gAKCRBhHseHBAsP q0gMAJ9rIWMfwVzX536tjwcOuLb7ZUm5OwCfR5DUUslZVmAGUzVD4fTEqMjFymE= =M9Eb -----END PGP SIGNATURE----- --gUzgqmD13ZB5VF3Q-- --===============3517896420265567682== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org --===============3517896420265567682==--