News:

--

Main Menu

Codec for lossless HEVC

Started by guju, April 11, 2024, 11:56:24 AM

Previous topic - Next topic

guju

If I get it right, ADM's HEVC/ x265 encoder does not allow lossless mode?

However it would be useful, when (for some kind of reason) have to save a movie lossless,
and you have to care about extreme file sizes, HEVC lossless filesize is (up to about factor 2)
smaller than the other lossless codes. (You have to pay with encoding time however).

Any chance for lossless HEVC?

coolgit

Use ffv1 or utvideo.

If you really must use x265 then vdub2 does it.

guju

Thank you for your reply.

Still, I wonder...
Somehow you must have missed the only issue I'm about: file size.

I checked that "utvideo" (never seen anywhere).
It needs even more space than ffv1 and all the other lossless codecs.

I know that VD2 provides HEVC.
But to my experiences VD2 isn't very reliable, esp. when it is about
encoding (desync issues, or corrupt streams in general).
I use VD2 only when in need of a special filter.

ADM is much more reliable to my experience.
And the best compressing lossless codec (HEVC) would be useful to have.

You didn't mention any reason why lossless HEVC should be a problem.
As far as I know, there aren't any license issues with x265,
it is offered through ffmpeg.
So I thought it might be just a small GUI entry?

eumagga0x2a

Quote from: guju on April 13, 2024, 08:22:46 AMSomehow you must have missed the only issue I'm about: file size.

I checked that "utvideo" (never seen anywhere).
It needs even more space than ffv1 and all the other lossless codecs.

When setting up x265 to output intra-only streams in order to level the field, there is hardly any advantage filesize-wise compared to Ut Video. Of course, if you are fine with GOPs, then yes, availability of P- and B-frames in HEVC saves quite a lot of storage space. (I wrote a quick patch myself to try this out using Avidemux, didn't see the PR by szlldm.)

Quote from: guju on April 13, 2024, 08:22:46 AMAs far as I know, there aren't any license issues with x265,
it is offered through ffmpeg.

HEVC is one of worst codecs license-wise, just being able to fly below the radar as a considerably poor private person using the codec in private doesn't make it better. FFmpeg is able to decode HEVC in software internally or using an HW accel., relies on libx265 or on HW accel for encoding.


guju

Thankyou for the info.  :)

Do as you think it will be best.

eumagga0x2a

Tentatively expect x265 lossless mode early in the 2.8.3 development cycle.