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 BF9AD4066E for ; Mon, 23 Feb 2026 15:23:35 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'4Bec7HcmZqer/XXMQtvmdsjLAWHshgDLINMi9n/hLLU=', expected b'EJIPVDYPGS3sXiNZyitTPyk4qYFWSQBKYq9Wsl/FX6c=')) header.d=ffmpeg.org header.i=@ffmpeg.org 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=1771820026; h=mime-version : to : date : message-id : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=4Bec7HcmZqer/XXMQtvmdsjLAWHshgDLINMi9n/hLLU=; b=VrRbki42HdOinyry5nZ7fH5vUwxxgIhR7qugVzT0lDIfotU4pC7xYdMKOCOuone26eI0d fIID+fcIvjZwSNa6HxYRg1cgwtK2cBSDcC/0rrvm0QIvPnhrlI3frOae/+3YCAUcYA/zJIF v4yV5SxnX8Tnp/Ozp4pNyMOEccBgeCfUaeutJcR9oRCSEbMaW07K8Nw0ERbh8mBzvs5DppZ IeoBUt6gXjb5i2UpztiIa2cQC/jGEBXERWWTcFoQOfDGZJrOmd9+WRJSsA4MCPsnB0Gi0A6 okAyPwTkR/Ywfh60+Eus7V1TI9GpBxvoOBNGYjVCyppb3EGULPZ/GQrQgUSQ== Received: from [172.18.0.3] (unknown [172.18.0.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 16120691255; Mon, 23 Feb 2026 06:13:46 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1771820010; b=FmDM+yzaNiIqEK+zErJukIbqvXCi2NqBLv3GNoOwGFRRkhY3tJT0OhxrWlPqrUyHYmlIa sN0wcW9/L2Pb4/6ydDfDUIjJqPJYrW1d/it6LCv1r9uGW8tOLcm8EROgJKeg2BGgf/Lyoxe +zC+rrx3C6Vz1+2uI9wLA8igxQ4T2w/j/Lq3NJZ+aXlr1Czaw7Hdma0LrFBgMdRyoMIBTTr Eiu9z90hOdrHCd1MdLom4C7zmDItdOx43W4JVcSdNbuL5KnDN4DXmkEgxKbHL9G71yALFsn n/CqlXGmmX9tnTKlTf90RJ/ijWJ012WIAd70C69gom4+qdOK/H4GX0sZ360w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1771820010; 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=qaZSqQ6xqsU/vApU8zNWAbra9z6otjPKRa+4+FQj18Q=; b=cxB6fA/PO16I2W2REgzoCMt5Ar677LlUsJyTsWTHSKQIsZz44SzBrXHILfv8wP5pmmNED lAsnjvIjDTcs23QAw9DIP7RTUfb8JsDCYLd3XRVA+qUJ0bhPZbImmZW3AIoAPYsxuicFXOx Mj6aMT/uo5VGAm+yn8uhqQaphsrTMsoh1fL+OXr/UPRAPOyvbgZamJC2n1HSaTrBU6zyIET 2cvlWhQjCs0jyMRu/MjL8uUwveTTT2xIZkobu5WX69WPRUiB8KTCJwC0Xvc9Hc4TbypQcAq HK7foa4t9lvlp4/BBwft0/QvFyiJ7wXdt6E/p5SotlSBgyAPfrVL+CzIuomA== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none; dmarc=pass header.from=ffmpeg.org policy.dmarc=quarantine Authentication-Results: ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=ffmpeg.org policy.dmarc=quarantine DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1771820000; h=content-type : mime-version : content-transfer-encoding : from : to : reply-to : subject : date : from; bh=EJIPVDYPGS3sXiNZyitTPyk4qYFWSQBKYq9Wsl/FX6c=; b=wx03kqoZflSFvB657h+adBO8U7DI77ezbpV//Qz30oxixUxZ153BbEPCb8ixoaWMNCnSY T/Q1jBhw3W1RuTAyUynueQBboygZBD11Bd3A1Y8DCej8i2svoPDPkwHpvYFQk+pRZsLRTte 9NF9u7a8d9Bqw/L9gs2tMWROK8IS1bS/RXXabMOZup7NbQHk2IvhLDkJdiPpS4ujG3V6GNi YHK/e4p9QKO9dTQ6/L56cET1sFesQ8X6LqZaIz3mFAnCj3G442tMsrOrlBgR/PFwOWgqrTt T81/fmCULSCGTqIr4qPir5Ve7edrHo1IqRfPfFwaW1JCQXVKv7fQiS/i1Qgg== MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Date: Mon, 23 Feb 2026 04:13:19 -0000 Message-ID: <177182000036.25.15229193132520058859@29965ddac10e> Message-ID-Hash: S6W76RBK2Y7PHGBHSFPRZOLVKOCF2H2Y X-Message-ID-Hash: S6W76RBK2Y7PHGBHSFPRZOLVKOCF2H2Y X-MailFrom: code@ffmpeg.org X-Mailman-Rule-Hits: nonmember-moderation 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 X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PR] fftools/ffmpeg_filter: skip autoscale for hardware format (PR #22262) 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: Zhao Zhili via ffmpeg-devel Cc: Zhao Zhili Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: PR #22262 opened by Zhao Zhili (quink) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22262 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22262.patch This fix failure: ffmpeg -hwaccel cuda -hwaccel_output_format cuda \ -i The_Beauty_of_Earth-1.mp4 \ -vf scale_cuda=2880:1440 \ -c:v hevc_nvenc \ -pix_fmt cuda \ -b:v 8M -c:a copy \ -y test_scale.mp4 > Reconfiguring filter graph because hwaccel changed > Impossible to convert between the formats supported by the filter > 'Parsed_scale_cuda_0' and the filter 'auto_scale_0'. > Error reinitializing filters! Signed-off-by: Zhao Zhili >>From 74e751fa28c73abc4640599fe5eecd23bf622b42 Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Sun, 8 Feb 2026 14:28:29 +0800 Subject: [PATCH] fftools/ffmpeg_filter: skip autoscale for hardware format This fix failure: ffmpeg -hwaccel cuda -hwaccel_output_format cuda \ -i The_Beauty_of_Earth-1.mp4 \ -vf scale_cuda=2880:1440 \ -c:v hevc_nvenc \ -pix_fmt cuda \ -b:v 8M -c:a copy \ -y test_scale.mp4 > Reconfiguring filter graph because hwaccel changed > Impossible to convert between the formats supported by the filter > 'Parsed_scale_cuda_0' and the filter 'auto_scale_0'. > Error reinitializing filters! Signed-off-by: Zhao Zhili --- fftools/ffmpeg_filter.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 765b65d0ec..9418a974cc 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -1681,7 +1681,10 @@ static int configure_output_video_filter(FilterGraphPriv *fgp, AVFilterGraph *gr av_frame_side_data_remove(&ofp->side_data, &ofp->nb_side_data, AV_FRAME_DATA_DISPLAYMATRIX); } - if ((ofp->width || ofp->height) && (ofp->flags & OFILTER_FLAG_AUTOSCALE)) { + if ((ofp->width || ofp->height) && (ofp->flags & OFILTER_FLAG_AUTOSCALE) && + // skip add scale for hardware format + !(ofp->format != AV_PIX_FMT_NONE && + av_pix_fmt_desc_get(ofp->format)->flags & AV_PIX_FMT_FLAG_HWACCEL)) { char args[255]; AVFilterContext *filter; const AVDictionaryEntry *e = NULL; -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org