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 9th April 2024, 13:50   #9261  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 574
Quote:
Originally Posted by Boulder View Post
Does the feature work with decoders out of the box, or is it some extension that is not mandatory for compliance?
It's not mandatory as it's SEI.
I don't know of hardware that supports it.

FFmpeg does support it in software, and libplacebo in shaders.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 9th April 2024, 15:01   #9262  |  Link
vadlerg
Registered User
 
Join Date: May 2005
Posts: 15
Quote:
Originally Posted by jpsdr View Post
Made a build of new version of my custom mod. Also add an AVX LLVM version, don't remember who asked for it...
Thanks !
vadlerg is offline   Reply With Quote
Old 10th April 2024, 23:52   #9263  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by quietvoid View Post
No it's not. It's for the H.265 Film grain characteristics SEI message. Or now it's better to reference it as H.274 FGS.
It can be used to generate the expected binary file.
Oh, I haven't heard much about that yet. What's the intended use case?
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 11th April 2024, 00:07   #9264  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 574
Quote:
Originally Posted by benwaggoner View Post
Oh, I haven't heard much about that yet. What's the intended use case?
Film grain synthesis in MPEG codecs. It's been specified for decades and is still barely seeing any use.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 11th April 2024, 00:32   #9265  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by quietvoid View Post
Film grain synthesis in MPEG codecs. It's been specified for decades and is still barely seeing any use.
Oh, the old optional one from HD-DVD? I haven't looked at it in AGES, but I remember it not being very capable.

AVFG1 is a much better FGS implementation.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 11th April 2024, 09:08   #9266  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,782
Sounds like the next more complex model beyond "noise reduction" (--nr-[inter|intra]) in x265, which was more a modelling than a simple reduction too.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 11th April 2024, 12:58   #9267  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
Hey guys, I know most of you saw the screenshots of the 56c/112th and other Intel Xeon monsters CPU I use at work, but you should know that at home I'm still using an old i7 5930K CPU 6c/12th at 3.50GHz which can go up to 4.00GHz.
It served me fairly well over the years, but it's getting older and older and I was thinking about buying a new one.
Unfortunately, nowadays Intel seems to be focused on releasing CPUs with mixed cores only for consumers so much so only Intel Xeons have the good old normal cores, but I'm too broke to afford one.
This means that I'll probably end up buying another consumer CPU (like the Core Ultra or whatever they named them now that they killed the i7-i9 nomenclature) which has Efficiency cores and Performance cores.
I know that the efficiency ones are low powered, low clock and also miss some instruction set support like they don't have full AVX512 support etc while the Performance cores have a higher clock and full instruction set support (SSE, SSE2, SSSE3, SSE4.1, SSE4.2, AVX, AVX2, AVX512). The idea being that the Efficiency cores are supposed to be used for low intensity background activities like checking your email while the Performance cores are supposed to be used for high intensity activities like... encoding I guess.

So, the question is:

assuming I'm on Windows 11 on a new PC and I fire up my good old x265 BAT to encode from an AVS Script.avs as I've always done, what's gonna happen?
Is it only gonna use the Performance cores?
Is it gonna use both the performance and the efficiency cores in a very bad way so that once a frame is split in the various threads I'll end up with the performance cores waiting for the efficiency cores to finish their piece (i.e threads synchronization) and thus they'll impact performances negatively?
Is everything gonna work smartly automagically as it's handled by the OS (Win11) and I don't have to care about it?


Sorry for the various questions, but this is almost definitely gonna impact my choice of what to buy 'cause depending on the answer and given the prices of the Xeon nowadays, I'm flirting with the idea of moving to AMD.

Last edited by FranceBB; 11th April 2024 at 13:00.
FranceBB is offline   Reply With Quote
Old 11th April 2024, 13:13   #9268  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 998
Quote:
Originally Posted by FranceBB View Post
I'm flirting with the idea of moving to AMD.
I have been using AMD's for a lot of years, I still have a 3950X, 5900X, 5950X, and when the 7950X were released I knew I had to get one.

I exclusively use RipBot264, and the 7950X is an encoding beast, BUT, 16C CPU's do have issues with x265 encoding, but due to the "behind the scenes settings" in RipBot, this can be easily overcome.

But then the 13th Gen Intel's came out, so took a big chance and got a 13900KF, I wasn't sure how the different architecture would work, but after some time fiddling around, I'm more than happy with it.

In a head to head encode, the 7950X is just slightly faster...I would think that the 14th Gen Intel's maybe a little faster.

