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 > New and alternative video codecs

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th August 2024, 11:23   #1  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 393
Enhanced Compression Model (ECM) / H.267: VVC successor

Source 1.

Source 2.

Fraunhofer's reference implementation: https://vcgit.hhi.fraunhofer.de/ecm/ECM
birdie is offline   Reply With Quote
Old 5th August 2024, 12:01   #2  |  Link
modus-ms325c
Registered User
 
Join Date: Dec 2023
Posts: 18
VVC hasn't even picked up momentum and they're already making a "sequel"?
modus-ms325c is offline   Reply With Quote
Old 5th August 2024, 13:16   #3  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 393
Quote:
Originally Posted by modus-ms325c View Post
VVC hasn't even picked up momentum and they're already making a "sequel"?
Hasn't been good enough
birdie is offline   Reply With Quote
Old 5th August 2024, 14:09   #4  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,100
Quote:
Originally Posted by modus-ms325c View Post
VVC hasn't even picked up momentum
It will, give it time.
It will finally give TV manufacturers an excuse to bring 8K to customers.
FranceBB is offline   Reply With Quote
Old 6th August 2024, 08:48   #5  |  Link
hajj_3
Registered User
 
Join Date: Mar 2004
Posts: 1,157
Quote:
Originally Posted by FranceBB View Post
It will, give it time.
It will finally give TV manufacturers an excuse to bring 8K to customers.
Nope. EU regulations have an energy efficiency limit for tvs. It isn't possible for 8k tvs to be energy efficient which is why 8k tvs have disappeared. Manufacturers are less likely to make them if some of the wealthiest areas of the world can't buy them.

Quote:
Originally Posted by modus-ms325c View Post
VVC hasn't even picked up momentum and they're already making a "sequel"?
the mpeg roadmap shows it being ratified at the end of 2025/beginning of 2026, by that time vvc will be 5.5yrs old.

Last edited by hajj_3; 6th August 2024 at 09:15.
hajj_3 is offline   Reply With Quote
Old 6th August 2024, 11:37   #6  |  Link
ksec
Registered User
 
Join Date: Mar 2020
Posts: 134
Why create another thread when we already have one?
__________________
Previously iwod
ksec is offline   Reply With Quote
Old 8th August 2024, 20:52   #7  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,893
Quote:
Originally Posted by modus-ms325c View Post
VVC hasn't even picked up momentum and they're already making a "sequel"?
It's standard for the new codec R&D to start relatively soon after the prior standard has been completed. There's always a bunch of leftover tools that didn't make the cut to take another run at. Generally each new generation allows ~10x more encode compute and ~2x more decode compute, so techniques that didn't make sense for one generation can make sense for the following one.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 8th August 2024, 20:58   #8  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,893
Quote:
Originally Posted by hajj_3 View Post
Nope. EU regulations have an energy efficiency limit for tvs. It isn't possible for 8k tvs to be energy efficient which is why 8k tvs have disappeared. Manufacturers are less likely to make them if some of the wealthiest areas of the world can't buy them.
Moreover, the industry hasn't been able to demonstrate that 8K moving image content offers a better visual experience than a 4K downscale of the same content. An 8K panel gives 12-16 RGB sub pixels per YUV content pixel, which offers some theoretical benefit, but not a practical one at reasonable viewing distances for natural image content. 8K does look better for computer monitors running productivity apps and such.

The minimum pixel size of 2nd gen quantum dot OLED and microLED are also still too big to make an 8K TV out of it at an acceptable living room size. So the displays the offer the best image quality for movie content on a calibrated display in a darker viewing environment aren't available in 8K either. Of course, this is a temporary situation. I expect EU-legal 8K TVs to become feasible in the next few years.

That said, my primary TV/gaming monitor is an 85" Samsung Q900C, and it is a great display and experience. Nice to be in the USA where our power restrictions aren't as limited (and I use it in a darker room, so ambient light adaptation keeps power draw lower).
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 12th August 2024, 22:35   #9  |  Link
kurkosdr
Registered User
 
