Page 1 of 1

HEIC/HEIF and AVIF support

Posted: 06 Jun 2020 12:53
by Lotesdelere
Since VLC supports many images formats (JPG, PNG, etc), it would be nice if it could support HEIC/HEIF image format (defined as Part 12 within the MPEG-H media suite ISO/IEC 23008-12) as well.
https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format

I guess it shouldn't be that hard considering the header is some kind of modified MP4 container (ftypmif1, mif1heic) and the codec being used is HEVC.

Code: Select all

General Format : HEIF Codec ID : mif1 (mif1/heic) Image #1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main@L6.2@Main Codec ID : hvc1 Codec ID/Info : High Efficiency Video Coding Width : 1 440 pixels Height : 960 pixels Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Codec configuration box : hvcC

Sample files available here:
http://s000.tinyupload.com/index.php?file_id=68370744293709843038

AVIF (AV1 in HEIF) would be a good idea too! ;-)

Re: HEIC/HEIF support

Posted: 09 Jun 2020 19:29
by InTheWings

Re: HEIC/HEIF support

Posted: 10 Jun 2020 15:29
by Lotesdelere
Brilliant, it works fine including files containing animations or sequences :)

Re: HEIC/HEIF and AVIF support

Posted: 12 Jun 2020 11:10
by Lotesdelere
Some AVIF files are opening but some other ones don't.

For instance, the Hato AVIF files from this link won't open:
https://github.com/AOMediaCodec/av1-avif/tree/master/testFiles/Link-U

Others sample files can be found there:
https://github.com/AOMediaCodec/av1-avif/tree/master/testFiles/Microsoft

Chimera_8bit_cropped_480x256.avif is opening but Chimera-AV1-8bit-1920x1080-6736kbps-354.avif doesn't.

Re: HEIC/HEIF and AVIF support

Posted: 12 Jun 2020 15:18
by InTheWings
Some AVIF files are opening but some other ones don't.

For instance, the Hato AVIF files from this link won't open:
https://github.com/AOMediaCodec/av1-avif/tree/master/testFiles/Link-U

Others sample files can be found there:
https://github.com/AOMediaCodec/av1-avif/tree/master/testFiles/Microsoft

Chimera_8bit_cropped_480x256.avif is opening but Chimera-AV1-8bit-1920x1080-6736kbps-354.avif doesn't.
nope, works.

"https://github.com/AOMediaCodec/av1-avif/blob/master/testFiles/Link-U/fox.profile2.12bpc.yuv422.monochrome.odd-width.odd-height.avif?raw=true"
"https://github.com/AOMediaCodec/av1-avif/blob/master/testFiles/Link-U/hato.profile0.8bpc.yuv420.monochrome.no-cdef.avif?raw=true"
"https://github.com/AOMediaCodec/av1-avif/blob/master/testFiles/Microsoft/Chimera_10bit_cropped_to_1920x1008.avif?raw=true"
"https://github.com/david-poirier-csn/whatimage/blob/master/tests/images/avif/Chimera-AV1-8bit-1920x1080-6736kbps-354.avif?raw=true"

Re: HEIC/HEIF and AVIF support

Posted: 12 Jun 2020 18:32
by Lotesdelere
So I downloaded them again as raw.

Chimera-AV1-8bit-1920x1080-6736kbps-354.avif opened only once. Other times it was either the orange VLC cone with a DVD or just nothing, the window didn't even react.
Same goes for hato.profile0.8bpc.yuv420.no-cdef.avif. Others Hato files didn't open at all.

Chimera_10bit_cropped_to_1920x1008_with_HDR_metadata.avif has strange colors.

Other files are opening fine.

I drag and drop the files into VLC window. I'm not closing VLC between each file.
Windows 10, i7-7700HQ, Intel HD Graphics 630 and GeForce GTX 1050 (same result for both), vlc-4.0.0-dev-win64-c98b8e88.7z.

Re: HEIC/HEIF and AVIF support

Posted: 18 Jun 2020 10:02
by InTheWings
I drag and drop the files into VLC window. I'm not closing VLC between each file.
Windows 10, i7-7700HQ, Intel HD Graphics 630 and GeForce GTX 1050 (same result for both), vlc-4.0.0-dev-win64-c98b8e88.7z.
There was an uninitialized value issue revealing on windows.
Fixed in nightlies.

Re: HEIC/HEIF and AVIF support

Posted: 21 Jun 2020 16:09
by Lotesdelere
It works now, all of the files, well done :)