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 20th August 2020, 06:22   #7761  |  Link
BobbyBoberton
Registered User
 
Join Date: Jul 2018
Posts: 24
Quote:
Originally Posted by K.i.N.G View Post
Lower rskip values actually improved the results (at least with this issue/artifact).

Setting --aq-mode 1 also helps quite a bit!

So now I'm testing with aq-mode 1, rskip 2 with rskip-edge-threshold 0.03 and re-enabled strong-intra-smoothing.

So far its looking promessing... Thank you for these suggestions!
I have several problematic sources to re-encode and that's going to take a few weeks(!). So, it will take quite some time before I can tell for sure that it fixed the issue, but its looking good so far.
I find rskip 2 with hevc-aq mode enabled and rskip-edge-skip-threshold 5 to give very good results for me for both SDR and HDR content.

Just my experience
BobbyBoberton is offline   Reply With Quote
Old 20th August 2020, 07:26   #7762  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
Quote:
Originally Posted by fauxreaper View Post
All that remains seems to be the mailing list: x265-devel@videolan.org
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 20th August 2020, 07:31   #7763  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
Quote:
Originally Posted by LigH View Post
All that remains seems to be the mailing list: x265-devel@videolan.org
Easy to get rid of the silly users reporting errors by not using an issue tracker
__________________
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 20th August 2020, 09:46   #7764  |  Link
jlpsvk
Registered User
 
Join Date: Dec 2014
Posts: 240
Quote:
Originally Posted by onekmilesbehind View Post
@jlpsvk have you tried using patman's 3.4+6 build from 5/30? HDR10+ was still working for me with that using the JSON sidecar file. At least if it works there, that gives you an idea of where things may have broken.
will give it a try. but it's not a problem, that hdr10+ encoding is not working... it just does not throw out the same number of frames, as source..
__________________
AMD Ryzen 9 5950X, 32GB DDR4-3200 CL16, RTX 3060, 2TB NVMe PCIE4.0, NAS with 8x16TB HDD
jlpsvk is offline   Reply With Quote
Old 20th August 2020, 10:42   #7765  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
Following a recent discussion I had with someone:

Is it still recommended to crop/resize videos to a mod-16 resolution?

I remember this was always recommended long time ago with MPEG2/MPEG4-ASP encoders.
I know 1080p isn't mod-16 either but after cropping I still either over- or undercrop to get a mod-16 resolution. Someone told me that wouldn't be necessary with x.265 and even x.264 anymore as long as it is mod-2 at least.
LeXXuz is offline   Reply With Quote
Old 20th August 2020, 12:14   #7766  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
Vintage graphic cards used to suffer some performance loss when the output of the video player did not match some memory address boundaries. This era should be over.

Regarding encoding, it doesn't matter so much anymore. A modulo 2 may be necessary due to Chroma Subsampling 4:2:0. A modulo 4 is possibly a recommendable target regarding performance (related to partitions). But modern encoders and video formats allow encoding to dimensions not fitting macroblock (or coding unit) boundaries by encoding the video at the next larger boundary, repeating or mirroring some content, and carrying a crop rectangle telling the decoder to omit the rest. This may typically happen for 1080 encodes being stored with a height of 1088 and being cropped back to 1080 during playback, automatically.

PS: ITU standard = theory documents in upper case with dot (H.264), encoder implementation = practical software in lower case without dot (x264).
__________________

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

Last edited by LigH; 20th August 2020 at 12:19.
LigH is offline   Reply With Quote
Old 20th August 2020, 16:36   #7767  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
Thanks for that explanation LigH

So all left to worry about may be some of my Avisynth filters.
LeXXuz is offline   Reply With Quote
Old 21st August 2020, 02:40   #7768  |  Link
Magik Mark
Registered User
 
Join Date: Dec 2014
Posts: 666
Quote:
Originally Posted by Boulder View Post
Did you increase the maximum cache size? When I switched back to Avisynth+, I noticed that I had to increase it to over 10GB for UHD things, otherwise everything would just stall. I think I now have it at 16GB just in case. Also the new caching method in Avs+ 3.6.1 helped me.
Hi!

How do you increase the cache size?
Is there a table or formula in order to determine the optimum size? I do 1080p and 2160p

