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 25th October 2019, 13:18   #61  |  Link
redbtn
Registered User
 
redbtn's Avatar
 
Join Date: Jan 2019
Location: Russia
Posts: 105
After all, I set aq-mode 0 and it almost solves the problem. But i don't know how it affects to encode quality in general.

Quote:
Originally Posted by benwaggoner View Post
Level 5.1 has maxrate/bufsize limits of 40000, not 160000.
Level 5.1 High has 160000, --high-tier is a default value

Quote:
Originally Posted by benwaggoner View Post
It appears you've not set CRF OR bitrate, which means it's being encoded at the default CRF, which is quite high. If you're aiming for excellent quality, I'd start with 18 and iterate from there.
I use CRF 20 (21-23mbps) for UHD and CRF 12-14 (17-18mbps) for FHD.

Quote:
Originally Posted by benwaggoner View Post
--hdr-opt will tweak the chroma QPs better than just setting the offsets. And if you didn't set HDR, you didn't get HDR metadata, and the video is likely playing back as if it had SDR values, which would look terrible!
--hdr-opt is definitely necessary, but --cbqpoffs -3 --crqpoffs -3 fixes color issues a little. I don't know why it needed with HDR.

Quote:
Originally Posted by benwaggoner View Post
And don't set --chromaloc unless you've actually changed the chroma location. If you DID change that, let me know what tool you used to do it!
I didn't change chromaloc, but UHD requires Chroma subsampling : 4:2:0 (Type 2), so i add flag --chromaloc 2

Quote:
Originally Posted by benwaggoner View Post
Also, where did you get your MaxCLL and MaxFALL values? A MaxFALL of 900 suggest at least one blindingly bright frame, and no consumer TV available can actually display a MaxCLL of 3200 nits. Not that content doesn't get made that way sometimes, but I'd definitely investigate the content to make sure something didn't go horribly wrong.
There is mediainfo of my sample below (it is a general movie, nothing special):

Quote:
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0050 cd/m2, max: 4000 cd/m2
Maximum Content Light Level : 3241 cd/m2
Maximum Frame-Average Light Level : 902 cd/m2

Last edited by redbtn; 25th October 2019 at 23:57.
redbtn is offline   Reply With Quote
Old 26th October 2019, 03:02   #62  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,986
Turning off AQ is fine sometimes, and in fact is done in the grain preset in order to "[restrict] algorithms that vary the quantization parameter within and across frames":

https://x265.readthedocs.io/en/defau...tml#film-grain
Blue_MiSfit is offline   Reply With Quote
Old 26th October 2019, 09:12   #63  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,717
Quote:
Originally Posted by Blue_MiSfit View Post
Turning off AQ is fine sometimes, and in fact is done in the grain preset in order to "[restrict] algorithms that vary the quantization parameter within and across frames":

https://x265.readthedocs.io/en/defau...tml#film-grain
It could well be that HDR sources are often better re-encoded without AQ. It is very flat in the eyes of the encoder anyway so the decisions it makes, are most likely very different compared to SDR sources. Needs careful testing, I'd say.
__________________
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 26th October 2019, 20:47   #64  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,986
I leave AQ on for HDR, to be honest. Most of the time that works well. Sometimes it doesn't but I don't do any per-encode tuning (for my work, anyway).
Blue_MiSfit is offline   Reply With Quote
Old 28th October 2019, 08:20   #65  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
Quote:
Originally Posted by Blue_MiSfit View Post
I leave AQ on for HDR, to be honest. Most of the time that works well. Sometimes it doesn't but I don't do any per-encode tuning (for my work, anyway).
If possible, could you give a command line example for FHD and a command line example for UHD (HDR10 and/or HDR10+) ? Thank you !
Nico8583 is offline   Reply With Quote
Old 28th October 2019, 11:53   #66  |  Link
aymanalz
Registered User
 
Join Date: May 2015
Posts: 68
Quote:
Originally Posted by benwaggoner View Post
First, --selective-sao 3 only applies SAO for I and P frames, but delivers almost all the potential quality benefit of SAO with a ~4% speedup. This follows general literature that SAO isn't helpful with bi-prediction.
Wow, thanks for the info. I am getting a huge speed increase by using selective-sao 2 (you might want to edit your post and make it 2, instead of 3). In fact, a lot more than 4%.
aymanalz is offline   Reply With Quote
Old 28th October 2019, 22:31   #67  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,736
I've been meaning to try --aq-mode 4. Since so much of the value from HDR at high resolution comes from strong local contrast, something that preserves edges better could be quite helpful.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 2nd November 2019, 06:56   #68  |  Link
nghiabeo20
Registered User
 
Join Date: Jun 2013
Posts: 32
I use bframe=6. According to the docs, this could shed you 25% of the workload (Am I right?). Is it really worth to keep bframes at 8, if the movie I'm encoding doesn't have so many motion?
nghiabeo20 is offline   Reply With Quote
Old 2nd November 2019, 11:52   #69  |  Link
Tadanobu
Registered User
 
Join Date: Sep 2019
Posts: 37
Best thing is to run a test encode with maximum possible bframes then check the log file so as to determine how many bframes are actually used.
Tadanobu is offline   Reply With Quote
Reply

Tags
parameters, presets, settings, x265

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 05:12.


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