Join Date: Aug 2009
Posts: 385
Quote:
Originally Posted by hajj_3 View Post
Nope. EU regulations have an energy efficiency limit for tvs. It isn't possible for 8k tvs to be energy efficient which is why 8k tvs have disappeared. Manufacturers are less likely to make them if some of the wealthiest areas of the world can't buy them.
It's worth mentioning that the EU doesn't impose a hard limit on TV power consumption in general, it only imposes a hard limit on the default mode (typically called "natural" or similar by the manufacturer), and nothing prevents you from switching your TV to "dynamic" or "standard" mode which has no power limits (that is, after you select "yes" on the silly warning about power consumption being higher in those modes, which of course it is). Most TVs urge you to pick a mode during installation nowadays, so you realistically can't be accidentally stuck in the default mode on a modern TV. Which makes you wonder why the EU even bothered to regulate all this. So, nothing prevents manufacturers from having an ultra-dark mode on 8K TVs that conforms to the EU's limits.

The reason 8K TVs don't sell is a much simpler one: Nobody has a good reason to own one, because there is no tangible benefit over 4K. This in turn means there is no demand for 8K content, much less enough demand to justify the rather steep demands of 8K when it comes to bitrate (even if VVC is used, or even ECM).

Personally, I want to see what ECM will achieve when it comes to 4K content, which is still rare in broadcasting (especially FTA). Could we see a 4K HLG10 channel finally fit in the space of a typical FHD H.264 channel?

