Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th March 2025, 12:17   #1  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 380
AVC to HEIF/HEIC

If I remux a H.264 video to HEIF/HEIC, will the output be lossless?
jay123210599 is offline   Reply With Quote
Old 15th March 2025, 14:42   #2  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,919
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.
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 15th March 2025, 15:04   #3  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 380
I mean a lossless animated HEIF/HEIC file.
jay123210599 is offline   Reply With Quote
Old 15th March 2025, 15:37   #4  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 491
no
Z2697 is offline   Reply With Quote
Old 15th March 2025, 18:47   #5  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 380
Quote:
Originally Posted by Z2697 View Post
no
Why? The person said it wouldn't affect it.
jay123210599 is offline   Reply With Quote
Old 15th March 2025, 20:16   #6  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,343
Quote:
Originally Posted by jay123210599 View Post
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.
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |

Last edited by SeeMoreDigital; 15th March 2025 at 21:34.
SeeMoreDigital is offline   Reply With Quote
Old 15th March 2025, 21:03   #7  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 380
Quote:
Originally Posted by SeeMoreDigital View Post
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
jay123210599 is offline   Reply With Quote
Old 15th March 2025, 21:25   #8  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,454
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.
__________________
madVR options explained
Asmodian is offline   Reply With Quote
Old 15th March 2025, 22:00   #9  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 380
Quote:
Originally Posted by Asmodian View Post
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
jay123210599 is offline   Reply With Quote
Old 15th March 2025, 22:21   #10  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 491
Quote:
Originally Posted by Asmodian View Post
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.

Last edited by Z2697; 15th March 2025 at 22:27.
Z2697 is offline   Reply With Quote
Old 15th March 2025, 22:30   #11  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 491
Quote:
Originally Posted by jay123210599 View Post
Why? The person said it wouldn't affect it.
bc i hate u
Z2697 is offline   Reply With Quote
Old 15th March 2025, 22:31   #12  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 380
Quote:
Originally Posted by Z2697 View Post
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
jay123210599 is offline   Reply With Quote
Old 15th March 2025, 23:09   #13  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,343
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've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 16th March 2025, 04:14   #14  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 380
Quote:
Originally Posted by SeeMoreDigital View Post
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.
jay123210599 is offline   Reply With Quote
Old 16th March 2025, 11:27   #15  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,343
Quote:
Originally Posted by jay123210599 View Post
I want to put them in a animated HEIF/HEIC or animated AVCI/AVCS file.
Why? For what purpose?
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 16th March 2025, 11:38   #16  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 491
Quote:
Originally Posted by jay123210599 View Post
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
Z2697 is offline   Reply With Quote
Old 16th March 2025, 13:22   #17  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 380
Quote:
Originally Posted by Z2697 View Post
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.
jay123210599 is offline   Reply With Quote
Old 17th March 2025, 19:07   #18  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,992
Quote:
Originally Posted by jay123210599 View Post
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.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 17th March 2025, 21:32   #19  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 380
Quote:
Originally Posted by benwaggoner View Post
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_E...I:_AVC_in_HEIF
jay123210599 is offline   Reply With Quote
Old 18th March 2025, 19:19   #20  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,992
Quote:
Originally Posted by jay123210599 View Post
In fact I did. Too many acronyms!
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Reply

Tags
avc, h.264, h.265, hevc, image-quality

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:31.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.