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 42C07420E3 for ; Mon, 27 Jun 2022 16:44:15 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6599B68B8BA; Mon, 27 Jun 2022 19:44:13 +0300 (EEST) Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DB4CD68B774 for ; Mon, 27 Jun 2022 19:44:06 +0300 (EEST) Received: by mail-yb1-f180.google.com with SMTP id l11so17666882ybu.13 for ; Mon, 27 Jun 2022 09:44:06 -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=FZ5+PTgX6H3OCEm8FzJaz501DEjkd+IUwMpFp3KX0V8=; b=XTlgB+PgCJh1lfCJfJh9vpCjB7PyT2N7GbhUm2zLLBMmBsXUcQ2DMTH+ir4a00rETX kp/qWYULhQqFCS+DFE4yvIvmndsgZ3P125UFrBdYag0EQGRLy86r8XFUaklUsvH7O4qG Qn+16AdE0BJ3d141GPEbbW1oJForl5IZckUOhws4ZwErO1qetlhczAzAFgaIjBDzNJWs ITox2Z1VQzJAYA1hpKdJel6IX0nqYR7YKu/F1wxIKuUHU16U8N/UWlJcivyQK95rYfZ7 IKbJJXSepta8zh7zejXsCJZi1ESDbwYx54kRQHXMlOemHv8JSlUoAx8mqRo9YHNoUDu2 P3nA== 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=FZ5+PTgX6H3OCEm8FzJaz501DEjkd+IUwMpFp3KX0V8=; b=PeBfkAUYbM9qrNHoTY+CCRFJvLPloE8gH3UCBdkiSKZgnhcUy+amQcL9mgaBVlcHab TzpHtYjX/2bVy4qV80Rhe5g2yGopUzM0JoYsM0UafEV2mMpRxbrspy3lCYSot4dfdBQe YV32Rgv2nMpWU16lPXD/tEeq1bAfdYhxvBjyZ8LejikLkKJNiIXuWDU5OG4tEU6k80l+ M4ID4WME0tZVZg0gbFL4bT5ebKGeiA+6LRyUl262wIVPQ2ZRq8NxO2+xgmcv9OT+EXPL btwucCiOGm4bvRS8hB9waBjMotJtouAffWn4TkIwwbWRT/sIOX90f4qcDqg2+Ii35/0x Wk3w== X-Gm-Message-State: AJIora8/fqn8N+x6SGv4bLqS0yk80qeBrOjDV2fPRLF+csP71auj3Edm oOf0ElHnd80O2FUijLIF0pGTqW4Hf5F4yyoZpAvYG32HZ5M= X-Google-Smtp-Source: AGRyM1srTUiZ3ANw2E76ED9GjMRn4dS/hKMBGs2JReB4nNrnuA/JtYwYvZvOkd/STnrpZfmJbEb97OL8l+v+HqSZNJs= X-Received: by 2002:a25:1f44:0:b0:66c:8185:7c2e with SMTP id f65-20020a251f44000000b0066c81857c2emr14309828ybf.629.1656348244090; Mon, 27 Jun 2022 09:44:04 -0700 (PDT) MIME-Version: 1.0 References: <20220601180556.949526-1-vigneshv@google.com> In-Reply-To: From: Vignesh Venkatasubramanian Date: Mon, 27 Jun 2022 09:43:52 -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 Tue, Jun 21, 2022 at 10:12 AM Vignesh Venkatasubramanian wrote: > > On Mon, Jun 13, 2022 at 10:17 AM James Zern > wrote: > > > > 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". > > Any more comments on this? If not can this be merged please? :) > Another ping on this please. > -- > Vignesh -- Vignesh _______________________________________________ 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".