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 EE1A84E688 for ; Wed, 11 Jun 2025 11:53:29 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id E4FE868C184; Wed, 11 Jun 2025 14:53:25 +0300 (EEST) Received: from mail.qult.net (unknown [78.193.33.39]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 7EFD068B6ED for ; Wed, 11 Jun 2025 14:53:19 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qult.net; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Subject :To:From:Date:Sender:Reply-To:Cc: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=ylQbTkW/Bh0XVWo7sugx4HhwSyKS8MvJM+FyObUgFc8=; b=r 4yOEYyagno3cLE3qj6WCIwI04VJRSHfUpVGPv2tuKNbRggh8OV5Vt4D+u2fnzg3bvk3vboaKj63/M W2jPBLays24MFjGGTnCPvB6V8RomooHMc6VFhAmchMXT5uNRjsjn2wt+f0nJRn+emMUuAT9taz12F zD7XscjJBRknUboQ=; Received: from [2001:470:60ee:0:da5e:d3ff:fe0e:33f5] (helo=zenon.qult.net) by mail.qult.net with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.97) (envelope-from ) id 1uPJcS-0000000BvKi-3Fdy for ffmpeg-devel@ffmpeg.org; Wed, 11 Jun 2025 13:27:48 +0200 Received: from ig by zenon.qult.net with local (Exim 4.98.1) (envelope-from ) id 1uPJcM-00000008kwK-2PUA for ffmpeg-devel@ffmpeg.org; Wed, 11 Jun 2025 13:27:42 +0200 Date: Wed, 11 Jun 2025 13:27:42 +0200 From: Ignacy =?utf-8?B?R2F3xJlkemtp?= To: ffmpeg-devel@ffmpeg.org Message-ID: MIME-Version: 1.0 Content-Disposition: inline Subject: [FFmpeg-devel] [RFC 0/1] avfilter/f_sendcmd: add format expressions 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="iso-8859-2" Content-Transfer-Encoding: quoted-printable Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Hi, I'd like to submit the following patch adding a feature that I was missing and decided to try to implement myself. The problem I had was that although the parameters of the lutyuv filter are all commands, there was no way to use sendcmd to generate the expressions for the parameters using time-dependent [expr] flag. So I added a [format] flag that indicates ARG is to be interpreted as a format string (printf-style) followed by arguments separated by commas (that require proper escaping for it to work), and used to generate the string that is eventually sent to the filter. This is currently limited to %f with optional width and precision. Tested to work with ARG as "gammaval(%.2f), 1-TI*.3", to make a gamma ramp over an interval of time. What do you think about it? Cheers, Ignacy Ignacy Gaw=EAdzki (1): avfilter/f_sendcmd: add format expressions libavfilter/f_sendcmd.c | 161 +++++++++++++++++++++++++++++++++++----- 1 file changed, 143 insertions(+), 18 deletions(-) -- = 2.48.1 _______________________________________________ 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".