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 17th March 2021, 13:20   #8041  |  Link
Barough
Registered User
 
Barough's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 483
x265 v3.5+8-57e817329 (32 & 64-bit 8/10/12bit Multilib Windows Binaries) (GCC 10.2.0)
Code:
https://bitbucket.org/multicoreware/x265_git/commits/branch/master
Barough is offline   Reply With Quote
Old 17th March 2021, 18:20   #8042  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
And the 3.5 release notes are in github. With some minor formatting fixes:


Version 3.5
===========

Release date - 16th March, 2021.

New feature
-----------
1. Real-time VBV for ABR (Average BitRate) encodes in --pass 2 using option '--vbv-live-multi-pass': Improves VBV compliance with no significant impact on coding efficiency.

Enhancements to existing features
---------------------------------
1. Improved hist-based scene cut algorithm: Reduces false positives by leveraging motion and scene transition info.
2. Support for RADL pictures at IDR scene cuts: Improves coding efficiency with no significant impact on performance.
3. Bidirectional scene cut aware Frame Quantizer Selection: Saves bits than forward masking with no noticeable perceptual quality difference.

API changes
-----------
1. Additions to x265_param structure to support the newly added features and encoder enhancements.
2. New x265_param options option '--min-vbv-fullness' and option '--max-vbv-fullness' to control min and max VBV fullness.

Bug fixes
---------
1. Incorrect VBV lookahead in option '--analysis-load' option '--scale-factor'.
2. Encoder hang when VBV is used with slices.
3. QP spikes in the row-level VBV rate-control when WPP enabled.
4. Encoder crash in option '--abr-ladder'.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 17th March 2021, 18:28   #8043  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
I'm curious about "2. Support for RADL pictures at IDR scene cuts: Improves coding efficiency with no significant impact on performance."

Has anyone tested with this? I found some value in --radl with fixed-GOP CBR encoding some years back, but haven't played with it much since. The description doesn't sound any different than what it was originally released in 2.7.

Although I see in ReadtheDocs that its use in variable GOP encoding has been added.
--radl <integer>
Number of RADL pictures allowed infront of IDR. Requires closed gop interval. If enabled for fixed keyframe interval, inserts RADL at every IDR. If enabled for closed gop interval, in case of --hist-scenecut inserts RADL at every hard scenecut whereas for the --scenecut, inserts RADL at every scenecut. Recommended value is 2-3. Default 0 (disabled).

**Range of values: Between 0 and –bframes
I had not theorized that RADL would be of general benefit at hard scene cuts before. Anyone have any experience/data on this front?


P.S. MultiCoreWare, remember to update the Release Notes on ReadTheDocs! It looks like all the new parameters have already been added.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 17th March 2021, 18:30   #8044  |  Link
vpupkind
Registered User
 
Join Date: Jul 2007
Posts: 62
Quote:
Originally Posted by ghostshadow View Post
Hello, I have a problem with my settings since version 3.4 + 26 of x265 (I am currently in 3.5_RC2, windows 10 64bit, PC Ryzen 3900x).
My concern is in increasing my Avg QP, I am almost always above 24, whereas before with version 3.4 + 20 I managed to have my Avg QP below 20.
here are the parameters used for the3.5_RC2 : --scenecut-aware-qp 3 --masking-strength 500,2,0,200,-1,-1 **** I also tested: --scenecut-aware-qp 1 --masking-strength 300,2,2 *** --scenecut-aware-qp 3 --masking-strength 500,5,6.5,100,-1,-1
for the rest of the parameters : --rd 6 --rskip 2 --deblock -3:-3 --cutree --ctu 64 --min-cu-size 8 --bframes 4 --b-adapt 2 --rc-lookahead 60 --ref 4 --limit-refs 2 --merange 57 --subme 7 --aq-mode 4 --aq-strength 0.70 --me 3 --psy-rd 2.10 --psy-rdoq 1.35 --gop-lookahead 54
I tested by increasing my --bframes and reducing my --gop-lookahead, it is a little better but nothing more.
In 3.4 + 20 I had this in parameters: --scenecut-aware-qp --scenecut-window 500 --qp-delta-ref 6 --qp-delta-nonref 7 and my QP was impeccable
Thank you for your help
Have you tried using just --scenecut-aware-qp 3 --masking-strength 500,-1,-1 ?