And to just sum up, you could build an Intel system quite a bit cheaper that an AMD, DDR4 vs DDR5, but one thing that IS very important, you WILL need a really good cooling system, as both run really hot, but they are stable as.

PS:- No AVX512 support on the Intel's Hadn't heard of the Core Ultra 'til your post.

https://www.intel.com/content/www/us...-vs-ultra.html
__________________
Long term RipBot264 user.

RipBot264 modded builds..

Last edited by TDS; 11th April 2024 at 13:52.
TDS is offline   Reply With Quote
Old 11th April 2024, 18:07   #9269  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by LigH View Post
Sounds like the next more complex model beyond "noise reduction" (--nr-[inter|intra]) in x265, which was more a modelling than a simple reduction too.
it's about grain reconstruction based on metadata, ala AV1's Film Grain Synthesis. But a very old basic version originally designed for H.264. The only platform that supported it IIRC was HD-DVD, but AFAIK it wasn't ever used on actual discs. People thought it was limited at best back then.

Perhaps coupled with modern de-grain and parameterization technology, maybe?

I think AVFG1 is more likely to be important.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 11th April 2024, 18:09   #9270  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by TDS View Post
PS:- No AVX512 support on the Intel's Hadn't heard of the Core Ultra 'til your post.

https://www.intel.com/content/www/us...-vs-ultra.html
AVX512 hasn't been all that helpful for x265 outside of 4K resolutions at slower presets. It's probably not a big loss.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 11th April 2024, 19:56   #9271  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,420
Quote:
Originally Posted by FranceBB View Post
assuming I'm on Windows 11 on a new PC and I fire up my good old x265 BAT to encode from an AVS Script.avs as I've always done, what's gonna happen?
Is it only gonna use the Performance cores?
Is it gonna use both the performance and the efficiency cores in a very bad way so that once a frame is split in the various threads I'll end up with the performance cores waiting for the efficiency cores to finish their piece (i.e threads synchronization) and thus they'll impact performances negatively?
Is everything gonna work smartly automagically as it's handled by the OS (Win11) and I don't have to care about it?
If it's anything like macOS, the efficiency cores are executed second.

