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 2D33647EDE for ; Tue, 31 Oct 2023 11:24:07 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5BB3768CD0A; Tue, 31 Oct 2023 13:24:05 +0200 (EET) Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9014B68CCF7 for ; Tue, 31 Oct 2023 13:23:58 +0200 (EET) Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id 414F842B85 for ; Tue, 31 Oct 2023 12:23:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1698751438; bh=M0/7oBbJQ5scDQF1F345MGI5qNuzQtWaEw//ZTMScOI=; h=Date:From:To:Subject:In-Reply-To:References:From; b=SsOiL29OdrCI/OLYQiPpXhvPhi7cMDNvc3/WIsiLMIGJZ6648dBT7NuAZ53eGh7z+ sCGp3SnPftLYDfwLa8+E716LWFhsAab2nJYt+rz5/LFm5iDU3EzrHn1yCAhkW2ca+B ezGRJZyEIflwa5VJdD2EGBYUAeex14ZRe9PDu7P4= Date: Tue, 31 Oct 2023 12:23:58 +0100 Message-ID: <20231031122358.GB16818@haasn.xyz> From: Niklas Haas To: FFmpeg development discussions and patches In-Reply-To: <20231030234247.GN3543730@pb2> References: <20231028144430.60538-1-ffmpeg@haasn.xyz> <20231028144430.60538-8-ffmpeg@haasn.xyz> <20231030234247.GN3543730@pb2> MIME-Version: 1.0 Content-Disposition: inline Subject: Re: [FFmpeg-devel] [PATCH v2 07/10] avfilter/vf_scale: preserve YUV range by default 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="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Tue, 31 Oct 2023 00:42:47 +0100 Michael Niedermayer wrote: > On Sat, Oct 28, 2023 at 04:41:14PM +0200, Niklas Haas wrote: > > From: Niklas Haas > > > > YUV->YUV conversions should preserve input range, if the output range is > > unspecified. Ensures full-range YUV input comes out as full-range YUV > > output by default, even through YUV->YUV pixel format conversions. > > --- > > libavfilter/vf_scale.c | 23 +++++++++++++++++++++++ > > 1 file changed, 23 insertions(+) > > this seems to change the output of the following: > ffmpeg -i 4493/AVCI100.mov -vframes 3 -bitexact file.nut > did not investigate if this is a bug or bugfix > > files are here: https://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket524/ Seems like it's a regression. mpeg4 does not support full range YUV, so giving it full range YUV causes wrong levels to be saved. I will drop this commit from this series and include it as part of the filter negotiation series, since that one has the necessary infrastructure to handle this more gracefully. _______________________________________________ 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".