Also, what happens to quality?
vpupkind is offline   Reply With Quote
Old 17th March 2021, 21:12   #8045  |  Link
ghostshadow
Registered User
 
Join Date: Jan 2020
Posts: 34
Quote:
Originally Posted by vpupkind View Post
Have you tried using just --scenecut-aware-qp 3 --masking-strength 500,-1,-1 ?

Also, what happens to quality?
The quality is very good on my zidoo. But also before.
I don't think I tested the --scenecut-aware-qp 3 with only fwdWindow, fwdRefQPDelta and fwdNonRefQPDelta.
Because in this case the much to be in --scenecut-aware-qp 1? No ?
ghostshadow is offline   Reply With Quote
Old 18th March 2021, 12:43   #8046  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,781
New upload: x265 3.5+8-57e817329

Bugs not yet fixed:
  • NASM 2.15.05 multi-line macro warnings (reported August 2020)
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 18th March 2021 at 12:49.
LigH is offline   Reply With Quote
Old 18th March 2021, 22:01   #8047  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
Quote:
Originally Posted by LigH View Post


Quote:
Bugs not yet fixed:
  • NASM 2.15.05 multi-line macro warnings (reported August 2020)
Can't you somehow force MABS to use an older version of nasm?
filler56789 is offline   Reply With Quote
Old 19th March 2021, 08:19   #8048  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,781
I see no reason to downgrade. Despite 9 MB of warnings scrolling through, it still works correctly. MABS wants to keep MSYS2 up-to-date, that's sensible. A fix similar to the one in x264 has been proposed to the x265 team but got denied. As a workaround, I wonder if there is an easy way to disable legacy warnings for NASM by adding the CLI parameter mentioned in the warning.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 19th March 2021, 16:33   #8049  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,580
Quote:
Originally Posted by LigH View Post
x265 3.5+8-57e817329
The number after "+", i.e. +8, is the number of applied patches?
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 19th March 2021, 17:18   #8050  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
Quote:
Originally Posted by tormento View Post
The number after "+", i.e. +8, is the number of applied patches?
I think it's the number of commits in that particular release branch since the initial release.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 22nd March 2021, 09:34   #8051  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,781
What Boulder said.

IIRC, a specific commit gets the tag "version 3.5" assigned, which may happen "belated" (does not need to be the tip of the branch while assigning).
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 22nd March 2021, 22:37   #8052  |  Link
ShortKatz
Registered User
 
Join Date: Aug 2018
Location: Germany
Posts: 119
Quote:
Originally Posted by LigH View Post
Bugs not yet fixed:
  • NASM 2.15.05 multi-line macro warnings (reported August 2020)
Yes, this is a bit annoying. I submitted a patch for this. But they didn't like, even though it was exactly the same which was done for x264.
ShortKatz is offline   Reply With Quote
Old 28th March 2021, 17:49   #8053  |  Link
Barough
Registered User
 
Barough's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 483
x265 v3.5+9-bf91444e0 (32 & 64-bit 8/10/12bit Multilib Windows Binaries) (GCC 10.2.0)
Code:
https://bitbucket.org/multicoreware/x265_git/commits/branch/master
Barough is offline   Reply With Quote
Old 30th March 2021, 15:17   #8054  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,580
Quote:
Originally Posted by LigH View Post
Is it even measurable when the core routines are all assembler optimized already?
In the spare time, I did some tests.

