Log in

View Full Version : AVC to HEIF/HEIC


jay123210599
15th March 2025, 12:17
If I remux a H.264 video to HEIF/HEIC, will the output be lossless?

microchip8
15th March 2025, 14:42
Remuxing does not change the bitstream, it just changes container. Not sure what you mean with lossless. If the H.264 video was compressed, it will remain compressed.

jay123210599
15th March 2025, 15:04
I mean a lossless animated HEIF/HEIC file.

Z2697
15th March 2025, 15:37
no:rolleyes:

jay123210599
15th March 2025, 18:47
no:rolleyes:

Why? The person said it wouldn't affect it.

SeeMoreDigital
15th March 2025, 20:16
Why? The person said it wouldn't affect it.If you create a series of lossless images at the same resolution as your AVC source, the resulting file size will probably be greater than the source.

jay123210599
15th March 2025, 21:03
Are you intending to create your HEIF/HEIC images as lossy or lossless?

EDIT: If you create a series of lossless images at the same resolution as your AVC source, its resulting file size will probably be greater than the source.

Lossless

Asmodian
15th March 2025, 21:25
You cannot remux H.264 to HEIF. You need to read up on the definition of terms.

You could convert the H.264 to a lossless HEIF image sequence. It would be much larger, but it would be lossless realtive to the H.264 source.

jay123210599
15th March 2025, 22:00
You cannot remux H.264 to HEIF. You need to read up on the definition of terms.

You could convert the H.264 to a lossless HEIF image sequence. It would be much larger, but it would be lossless realtive to the H.264 source.

How do I convert a PNG image sequence to a lossless animated HEIF file?

And not even with this? https://forum.doom9.org/showthread.php?t=185875

Z2697
15th March 2025, 22:21
You cannot remux H.264 to HEIF. You need to read up on the definition of terms.

You could convert the H.264 to a lossless HEIF image sequence. It would be much larger, but it would be lossless realtive to the H.264 source.

HEIF does have an AVC variant, AVCI, just like the HEVC variant is called HEIC and AV1 variant is called AVIF. (I said "just like" like there's a pattern, but honestly I can't spot that)
(AVCS, HEIS and AVIS for the corresponding "animation" variants ("S" for sequence))

By variant I mean the only differences are its content and the "brand" name... if I understand it correctly. Heck, it maybe even too generous to call them variants.

Z2697
15th March 2025, 22:30
Why? The person said it wouldn't affect it.

bc i hate u:devil:

jay123210599
15th March 2025, 22:31
HEIF does have an AVC variant, AVCI, just like the HEVC variant is called HEIC and AV1 variant is called AVIF. (I said "just like" like there's a pattern, but honestly I can't spot that)
(AVCS, HEIS and AVIS for the corresponding "animation" variants ("S" for sequence))

By variant I mean the only differences are its content and the "brand" name... if I understand it correctly. Heck, it maybe even too generous to call them variants.

And my other question? Can you guys answer this question, too?
https://forum.doom9.org/showthread.php?t=186207

SeeMoreDigital
15th March 2025, 23:09
Out of interest...

Why do you want to create a series of lossless images from an lossy AVC video source. What are you going to do with the images?

jay123210599
16th March 2025, 04:14
Out of interest...

Why do you want to create a series of lossless images from an lossy AVC video source. What are you going to do with the images?

I want to put them in a animated HEIF/HEIC or animated AVCI/AVCS file.

SeeMoreDigital
16th March 2025, 11:27
I want to put them in a animated HEIF/HEIC or animated AVCI/AVCS file.Why? For what purpose?

Z2697
16th March 2025, 11:38
How do I convert a PNG image sequence to a lossless animated HEIF file?

And not even with this? https://forum.doom9.org/showthread.php?t=185875

congrats you have just linked to one of the exact solution for your problem

jay123210599
16th March 2025, 13:22
congrats you have just linked to one of the exact solution for your problem

How is that a solution? You said if I remuxed a H.264 video to HEIF/HEIC, the output won't be lossless.

benwaggoner
17th March 2025, 19:07
How is that a solution? You said if I remuxed a H.264 video to HEIF/HEIC, the output won't be lossless.
You can't remux H.264 to HEIC, which is HEVC in a HEIF wrapper; that would require reencoding. You should be able to do it to AVIC, which is H.264 in a HEIF wrapper. However, it has never been nearly as popular a format as HEIC, and I don't know what sort of compatibility issues existing real-world players for it may have.

So, making the file shouldn't be that complex. Using it may be another matter. You'll likely need to test to find out, and may be the first person to discover some bugs.

jay123210599
17th March 2025, 21:32
You can't remux H.264 to HEIC, which is HEVC in a HEIF wrapper; that would require reencoding. You should be able to do it to AVIC, which is H.264 in a HEIF wrapper. However, it has never been nearly as popular a format as HEIC, and I don't know what sort of compatibility issues existing real-world players for it may have.

So, making the file shouldn't be that complex. Using it may be another matter. You'll likely need to test to find out, and may be the first person to discover some bugs.

Don't you mean AVCI? https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format#AVCI:_AVC_in_HEIF

benwaggoner
18th March 2025, 19:19
Don't you mean AVCI? https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format#AVCI:_AVC_in_HEIF
In fact I did. Too many acronyms!