From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 87ACE48E0B for ; Mon, 29 Jan 2024 03:19:54 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3FA7968D1BF; Mon, 29 Jan 2024 05:19:52 +0200 (EET) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D07F368D155 for ; Mon, 29 Jan 2024 05:19:45 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id C5C13E0004 for ; Mon, 29 Jan 2024 03:19:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1706498385; 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=svH2RaRQQAhI/slJSdeD7oEFlucJCYJJyEJL7D4D1rU=; b=PDv9IystsaHQVMfnYYov4jaQGAA6Ewx46TdTvJj5sFmrqvjQYlMJfrZqSnNnExUkNvgfFw EtRXsVKwoIDIpUi/qptM0ySvZ+Dgs+wtBFYVbxWPPj/fPKlZdojqij1t16PuHWC4J1BtV7 0Icn15hThCjHPUfZiuUvU3qItu+gcVNyECrpnZTBbeOxqNU9eHdRUUNEGaWt5tt4wi/exO w/cSFKrj9HCXt4TlvaJnJSdaTEyQjexAiCUc8ul/x/R5aaPaPiDcbTrM0X17UuplNFaJKJ 2I6kBwtMgmTgwBkrH+qNj811UKVjabVbBCtul0cqpvS3keRAlNj+UnggVLePUA== Date: Mon, 29 Jan 2024 04:19:43 +0100 From: Michael Niedermayer To: ffmpeg-devel@ffmpeg.org Message-ID: <20240129031943.GR1833374@pb2> References: <20231231214948.CD436411659@natalya.videolan.org> MIME-Version: 1.0 In-Reply-To: <20231231214948.CD436411659@natalya.videolan.org> X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [FFmpeg-cvslog] vf_scale: use colorspace negotiation API 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: multipart/mixed; boundary="===============0421953455088688159==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============0421953455088688159== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FYef6pHvFBuPZp1D" Content-Disposition: inline --FYef6pHvFBuPZp1D Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 31, 2023 at 09:49:47PM +0000, Niklas Haas wrote: > ffmpeg | branch: master | Niklas Haas | Tue Oct 31 13:52:= 53 2023 +0100| [45e09a30419cc2a7251e72689142e021ecdfe6d9] | committer: Nikl= as Haas >=20 > vf_scale: use colorspace negotiation API >=20 > This filter will always accept any input format, even if the user sets > a specific in_range/in_color_matrix. This is to preserve status quo with > current behavior, where passing a specific in_color_matrix merely > overrides the incoming frames' attributes. (Use `vf_format` to force > a specific input range) >=20 > Because changing colorspace and color_range now requires reconfiguring > the link, we can lift sws_setColorspaceDetails out of scale_frame and > into config_props. (This will also get re-called if the input frame > properties change) >=20 > > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=3Dcommit;h=3D45e09a304= 19cc2a7251e72689142e021ecdfe6d9 > --- >=20 > libavfilter/vf_scale.c | 188 +++++++++++++++++++++++++++----------------= ------ > 1 file changed, 103 insertions(+), 85 deletions(-) This seems to remove metadata =2E/ffmpeg -f lavfi -i color=3Dblack -pix_fmt yuv422p10le -bitexact -vframe= s 1 -f framecrc - Stream #0:0: Video: rawvideo (Y3[10][10] / 0xA0A3359), yuv422p10le(tv, pro= gressive), 320x240 [SAR 1:1 DAR 4:3], q=3D2-31, 38400 kb/s, 25 fps, 25 tbn vs Stream #0:0: Video: rawvideo (Y3[10][10] / 0xA0A3359), yuv422p10le(progres= sive), 320x240 [SAR 1:1 DAR 4:3], q=3D2-31, 38400 kb/s, 25 fps, 25 tbn when its stored in a file, it results in a different output, example: =2E/ffmpeg -f lavfi -i color=3Dblack -pix_fmt yuv422p10le -bitexact -vframe= s 1 -c:v ffv1 -level 3 -y ffv1-lavf-black-4636-new.mkv I have not investigated what is correct, but i would think "no range inform= ation" would seem worse than whatever the correct is thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Elect your leaders based on what they did after the last election, not based on what they say before an election. --FYef6pHvFBuPZp1D Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZbcZSwAKCRBhHseHBAsP q8MbAKCRnHjGulyK7tf17P6SgY611NbFZgCeKbcVmqOpNtjcfAk35n/IBd5wBoI= =x2uG -----END PGP SIGNATURE----- --FYef6pHvFBuPZp1D-- --===============0421953455088688159== 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 https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". --===============0421953455088688159==--