Thanks
__________________
Asus ProArt Z790 - 13th Gen Intel i9 - RTX 3080 - DDR5 64GB Predator - LG OLED C9 - Yamaha A3030 - Windows 11 x64 - PotPlayerr - Lav - MadVR
Magik Mark is offline   Reply With Quote
Old 21st August 2020, 05:17   #7769  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
I use these lines to setup the cache:
SetMemoryMax(20480)
SetCacheMode(1)

To avoid having to put them in every script, I have them saved in the plugins folder as an .avsi file so it's autoloaded whenever Avs+ is used.
I don't think there is a special formula, the required amount depends on your script and the resolution. 20GB should be more than enough, it's just a safe maximum value which will never be exceeded in my use.
__________________
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 21st August 2020, 05:39   #7770  |  Link
Magik Mark
Registered User
 
Join Date: Dec 2014
Posts: 666
Quote:
Originally Posted by Boulder View Post
I use these lines to setup the cache:
SetMemoryMax(20480)
SetCacheMode(1)

To avoid having to put them in every script, I have them saved in the plugins folder as an .avsi file so it's autoloaded whenever Avs+ is used.
I don't think there is a special formula, the required amount depends on your script and the resolution. 20GB should be more than enough, it's just a safe maximum value which will never be exceeded in my use.
I use StaxRIP. Do you happen to know how this is implemented?
__________________
Asus ProArt Z790 - 13th Gen Intel i9 - RTX 3080 - DDR5 64GB Predator - LG OLED C9 - Yamaha A3030 - Windows 11 x64 - PotPlayerr - Lav - MadVR
Magik Mark is offline   Reply With Quote
Old 21st August 2020, 06:57   #7771  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
It's probably using the Avisynth+ default values. If the program uses a standard Avs+ installation, you can save the avsi file to its plugins folder and it's autoloaded from there. The path is usually C:\Program Files\Avisynth+\plugins64.
__________________
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 21st August 2020, 08:38   #7772  |  Link
Magik Mark
Registered User
 
Join Date: Dec 2014
Posts: 666
Quote:
Originally Posted by Boulder View Post
It's probably using the Avisynth+ default values. If the program uses a standard Avs+ installation, you can save the avsi file to its plugins folder and it's autoloaded from there. The path is usually C:\Program Files\Avisynth+\plugins64.
Alright then will give it a try.

What file name shall I use?

Sent from my SM-G988B using Tapatalk
__________________
Asus ProArt Z790 - 13th Gen Intel i9 - RTX 3080 - DDR5 64GB Predator - LG OLED C9 - Yamaha A3030 - Windows 11 x64 - PotPlayerr - Lav - MadVR
Magik Mark is offline   Reply With Quote
Old 21st August 2020, 10:30   #7773  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
Doesn't matter much. AviSynth+ will try to load all DLL and AVSI files from there. So, how about: defaults.avsi or similar...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 21st August 2020, 11:02   #7774  |  Link
Magik Mark
Registered User
 
Join Date: Dec 2014
Posts: 666
Thanks a lot!

Will experiment soon

Sent from my SM-G988B using Tapatalk
__________________
Asus ProArt Z790 - 13th Gen Intel i9 - RTX 3080 - DDR5 64GB Predator - LG OLED C9 - Yamaha A3030 - Windows 11 x64 - PotPlayerr - Lav - MadVR
Magik Mark is offline   Reply With Quote
Old 22nd August 2020, 11:18   #7775  |  Link
Magik Mark
Registered User
 
Join Date: Dec 2014
Posts: 666
Whats the difference between hevc-aq and aq-mode? Do I have to turn off one of them when encoding?

Which one is better to use?
__________________
Asus ProArt Z790 - 13th Gen Intel i9 - RTX 3080 - DDR5 64GB Predator - LG OLED C9 - Yamaha A3030 - Windows 11 x64 - PotPlayerr - Lav - MadVR
Magik Mark is offline   Reply With Quote
Old 23rd August 2020, 14:54   #7776  |  Link
jlpsvk
Registered User
 
