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 BB7C94348A for ; Mon, 13 Jun 2022 17:17:49 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4C00F68B5B7; Mon, 13 Jun 2022 20:17:46 +0300 (EEST) Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6075F68AB35 for ; Mon, 13 Jun 2022 20:17:39 +0300 (EEST) Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-30c2f288f13so5065307b3.7 for ; Mon, 13 Jun 2022 10:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=aW2jqIY7dBIUKPkcnx5+wU4WEyjWvVM9M66R8pIVnN4=; b=LAKNddSaHad35IpewIO19bXsVZ89p5ak4BA+gbwDmJFyToR5OZurg0lz9QG8ldfoIe or3OcEza1BcboroR0oYLkR4oQPk/5N4TkB6dS2gBnLzMUe+qiwGPJ+u/UHLhaBkctOGu UyczzQhOki02Seo8Au7BPNK/kBLOUz6CtFvFwfKEFg7hVNgx+5Gbit/Q8xUrbj0JQywk uO9c8nPwjNacA0vGwyztWlY2iCrkTicc9jtwF7yXqDAwegaMDV7Log5xkiZPBBXd8imQ kkrAQHPSehabqvz0oX/Fe9iVYT/sgmIaesZtUh9eRLBmKGKelhY1r/Rc2J7vY37RUl/p J4Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=aW2jqIY7dBIUKPkcnx5+wU4WEyjWvVM9M66R8pIVnN4=; b=cNvpb6sTwHwfUXYlyPzR1p79Sj2CFhZRvIR0omvQ931zQdBJwnYngFtegu2ek8ZfT+ Kb8v+IBIDlsnLgUS64D76Pwsa9rP2cnUyjyv5hCz9ospY2k4BEsVAKytCafzLuFB0B3S 2HX6CnUVjpCbvFcMqtJrtL1j7oqcTHS3SR5+Uk8QNznBgBlIHRvuR4f4AxX+tauv4i2b 7/B1qH6hpPlNfXJEz5X7mcfKuvRao7RTzkuqNAf9dseHDEkDGOoLoM46XHUSiCvRS1ra L+YhxC1MogYifqP9ylMS46M913FU0p8YU/LgHoaSwHwd6mlqH82jua5GFgMTMrjkSE8Z I2xw== X-Gm-Message-State: AJIora+yrIbVAeEfDHNcOxQOD5JuUKD6roIQ5kwZrSt0E+8gPXgW75Pd 9yGT06oeVyKsuy6LoueSpTi4DYXsRCer+BbPNmYgQg/ehSVIIA== X-Google-Smtp-Source: AGRyM1uM2h+IUUmbqiY/HVMoTCPpq/UKX35o8NA/xTUh8nF6gX/J+2D6wmpHAvfnO1kCkogqAeNm3gOhe8hNv0swvnY= X-Received: by 2002:a81:78d:0:b0:2e5:d440:d921 with SMTP id 135-20020a81078d000000b002e5d440d921mr781317ywh.251.1655140657353; Mon, 13 Jun 2022 10:17:37 -0700 (PDT) MIME-Version: 1.0 References: <20220601180556.949526-1-vigneshv@google.com> In-Reply-To: <20220601180556.949526-1-vigneshv@google.com> From: James Zern Date: Mon, 13 Jun 2022 10:17:26 -0700 Message-ID: To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] avformat/movenc: Support alpha channel for AVIF 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 Wed, Jun 1, 2022 at 11:06 AM Vignesh Venkatasubramanian wrote: > > AVIF specification allows for alpha channel as an auxiliary item (in > case of still images) or as an auxiliary track (in case of animated > images). Add support for both of these. The AVIF muxer will take > exactly two streams (when alpha is present) as input (first one being > the YUV planes and the second one being the alpha plane). > > The input has to come from two different images (one of it color and > the other one being alpha), or it can come from a single file > source with the alpha channel extracted using the "alphaextract" > filter. > > Example using alphaextract: > ffmpeg -i rgba.png -filter_complex "[0:v]alphaextract[a]" -map 0 -map "[a]" -still-picture 1 avif_with_alpha.avif > > Example using two sources (first source can be in any pixel format and > the second source has to be in monochrome grey pixel format): > ffmpeg -i color.avif -i grey.avif -map 0 -map 1 -c copy avif_with_alpha.avif > > The generated files pass the compliance checks in Compliance Warden: > https://github.com/gpac/ComplianceWarden > > libavif (the reference avif library) is able to decode the files > generated using this patch. > > They also play back properly (with transparent background) in: > 1) Chrome > 2) Firefox (only still AVIF, no animation support) > > Signed-off-by: Vignesh Venkatasubramanian > --- > libavformat/movenc.c | 188 +++++++++++++++++++++++++++++-------------- > libavformat/movenc.h | 4 +- > 2 files changed, 130 insertions(+), 62 deletions(-) > lgtm. _______________________________________________ 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".