[FFmpeg-devel] [PATCH] avformat/mov: Add support for still image AVIF parsing

Gyan Doshi ffmpeg at gyani.pro
Thu Apr 21 12:00:54 EEST 2022



On 2022-04-20 09:54 am, Gyan Doshi wrote:
>
>
> On 2022-04-20 02:49 am, Paul B Mahol wrote:
>> On Tue, Apr 19, 2022 at 10:57 PM Vignesh Venkatasubramanian <
>> vigneshv-at-google.com at ffmpeg.org> wrote:
>>
>>> Add support for parsing AVIF still images. This patches supports
>>> AVIF still images that have exactly 1 item (i.e.) no alpha channel.
>>> Essentially, we will have to parse the "iloc" box and populate
>>> the mov index.
>>>
>>> With this patch, we can decode still AVIF images like so:
>>> ffmpeg -i image.avif image.png
>>>
>>> Partially fixes trac ticket #7621
>>>
>> LGTM
>
> Will push tomorrow if no one else has.

Can you provide a sample AVIF image and command that this patch allows 
decoding of?

I tried a couple of samples from Netflix[1] and MS[2] and none worked, 
even with forcing MOV demuxer ("moov atom not found" or "error reading 
header").

[1]: http://download.opencontent.netflix.com/?prefix=AV1/Chimera/AVIF/
[2]: 
https://github.com/AOMediaCodec/av1-avif/tree/master/testFiles/Microsoft

Regards,
Gyan




More information about the ffmpeg-devel mailing list