(one way we might see 8K panels become useful is to provide "glasses-free" stereoscopic 4K content, since the black dots of the "glasses-free" technology will be invisible with such a panel, but that's a slim chance I'll admit, and that still won't make 8K content useful, just the panels)

Last edited by kurkosdr; 12th August 2024 at 22:49.
kurkosdr is offline   Reply With Quote
Old 16th August 2024, 01:36   #10  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,893
Quote:
Originally Posted by kurkosdr View Post
Personally, I want to see what ECM will achieve when it comes to 4K content, which is still rare in broadcasting (especially FTA). Could we see a 4K HLG10 channel finally fit in the space of a typical FHD H.264 channel?
We can generally fit a 4K HDR-10 HEVC 10-bit into the same space as a 1080p H.264 SDR channel with statmux. I don't think we need to wait for ECM!

Quote:
(one way we might see 8K panels become useful is to provide "glasses-free" stereoscopic 4K content, since the black dots of the "glasses-free" technology will be invisible with such a panel, but that's a slim chance I'll admit, and that still won't make 8K content useful, just the panels)
Glasses-free for more than one person requires lenticular screens, which lose horizontal detail proportional to the number of viewing angles available. 16 is about the lowest that can kinda work with careful sitting, and 32 when it becomes natural feeling. So a 64K panel would give us full 1080p detail with 32 viewing angles.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 18th August 2024, 20:19   #11  |  Link
kurkosdr
Registered User
 
Join Date: Aug 2009
Posts: 385
Quote:
Originally Posted by benwaggoner View Post
We can generally fit a 4K HDR-10 HEVC 10-bit into the same space as a 1080p H.264 SDR channel with statmux. I don't think we need to wait for ECM!
No, you can't, the efficiency gains aren't there, especially when the HDR tax (20%) is taken into account. For each 1Mbits of 1080p H.264 SDR, for 4K HDR HEVC you need:
1*4*1.2*0.6=2.88, so 288% of a 1080p H.264 SDR broadcast
(assuming a reduction to 60% of bitrate for HEVC compared to H.264 for UHD content)

Now, in a parallel universe where broadcasters give actually good 1080p (15Mbps), you could just barely do it (replace FHD with UHD on a 1:1 basis), but this is not the universe we live in, most broadcasters don't even give 6Mbps of statistical bitrate to FHD (and even premium ones don't give above 7Mbps of statistical bitrate to FHD).

The only way UHD works in broadcast is by squeezing FHD channels even further to make space for a couple of UHD channels per 30 FHD channels or so.

Last edited by kurkosdr; 18th August 2024 at 20:22.
kurkosdr is offline   Reply With Quote
Old 18th August 2024, 21:06   #12  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,100
Well, another additional consideration is that channels are actually 1080i not 1080p, which does actually allow lower bitrates compared to encoding the whole thing progressively. Only with UHD there's been the move from 25i TFF to 50p and that of course requires a lot more bandwidth.

So yeah, you can't really put a UHD channel in using the same bandwidth of a FULL HD one. By the way, above we were talking about HDR10, but I don't really think that there's gonna be a move to HDR10 anytime soon for linear. When UHD arrived in 2013-2015, early adopters settled on BT2020 SDR, which is why when HDR arrived in 2017 everyone shifted towards HLG to not screw people with early TVs over and we've been stuck in a loop ever since.

Currently, a broadcaster has to keep the very same channel with the very same content playing in:

- 720x576 SD (anamorphic flagged 16x9) 4:2:0 25i TFF BT601 SDR 8bit MPEG-2 2.5 Mbits
- 1920x1080 FULL HD 16x9 4:2:0 25i TFF BT709 SDR 8bit H.264 12 Mbits
- 3840x2160 UHD 16x9 4:2:0 50p BT2020 HLG HDR 10bit H.265 18 Mbits

Keep in mind that the ideal UHD 50p bitrate is actually 25 Mbits and it used to be that, but bandwidth on hotbird is so constrained that we were forced to lower it down to 18 Mbits. Also keep in mind that the efficiency of live hardware encoding isn't comparable to the one of offline software encoding. On top of that, in Italy we had to shut down the Sky Cinema UHD channel as it was far too expensive to run. Right now, the only UHD channel still going is the Sky Sports one. This didn't really get a very good reception and we were scolded at the UHD meeting in Milan earlier on this year 'cause in their view if we don't innovate and bring UHD over to customers, who will? Well, obviously streaming companies will, but that's not linear. Streaming companies also don't have the issue of keeping compatibility with older UHD SDR TVs as they can easily put out a PQ stream and it would be just an additional file on the CDN that a player can choose. For a broadcaster, either you just put it there instead of the HLG one and eventually end up screwing someone over or you put out another UHD channel but keep the HLG one, which is never gonna happen. This is why I said that I was excited about H.266 VVC and 8K. I mean, 8K won't really be something important in terms of resolution, so much so that lots of people won't even notice the resolution shift from 4K, but it will finally give broadcasters the excuse to move to PQ once and for all (and potentially go to 12bit instead of 10bit although early drafts still showed 10bit as the standard).

Last edited by FranceBB; 18th August 2024 at 21:10.
FranceBB is offline   Reply With Quote
Old 18th August 2024, 21:57   #13  |  Link
kurkosdr
Registered User
 
Join Date: Aug 2009
Posts: 385
Quote:
Originally Posted by FranceBB View Post
By the way, above we were talking about HDR10, but I don't really think that there's gonna be a move to HDR10 anytime soon for linear. When UHD arrived in 2013-2015, early adopters settled on BT2020 SDR, which is why when HDR arrived in 2017 everyone shifted towards HLG to not screw people with early TVs over and we've been stuck in a loop ever since.
Sure, but the 20% HDR tax applies to HLG10 too.

Quote:
Originally Posted by FranceBB View Post
Well, another additional consideration is that channels are actually 1080i not 1080p, which does actually allow lower bitrates compared to encoding the whole thing progressively. Only with UHD there's been the move from 25i TFF to 50p and that of course requires a lot more bandwidth.
Wait a minute... is there another bitrate tax from moving from interlaced (and 25p encoded as MBAFF in interlaced) to 50p? I assumed that, since there is no interlaced in HEVC (it's technically in the standard but not implemented or used anywhere), the "60% of the bitrate for UHD (compared to H.264)" figure included the 50p tax but not the HDR tax. But I may be wrong. If so, how much is the 50p tax?

Quote:
Originally Posted by FranceBB View Post
Currently, a broadcaster has to keep the very same channel with the very same content playing in:

- 720x576 SD (anamorphic flagged 16x9) 4:2:0 25i TFF BT601 SDR 8bit MPEG-2 2.5 Mbits
- 1920x1080 FULL HD 16x9 4:2:0 25i TFF BT709 SDR 8bit H.264 12 Mbits
- 3840x2160 UHD 16x9 4:2:0 50p BT2020 HLG HDR 10bit H.265 18 Mbits
If premium broadcasters were smart, they'd give subscribers new HEVC-capable decoder boxes when they renewed their contract all the way back in 2019, so in 2-3 years' time everyone would have HEVC-capable decoder boxes. This would allow them to shut down everything else and keep only HEVC, and then use the bitrate savings of HEVC from FHD SDR content to give subscribers more UHD channels.

I mean, they've already screwed us over by marrying their cards to their decoder boxes (and making Common Interface worthless in the process), the ability to periodically "refresh" hardware is the silver lining of that. But nope: penny-pinching, accountants, focus on the next quarter etc etc, they'd rather bleed subscribers to OTT and Streaming every year than look beyond the next quarter. The only premium broadcasters who have a reason to broadcast H.264 today are those moving UHD customers to OTT. But the ones trying to make UHD happen on broadcast, if they were forward-looking, they'd already be giving subscribers free UHD VVC boxes when renewing, but I know, I'm dreaming, but still, free UHD HEVC decoder boxes is realistic.

About FTA, 2 UHD channels per 30 FHD channels will remain the name of the game until ECM comes in the next "transition" (at least a decade from now), because again, good luck telling people they need to get FTA receiver boxes for their still-new UHD TVs.

Last edited by kurkosdr; 19th August 2024 at 02:17.
kurkosdr is offline   Reply With Quote
Old 19th August 2024, 06:39   #14  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,100
Quote:
Originally Posted by kurkosdr View Post
Wait a minute... is there another bitrate tax from moving from interlaced (and 25p encoded as MBAFF in interlaced) to 50p? If so, how much is the 50p tax?
There sure is. 25i can be safely encoded in around 7-12 Mbits (and the bandwidth is shifted around according to how "important" an event is by a department called "technology"). This is because a field is literally just 1920x540 and you have two fields (even and odd) one with the very same image and one with the image immediately after. For things like sports and news, those are truly two different fields and they're bobbed to 50p by the decoder or by the TV by filling the "void" (i.e the gap between one and the other) with some kind of interpolation. It used to be a simple cubic interpolation in the early hardware LCD TV days but decoders got smarter and the image doesn't "jump up and down" any longer when bobbed. For movies and TV series (generally 23,976 with 4% speed up + pitch adjustment applied to get 25p) those two fields are exactly the same as they're encoded as progressive and flagged as interlaced. Unlike MPEG-2 where those would be encoded very inefficiently *coff coff damn SD channels coff coff* H.264 with MBAFF recognises that they're progressive and encodes them very efficiently. TVs nowadays also recognise that they're progressive and don't bob them, thus preventing useless processing and the unnecessary introduction of aliasing, however bad things could happen if you have like a ticker interlaced displaying a message. Anyway that's beyond the point. The point is that to have a truly 50p stream you would need 1920x1080 with 50 frames per second which is very different from 1920x540 fields, so you need much more bandwidth. I'd say 15 Mbits in a live hardware encoder, hence why I said that for a UHD HDR HLG 50p 10bit channel in H.265 you would ideally need 25 Mbits and you can't possibly get any lower than 18 Mbits without really pushing it (i.e before even customers start complaining).


p.s about replacing decoders (boxes), if it was for me, I would have gifted a Sky Q box to everyone, got rid of the dark gray SD decoder, the white FULL HD one and the black My Sky one to move people over to H.265. Then I would have closed all the SD channels, implemented UHD downscaling on the decoder side and only really kept the necessary bunch of FULL HD with the UHD ones showing different content, instead of having the same content on three different versions of Sky Cinema playing like we have now for three different channels for four different decoders. Unfortunately, my saying is worth nothing, I'm just an encoder who "gets things done" but I have no say on how those things go. I think someone did this exercise once, saw that the cost was too high and just forfeit.

Last edited by FranceBB; 19th August 2024 at 06:43.
FranceBB is offline   Reply With Quote
Old 19th August 2024, 07:32   #15  |  Link
rwill
Registered User
 
Join Date: Dec 2013
Location: Berlin, Germany
Posts: 403
Quote:
Originally Posted by FranceBB View Post
For movies and TV series (generally 23,976 with 4% speed up + pitch adjustment applied to get 25p) those two fields are exactly the same as they're encoded as progressive and flagged as interlaced. Unlike MPEG-2 where those would be encoded very inefficiently *coff coff damn SD channels coff coff* H.264 with MBAFF recognises that they're progressive and encodes them very efficiently.
Mpeg-2 supports Frame/Field coding on a Macroblock level as well if pictures are coded in Frame Structure. Not Mpeg-2's problem if some cheap hardware encoder does not support these modes when set to interlaced.
__________________
My github...
rwill is offline   Reply With Quote
Old 19th August 2024, 15:42   #16  |  Link
kurkosdr
Registered User
 
Join Date: Aug 2009
Posts: 385
Quote:
Originally Posted by FranceBB View Post
There sure is. 25i can be safely encoded in around 7-12 Mbits (and the bandwidth is shifted around according to how "important" an event is by a department called "technology").
Yes, I know how statistical multiplexing works and what interlaced is, and the terms "HDR tax" and "50p tax" were obviously humorous (the government isn't coming to take some of your bitrate).

Let me rephrase the question:
- What bitrate range do you consider acceptable for HEVC SDR FHD 25i?
- What bitrate range do you consider acceptable for HEVC SDR FHD 50p?
(with the source material having been shot in native 50p)

Last edited by kurkosdr; 19th August 2024 at 16:25.
kurkosdr is offline   Reply With Quote
Old 19th August 2024, 22:25   #17  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,100
Quote:
Originally Posted by rwill View Post
Mpeg-2 supports Frame/Field coding on a Macroblock level as well if pictures are coded in Frame Structure. Not Mpeg-2's problem if some cheap hardware encoder does not support these modes when set to interlaced.
Wait, it does? That's a very nice surprise!
On the other hand, given that pretty much no one is developing new SDI MPEG-2 hardware encoders and that no business would justify the expense of replacing the already functioning ones, I guess we're left with what we have. Anyway, this is a very nice surprise.

Quote:
Originally Posted by kurkosdr View Post
the terms "HDR tax" and "50p tax" were obviously humorous (the government isn't coming to take some of your bitrate).
Dunno, with Kier Starmer around anything is possible XD

Quote:
Originally Posted by kurkosdr View Post
Let me rephrase the question:
- What bitrate range do you consider acceptable for HEVC SDR FHD 25i?
- What bitrate range do you consider acceptable for HEVC SDR FHD 50p?
(with the source material having been shot in native 50p)
For H.264:
FULL HD 25i 12 Mbits
FULL HD 50p 15 Mbits

For H.265:
FULL HD 25i 8 Mbits
FULL HD 50p 9 Mbits

H.265 can generally encode contents 35% more efficiently than H.264 for progressive outputs. Unfortunately, the same isn't true for interlaced contents as most encoders never really focused on interlaced stuff and as result its efficiency is slightly impaired. Keep in mind that H.266 doesn't even support interlaced encoding at all, so...

p.s all those refer to live hardware encoding, obviously software offline encoding would achieve far better results at lower bitrates.

Last edited by FranceBB; 19th August 2024 at 22:41.
FranceBB is offline   Reply With Quote
Old 9th September 2024, 09:03   #18  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 182
I'd say if you compare the equivalent resolutions (i.e. half the height for 50p) the 50p will be very close if not better.
Also worth noting there's no MBAFF support in HEVC. The interlaced support is just separated fields encoded like a normal sequence each with SEI denoting the field order.
Z2697 is offline   Reply With Quote
Old 13th November 2024, 14:39   #19  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 805
ffmpeg.exe -y -i "input.mp4" -f yuv4mpegpipe -vf scale=1920:1080:in_range=full:_out_range=full,format=yuv420p10le -frames:v 100 -strict -1 111.y4m
EncoderApp_ECM.exe --SummaryVerboseness -c "encoder_randomaccess_ecm.cfg" --InputFile=111.y4m --BitstreamFile=117.vvc --SourceWidth=1920 --SourceHeight=1080 --FrameRate=30000/1001 --InputBitDepth=10 --InternalBitDepth=0 --OutputBitDepth=10 --MSBExtendedBitDepth=10 --InputChromaFormat=420 --ChromaFormatIDC=420 --ConformanceWindowMode=0 --FramesToBeEncoded=100 --MatrixCoefficients=1 --InputColorPrimaries=-1 --LMCSSignalType=0 --Level=5.1 --BDPCM=1 --Tier=main --HashME=1 --IBC=1 --MaxCUWidth=16 --MaxCUHeight=16 --CTUSize=32 --MaxBTLumaISlice=32 --MaxBTChromaISlice=32 --MaxBTNonISlice=32 --MaxTTLumaISlice=32 --MaxTTChromaISlice=32 --MaxTTNonISlice=32 --Log2MaxTbSize=5 --ColorTransform=0 --VideoFullRange=1 --InputSampleRange=1 --AspectRatioInfoPresent=1 --ChromaLocInfoPresent=1 --RCCpbSize=2000 --RateControl=1 --TargetBitrate=6000000 --IntraPeriod=256 --RCCpbSaturation=0
VVCSoftware: ECM Encoder Version 14.1-c917037 (VTM-10.0) [Windows][GCC 11.5.0][64 bit] [SIMD=AVX2]
https://www.sendspace.com/file/jtfshj
Jamaika is offline   Reply With Quote
Reply

Tags
ecm

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 10:32.


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