HEVC encoder version 3.5+20-4c4aee0bc [DJATOM's Mod] - SandyBridge build: 4.15 fps

HEVC encoder version 3.5+20-4c4aee0bc [DJATOM's Mod] - generic build: 3.51 fps

HEVC encoder version 3.5+9+14-6c69ed37d [Mod by Patman] - generic build: 3.76 fps

As you can see, there is some gain.

------------------------- System Environment -------------------------

StaxRip : 2.3.0
Windows : Windows 10 Enterprise 2009
Language : Italian (Italy)
CPU : Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
GPU : NVIDIA GeForce GTX 1060 3GB, Intel(R) HD Graphics 3000

------------------------- Source Script Info -------------------------

Width : 1440
Height : 1080
Frames : 6984
Time : 04:51.291
Framerate : 23.976023 (24000/1001)
Format : YUV420P8

--------------------------- Video encoding ---------------------------

D:\Eseguibili\Media\StaxRip\Apps\Encoders\x265\x265.exe --crf 22 --preset slow --output-depth 10 --colorprim bt709 --colormatrix bt709 --transfer bt709 --range limited --input-depth 16 --dither --output "F:\In\4_02 Zack Snyder's Justice League\Justice_0_temp\Justice_0_out.hevc" "F:\In\4_02 Zack Snyder's Justice League\Justice_0_temp\Justice_0.avs"
__________________
@turment on Telegram

Last edited by tormento; 30th March 2021 at 15:20.
tormento is offline   Reply With Quote
Old 31st March 2021, 10:37   #8055  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
Quote:
Originally Posted by tormento View Post
In the spare time, I did some tests.

HEVC encoder version 3.5+20-4c4aee0bc [DJATOM's Mod] - SandyBridge build: 4.15 fps

HEVC encoder version 3.5+20-4c4aee0bc [DJATOM's Mod] - generic build: 3.51 fps

HEVC encoder version 3.5+9+14-6c69ed37d [Mod by Patman] - generic build: 3.76 fps
Btw. are there any Zen+/Zen2 optimized builds, if any at all?
LeXXuz is offline   Reply With Quote
Old 31st March 2021, 11:12   #8056  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
Yes, I'm also using zen2 build.
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070
DJATOM is offline   Reply With Quote
Old 31st March 2021, 16:45   #8057  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by DJATOM View Post
Yes, I'm also using zen2 build.
Someone who is good at such things could do us all a big favor by having a page of x265 binaries optimized for common cpu architectures.

That big a perf gain as reported above is surprising. And suggests that profile guided optimization may also yield some further perf benefits.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 31st March 2021, 19:06   #8058  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
Quote:
Originally Posted by benwaggoner View Post
Someone who is good at such things could do us all a big favor by having a page of x265 binaries optimized for common cpu architectures.

That big a perf gain as reported above is surprising. And suggests that profile guided optimization may also yield some further perf benefits.
Second that. Even a small percentage in performance increase would be great and really pay off for bigger projects.

I'm a complete noob when it comes to compiling and would love to have an optimized build for my 39x0 Ryzen machines.
LeXXuz is offline   Reply With Quote
Old 31st March 2021, 20:07   #8059  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
You can grab those optimized builds from my repo: https://github.com/DJATOM/x265-aMod/...s/tag/3.5%2B20
They are all in the 7z archive, since it's easier to upload stuff to github with single file.
Zen3 flags aren't present in gcc10 (but that available with gcc11), so no such build for now. I'll consider doing it when will buy 5950x.

PS: cpu-specific builds are 10-bits only, while generic is multilib.
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070

Last edited by DJATOM; 31st March 2021 at 21:43.
DJATOM is offline   Reply With Quote
Old 31st March 2021, 20:27   #8060  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,580
Quote:
Originally Posted by DJATOM View Post
You can grab those optimized builds from my repo
Thanks for your work, that I appreciate with x264 too.

I am always wondering why, on modern computers, you and others builders keep on crunching x265.exe with upx
__________________
@turment on Telegram
tormento 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 17:54.


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