HEIC/HEIF and AVIF support

Feature requests for VLC.
Lotesdelere
Cone Master
Cone Master
Posts: 9975
Joined: 08 Sep 2006 04:39
Location: Europe

HEIC/HEIF and AVIF support

Postby Lotesdelere » 06 Jun 2020 12:53

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! ;-)

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: HEIC/HEIF support

Postby InTheWings » 09 Jun 2020 19:29

:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

Lotesdelere
Cone Master
Cone Master
Posts: 9975
Joined: 08 Sep 2006 04:39
Location: Europe

Re: HEIC/HEIF support

Postby Lotesdelere » 10 Jun 2020 15:29

Brilliant, it works fine including files containing animations or sequences :)

Lotesdelere
Cone Master
Cone Master
Posts: 9975
Joined: 08 Sep 2006 04:39
Location: Europe

Re: HEIC/HEIF and AVIF support

Postby Lotesdelere » 12 Jun 2020 11:10

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.

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: HEIC/HEIF and AVIF support

Postby InTheWings » 12 Jun 2020 15:18

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"
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

Lotesdelere
Cone Master
Cone Master
Posts: 9975
Joined: 08 Sep 2006 04:39
Location: Europe

Re: HEIC/HEIF and AVIF support

Postby Lotesdelere » 12 Jun 2020 18:32

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.

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: HEIC/HEIF and AVIF support

Postby InTheWings » 18 Jun 2020 10:02

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.
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

Lotesdelere
Cone Master
Cone Master
Posts: 9975
Joined: 08 Sep 2006 04:39
Location: Europe

Re: HEIC/HEIF and AVIF support

Postby Lotesdelere » 21 Jun 2020 16:09

It works now, all of the files, well done :)


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: No registered users and 11 guests