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)
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th May 2018, 12:55   #21  |  Link
jd17
Registered User
 
Join Date: Jun 2017
Posts: 89
I agree with excellentswordfight.

--preset slow, --no-sao and a CRF below ~20 is all you need for a transparent UHD-BD encode.

In my experience, --keyint 120 or --keyint 96 (and --min-keyint 1) are good trade-offs between seeking compatibility and bitrate savings.
jd17 is offline   Reply With Quote
Old 18th May 2018, 13:07   #22  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
Thank you both, I'll try that
Nico8583 is offline   Reply With Quote
Old 19th May 2018, 15:20   #23  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
What about these values:

Code:
--colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,0.0050)"
Do you need to pick them from the source characteristics, i.e. are they distinct for every source?
__________________
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 19th May 2018, 22:50   #24  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
The first bit is for anything BT.2020.

However, the --master-display command describe the primaries used, the white point, and the luminance (peek white nits and black level nits) for the mastering display. You would probably only need to change the L(1000000,0.0050) for different sources. I think most of my UHD blurays' metadata uses L(4000,0.0050) or L(1000,0.0050). The example command seems to be setting peek white of the mastering display to 10 million instead of 10 thousand? Isn't 10 thousand the max?
__________________
madVR options explained
Asmodian is offline   Reply With Quote
Old 20th May 2018, 00:34   #25  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,905
If he can take them from his source, it would be better, 'cause my line was just an example of common settings.
FranceBB is offline   Reply With Quote
Old 21st May 2018, 18:28   #26  |  Link
user1085
Registered User
 
Join Date: Apr 2018
Posts: 22
Quote:
Originally Posted by FranceBB View Post
If he can take them from his source, it would be better, 'cause my line was just an example of common settings.
So look for these values with Mediainfo and replace?
user1085 is offline   Reply With Quote
Old 21st May 2018, 23:04   #27  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,905
Yes, check media info, it should provide the original information.
FranceBB is offline   Reply With Quote
Old 22nd May 2018, 04:13   #28  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
What if all the values are not available? For example, The Last Jedi video file has this information:
Code:
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.0020 cd/m2, max: 1000 cd/m2
In fact, the couple of videos I could check had only these values there.
__________________
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 May 2018, 05:01   #29  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
That is all the information. You simply need to look up what "P3" means in terms of:
--master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(1000,0.0020)"
(I believe these values are for P3, with the standard D65 white point)

While the luminance values inform:
--master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(1000,0.0020)"
__________________
madVR options explained
Asmodian is offline   Reply With Quote
Old 22nd May 2018, 06:12   #30  |  Link
user1085
Registered User
 
Join Date: Apr 2018
Posts: 22
Quote:
Originally Posted by Asmodian View Post
That is all the information. You simply need to look up what "P3" means in terms of:
--master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(1000,0.0020)"
(I believe these values are for P3, with the standard D65 white point)

While the luminance values inform:
--master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(1000,0.0020)"
Similar question to poster above, what about the last two values (Maximum Content Light Level & Maximum Frame-Average Light Level). This is from Dark Knight Rises

Code:
Transfer characteristics : PQ 
Matrix coefficients : BT.2020 non-constant 
Original source medium : Blu-ray 
Mastering display color primaries : Display P3 
Mastering display luminance : min: 0.0050 cd/m2, max: 4000 cd/m2 
Maximum Content Light Level : 500 cd/m2 
Maximum Frame-Average Light Level : 200 cd/m2
user1085 is offline   Reply With Quote
Old 22nd May 2018, 06:15   #31  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
Thanks I think I also saw "P2" in some video but I need to make sure since I just made some quick checks.

Regarding the L value, is it OK to use the values directly or do they need to be normalized? The x265 docs say that for L(max=1000, min=0.0001) the parameter would be L(10000000,1). It probably must be calculated as per the docs: "The SEI includes X,Y display primaries for RGB channels and white point (WP) in units of 0.00002 and max,min luminance (L) values in units of 0.0001 candela per meter square" so you need to divide the L value shown by MediaInfo by 0.0001?

EDIT: also, what about the "transfer" value? It's PQ but what's the correct parameter in x265?
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...

Last edited by Boulder; 22nd May 2018 at 06:29.
Boulder is offline   Reply With Quote
Old 22nd May 2018, 19:22   #32  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
You are correct, I see why it looked like 10 million instead of 10 thousand. No decimal points.

Not sure about PQ, I would leave it smpte2084 for HDR but there may be situations where this is incorrect.
__________________
madVR options explained
Asmodian is offline   Reply With Quote
Old 23rd June 2018, 02:06   #33  |  Link
tyler durdan
Registered User
 
Join Date: Apr 2010
Posts: 13
Hi all

I just wanted to resurrect this.
I have a number of UHD rips that I really want to reduce the size
while keeping the video as transparent as possible.

I went through this thread and others but I seem to get lost.
The last encoding I have done was 1080p with Staxrip where I just had CRF @ 18, preset to very slow and tune to film.

That was it, where as now UHD seems alot more complicated
Can someone point me to the right GUI i should be using please and what settings

Thanks
tyler durdan is offline   Reply With Quote
Old 27th June 2018, 19:18   #34  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
Tyler:

The only difference is the visual parameters as suggested above. All you need is copy-paste from #23 and change some numbers according to mediainfo results.
__________________
Projects
x265 - Yuuki-Asuna-mod Download / GitHub
TS - ADTS AAC Splitter | LATM AAC Splitter | BS4K-ASS
Neo AviSynth+ filters - F3KDB | FFT3D | DFTTest | MiniDeen | Temporal Median
MeteorRain is offline   Reply With Quote
Reply


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 03:38.


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