Join Date: Dec 2014
Posts: 240
Quote:
Originally Posted by onekmilesbehind View Post
@jlpsvk have you tried using patman's 3.4+6 build from 5/30? HDR10+ was still working for me with that using the JSON sidecar file. At least if it works there, that gives you an idea of where things may have broken.
no go... the result still the same...

source has 171176 frames, encode has 171171 frames...

without HDR10+ metadata, encode has 171176 frames...
__________________
AMD Ryzen 9 5950X, 32GB DDR4-3200 CL16, RTX 3060, 2TB NVMe PCIE4.0, NAS with 8x16TB HDD
jlpsvk is offline   Reply With Quote
Old 23rd August 2020, 15:21   #7777  |  Link
Greenhorn
Registered User
 
Join Date: Apr 2018
Posts: 61
Quote:
Originally Posted by Magik Mark View Post
Whats the difference between hevc-aq and aq-mode? Do I have to turn off one of them when encoding?

Which one is better to use?
hevc-aq, confusingly, is just another mode of AQ (adaptive quantization) that gets its own option instead of being added to the same list as the others. There's a even third option, aq-motion, which also gets its own option.

General consensus seems to be that hevc-aq and aq-motion are both sort of experimental features. I know there's at least one user here who really like hevc-aq, though. I'd just note that in CRF mode, hevc-aq will lower bitrates really drastically-- enough to affect visual quality in my experience. It's possible still more efficient than the other aq-modes if you lower your CRF to compensate, but just don't set blindly, is what I guess I'm saying.
Greenhorn is offline   Reply With Quote
Old 24th August 2020, 06:57   #7778  |  Link
charliebaby
Registered User
 
charliebaby's Avatar
 
Join Date: Jun 2020
Posts: 37
X265 3.4+15-g45f1
VS 2019 GCC 10.2
http://www.mediafire.com/file/ho3b7e....4+15.rar/file
__________________
charliebaby is offline   Reply With Quote
Old 24th August 2020, 18:32   #7779  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
Quote:
Originally Posted by Greenhorn View Post
hevc-aq, confusingly, is just another mode of AQ (adaptive quantization) that gets its own option instead of being added to the same list as the others. There's a even third option, aq-motion, which also gets its own option.
AQ needs some refactoring, for sure!
aq-mode 3=2 with low luma bias. hevc-aq is really aq-mode 5, and should map to that.

I'd suggest some ala:
  • --aq-method for 0, 1, 2, 4, and hevc-aq mapping to 0-4.
  • A seperate --aq-dark so we could apply the low luma offset to any method.
  • And ideally an --aq-dark-strength to control that offset.

Quote:
General consensus seems to be that hevc-aq and aq-motion are both sort of experimental features.
Aq-motion is a lot more experimental than hevc-aq, and I've not heard anyone suggest it'd be appropriate to have on by default. HEVC-AQ is a lot more mature at this point, althogh newer.

The concept of having motion impact AQ is quite straightforward and of obvious benefit, but getting an actual psycho-visually tuned algorithm implemented is...complex. Especially since other things in x265 are also responding to motion and need to be considered.

Quote:
I know there's at least one user here who really like hevc-aq, though. I'd just note that in CRF mode, hevc-aq will lower bitrates really drastically-- enough to affect visual quality in my experience. It's possible still more efficient than the other aq-modes if you lower your CRF to compensate, but just don't set blindly, is what I guess I'm saying.
Given aq's influence on ABR, testing aq parameters at a given CRF isn't efficient. I strongly recommend testing with 2-pass VBR so we can really see bang for the bit. Once the most efficient aq parameters are figured out for the given scenario, then the right CRF can be determined.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 25th August 2020, 09:38   #7780  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
I could use some advice to reduce banding on my x265 encodes.

I've noticed on many newer movies (with little to no noise) banding appears on my x265 encodes in difference to the source H.264 video from Blu-ray.

I expected encodes with --crf 16 --aq-mode 3 --no-sao --output-depth 10 on the "slower" preset to be more transparent regarding the source video.

However, banding occurs especially in dark backgrounds like underwater scenes, night skies and such.

My intend is to do this without any additional AVS filters to leave the source video as 'untouched' as possible.

From your experience are there any tweaks I can use to force x265 to (obviously) spend more bits into these scenes?
LeXXuz 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 14:53.


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