Not using x265, but an example of the core topology is included in this post from 2022. Short answer: if Intel's heterogenous architectured CPUs act the same way in conjunction with the thread scheduler in Linux and/or Windows, just use Prefetch() to target the Performance cores if you don't want them mixing.
qyot27 is offline   Reply With Quote
Old 11th April 2024, 22:18   #9272  |  Link
excellentswordfight
Lost my old account :(
 
Join Date: Jul 2017
Posts: 325
Quote:
Originally Posted by FranceBB View Post
assuming I'm on Windows 11 on a new PC and I fire up my good old x265 BAT to encode from an AVS Script.avs as I've always done, what's gonna happen?
Is it only gonna use the Performance cores?
Is it gonna use both the performance and the efficiency cores in a very bad way so that once a frame is split in the various threads I'll end up with the performance cores waiting for the efficiency cores to finish their piece (i.e threads synchronization) and thus they'll impact performances negatively?
Is everything gonna work smartly automagically as it's handled by the OS (Win11) and I don't have to care about it?
I've been encoding on Intels CPUs pretty since they introduced the hyrid architecture. And yes, that pretty much the case. From a performance perspective everything is pretty much just working, I have played with turning of e-cores etc, but I gain nothing from it, there is a net profit in using the e-cores. And as the e-cores have better performance per watt, in cases were you are power restricted (which is always now days) and can saturate the extra threads you will get more performance of having say 4 e-cores, compared to having 1-2 extra p-cores, or giving existing p-cores more of the power-budget.

With that said, its not all smooth sailing, windows does weird shit with its scheduler. For example, if you minimize the application you are encoding with (this is at least the case when running applications through CMD) that application will no longer use p-cores AT ALL, as windows now treats it has a "background application". This can be enjoying, and even a dealbreaker as it can also be triggered just by running something in fullscreen infront of it. But I actually use it as a feature, cause if I wanna game while encoding i just minize it will free up the p-cores completely.

With that said, for just a straight up encoding machine, if we are talking about consumer CPUs I would just get a 7000-series Ryzen instead given the huge performance/w advantage in this performance class (Intel is actually not that bad in this regards if you limit your CPU at say 125W and below) and there you really dont have to care about any hybrid core stuff. Ignoring downclocking and powerlimits etc, out of the box, 7950X gets 90% of 14900k encoding performance at 1/2 of the power concumption.

Last edited by excellentswordfight; 11th April 2024 at 22:41.
excellentswordfight is offline   Reply With Quote
Old 16th April 2024, 22:49   #9273  |  Link
DMD
Registered User
 
DMD's Avatar
 
Join Date: Jan 2006
Location: Italy
Posts: 260
Quote:
Originally Posted by benwaggoner View Post
AVX512 hasn't been all that helpful for x265 outside of 4K resolutions at slower presets. It's probably not a big loss.
I apologize but maybe that is why in the latest release of Patman86 the avx512 version does not appear?
https://github.com/Patman86/x265-Mod-by-Patman/releases

Thank you
__________________
my PC with Ryzen 7950X
DMD is offline   Reply With Quote
Old 17th April 2024, 12:27   #9274  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,580
Quote:
Originally Posted by benwaggoner View Post
AVX512 hasn't been all that helpful for x265 outside of 4K resolutions at slower presets. It's probably not a big loss.
I'd be curious to see AVX2 vs AVX512 performances of a very noisy source in very slow/placebo preset on modern CPUs.

Unfortunately the choice for Intel is now limited to 11 series and Xeons.

I need to decide if to go with Arrow Lake or Zen 5.

Not having AVX512 could be a big no no, as a lot of plugins and software that I use support that instruction set.

AVX10 for Arrow Lake is a big enigma, as it's not completely confirmed if it will be 10.1 (no AVX512) or 10.2.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 17th April 2024, 17:29   #9275  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,580
A Highly Parallel and Scalable Motion Estimation Algorithm with GPU for HEVC
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old Yesterday, 05:07   #9276  |  Link
rwill
Registered User
 
Join Date: Dec 2013
Posts: 349
"Wer schreibt der bleibt"
rwill is offline   Reply With Quote
Old Yesterday, 06:18   #9277  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 998
Quote:
Originally Posted by rwill View Post
"Wer schreibt der bleibt"
Those who write remain
__________________
Long term RipBot264 user.

RipBot264 modded builds..
TDS is offline   Reply With Quote
Old Yesterday, 15:58   #9278  |  Link
rwill
Registered User
 
Join Date: Dec 2013
Posts: 349
Yeah, but in the context of the linked paper the correct translation is "Publish or Perish".

Like I skipped through it and it seems to be missing BD-Rate graphs. To quote: "The decrease of the average PSNR is less than 1.5%.". This makes the whole approach questionable and up to worthless.

I mean its nice, I did GPU based Motion Fields as a hobby exercise with CUDA in 2007 or 2008. That some guys seriously present some HEVC ME stuff 10 years later with a complete disregard for video coding, well I better don't comment further.
rwill is offline   Reply With Quote
Old Yesterday, 19:38   #9279  |  Link
excellentswordfight
Lost my old account :(
 
Join Date: Jul 2017
Posts: 325
Quote:
Originally Posted by tormento View Post
I'd be curious to see AVX2 vs AVX512 performances of a very noisy source in very slow/placebo preset on modern CPUs.

Unfortunately the choice for Intel is now limited to 11 series and Xeons.

I need to decide if to go with Arrow Lake or Zen 5.

Not having AVX512 could be a big no no, as a lot of plugins and software that I use support that instruction set.

AVX10 for Arrow Lake is a big enigma, as it's not completely confirmed if it will be 10.1 (no AVX512) or 10.2.
I have access to some 4th gen Xeon SP/Sapphire rapids systems (golden cove cores, same as 12th gen Core/Alder lake), when I get some time I can redo some AVX512 tests.

But in the past, I have never gotten better performance with avx512 with x265, the downclocking it triggers have eaten all potential performance gain. But AFAIK the downclocking of AVX512 load have been improved since its introduction, and was less of an issue on consumer desktop models were frequency control is possible. But given what i've seen, i'm pretty sure that running it with AVX512 produces worse performance/watt.

Last edited by excellentswordfight; Yesterday at 19:57.
excellentswordfight is offline   Reply With Quote
Old Yesterday, 20:04   #9280  |  Link
vpupkind
Registered User
 
Join Date: Jul 2007
Posts: 63
Quote:
Originally Posted by benwaggoner View Post
Don't look at the man behind the curtain there!

This feature is in preemptive support for players that can decode HEVC with AVFG1 film grain synthesis metadata. It's essentially the FGS component of AV1 made general, with a fix so that grain size is based on grain size in the content, not display resolution.

I don't think that there is anything out yet that can play such a file. The HEVC will decode, but the FGS metadata will be ignored.
I believe VLC already supports it.
In any case, MCW has an open source library, libfgm, that should be able to both filter and estimate parameters.
vpupkind is offline   Reply With Quote
Reply

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 00:57.


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