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 10th November 2020, 17:54   #7841  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 245
dv profile 7 is Dual Layer. I need Profile 8.1 Single Layer DV + HDR Support. The newest makeMKV can create this Video Stream from a DV Dual Layer UHD, so i have one Single DV + HDR Videostream.
I search a Tool, that can convert 2 Streams (Video Layer and Dolby Vision Layer) in a Single Layer DV Profile 8.1.
-QfG- is offline   Reply With Quote
Old 10th November 2020, 21:06   #7842  |  Link
jlpsvk
Registered User
 
Join Date: Dec 2014
Posts: 240
Quote:
Originally Posted by -QfG- View Post
dv profile 7 is Dual Layer. I need Profile 8.1 Single Layer DV + HDR Support. The newest makeMKV can create this Video Stream from a DV Dual Layer UHD, so i have one Single DV + HDR Videostream.
I search a Tool, that can convert 2 Streams (Video Layer and Dolby Vision Layer) in a Single Layer DV Profile 8.1.
you want this...

Code:
https://www.makemkv.com/forum/viewtopic.php?f=12&t=18602&p=96282#p96282
__________________
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 11th November 2020, 00:42   #7843  |  Link
agressiv
Registered Loser
 
agressiv's Avatar
 
Join Date: Dec 2004
Posts: 117
Quote:
Originally Posted by -QfG- View Post
dv profile 7 is Dual Layer. I need Profile 8.1 Single Layer DV + HDR Support. The newest makeMKV can create this Video Stream from a DV Dual Layer UHD, so i have one Single DV + HDR Videostream.
I search a Tool, that can convert 2 Streams (Video Layer and Dolby Vision Layer) in a Single Layer DV Profile 8.1.
MakeMKV is doing their own thing by adding the Profile 7 EL on top of a the BL in a "piggyback" fashion, but this is now "officially" supported in Matroska. MKVToolnix is currently unaware of Dolby Vision, but the latest MediaInfo will see it.

If you truly want Profile 8.1, you'll need the RPU extracted as an elementary stream and can use x265.exe to encode it with this guide:

http://x265.org/x265-delivers-dolby-vision-streams/

The MakeMKV guide linked above is good if you just want to remux, but depending on your player - TV's tend to like dual-layer DV and players like NVidia Shield want single layer DV.

Muxing the video - well, let's just say that Dolby's mp4muxer doesn't like to mux encoded x265 Dolby Vision Profile 8.1 streams - it tends to just hang. I would advise using TSMuxeR until MKVToolnix has native support, assuming they handle other DV profiles when support is added. If you can get mp4muxer to work on encoded DV content, I'm all ears on how you got it to work.
agressiv is offline   Reply With Quote
Old 11th November 2020, 07:58   #7844  |  Link
jlpsvk
Registered User
 
Join Date: Dec 2014
Posts: 240
Quote:
Originally Posted by agressiv View Post
MakeMKV is doing their own thing by adding the Profile 7 EL on top of a the BL in a "piggyback" fashion, but this is now "officially" supported in Matroska. MKVToolnix is currently unaware of Dolby Vision, but the latest MediaInfo will see it.

If you truly want Profile 8.1, you'll need the RPU extracted as an elementary stream and can use x265.exe to encode it with this guide:

http://x265.org/x265-delivers-dolby-vision-streams/

The MakeMKV guide linked above is good if you just want to remux, but depending on your player - TV's tend to like dual-layer DV and players like NVidia Shield want single layer DV.

Muxing the video - well, let's just say that Dolby's mp4muxer doesn't like to mux encoded x265 Dolby Vision Profile 8.1 streams - it tends to just hang. I would advise using TSMuxeR until MKVToolnix has native support, assuming they handle other DV profiles when support is added. If you can get mp4muxer to work on encoded DV content, I'm all ears on how you got it to work.
MKVtoolnix 51 is aware of DoVi and preserves metadata...

With the guide o posted, you can encode pure HDR without cropping, the use encoded hevc to combine with EL+RPU to combine into PROFILE 8.1
__________________
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 17th November 2020, 11:10   #7845  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
New upload: x265 3.4+27-g5163c32d7

CLI changes since x265 3.4+14-gd419c7152:
  • Defaults changed from undef to unknown for:
    --overscan
    --colorprim
    --colormatrix
  • New options:
    Code:
       --min-vbv-fullness <double>   Minimum VBV fullness percentage to be maintained. Default 50.00
       --max-vbv-fullness <double>   Maximum VBV fullness percentage to be maintained. Default 80.00
    
       --[no-]vbv-live-multi-pass    Enable realtime VBV in rate control 2 pass.Default disabled
Apparently there is a new commit based on an older branch (+27) which only updates the documentation but skips the latest additions with the "ABR Ladder" (+30)...
__________________

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

Last edited by LigH; 17th November 2020 at 11:27.
LigH is offline   Reply With Quote
Old 18th November 2020, 10:00   #7846  |  Link
ghostshadow
Registered User
 
Join Date: Jan 2020
Posts: 34
Version 3.0

hello, on version 3.0 you have introduced the parameters:
–dolby-vision-profile <integer|float>
and
–dolby-vision-rpu’ File containing Dolby Vision RPU metadata.
Excluding as for:
--dhdr10-info
You do not provide anything to exploit them. Indeed how to extract the Dolby Vision RPU? So these parameters are not usable.
For HDR10 + (--dhdr10-info) a coder had to face a python script to extract the metadata to use the: --dhdr10-info.
So what do we do to exploit the: –dolby-vision-rpu
thank
ghostshadow is offline   Reply With Quote
Old 18th November 2020, 10:52   #7847  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
New upload: x265 3.4+30-g6722fce1f
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 18th November 2020, 18:14   #7848  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by ghostshadow View Post
hello, on version 3.0 you have introduced the parameters:
–dolby-vision-profile <integer|float>
and
–dolby-vision-rpu’ File containing Dolby Vision RPU metadata.
Excluding as for:
--dhdr10-info
You do not provide anything to exploit them. Indeed how to extract the Dolby Vision RPU? So these parameters are not usable.
For HDR10 + (--dhdr10-info) a coder had to face a python script to extract the metadata to use the: --dhdr10-info.
So what do we do to exploit the: –dolby-vision-rpu
thank
Normally one uses software that generates the RPU file, like Dolby's SDK or ColorFront Transkoder. Unless Profile 8.x is targeted, that's coupled with software that creates the non-backwards compatible base layer, and the RPU data is relative to that.

Dolby hasn't really invested in making Dolby Vision a hobbyist-friendly format. Although the support in the iPhone 12 Pro might change that some. But even that uses a new profile that's not widely supported by TVs (HLG + metadata), and doesn't have RPU data compatible with typical DoVi content. Making a DoVi Blu-ray from an iPhone DoVi file requires changing every pixel in the video and generating new dynamic metadata.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 18th November 2020, 22:01   #7849  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,989
Yeah, how would one even do that? Convert the HLG into PQ and do a new analysis pass in Resolve or something, then encode UHD BD compliant Profile 5 or 7 from that?
Blue_MiSfit is offline   Reply With Quote
Old 20th November 2020, 07:58   #7850  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,901
Quote:
Originally Posted by benwaggoner View Post
Dolby hasn't really invested in making Dolby Vision a hobbyist-friendly format. Although the support in the iPhone 12 Pro might change that some. But even that uses a new profile that's not widely supported by TVs (HLG + metadata), and doesn't have RPU data compatible with typical DoVi content. Making a DoVi Blu-ray from an iPhone DoVi file requires changing every pixel in the video and generating new dynamic metadata.
Our of curiosity, how are the new iPhones recording?
I saw the "Dolby Vision" announcement days ago, but it was rather vague. Is it H.265 10bit UHD HDR HLG 60p with metadata? Does it have the FULL HD 10bit additional layer with info to make the 12bit final result? Or perhaps it's still one layer in 8bit? And most importantly, given that most mobile phones have a ridiculously tiny sensor whose stops are low, does all this even make sense? I mean, I read that it can achieve up to 12 stops, but I think that it's not gonna get even close. SDR in BT709 100 nits is 6 stops, if they manage to get 9 stops out of that it would already be a miracle...
FranceBB is offline   Reply With Quote
Old 20th November 2020, 17:12   #7851  |  Link
Stacey Spears
Registered User
 
Join Date: Nov 2009
Location: Sammamish, WA
Posts: 66
Quote:
Originally Posted by Blue_MiSfit View Post
Yeah, how would one even do that? Convert the HLG into PQ and do a new analysis pass in Resolve or something, then encode UHD BD compliant Profile 5 or 7 from that?
UHD BD only supports Profile 7.
__________________
Stacey Spears
Co-Creator, Spears & Munsil Ultra HD Benchmark
Stacey Spears is offline   Reply With Quote
Old 20th November 2020, 17:13   #7852  |  Link
Stacey Spears
Registered User
 
Join Date: Nov 2009
Location: Sammamish, WA
Posts: 66
Quote:
Originally Posted by FranceBB View Post
Our of curiosity, how are the new iPhones recording?
I saw the "Dolby Vision" announcement days ago, but it was rather vague. Is it H.265 10bit UHD HDR HLG 60p with metadata? Does it have the FULL HD 10bit additional layer with info to make the 12bit final result? Or perhaps it's still one layer in 8bit? And most importantly, given that most mobile phones have a ridiculously tiny sensor whose stops are low, does all this even make sense? I mean, I read that it can achieve up to 12 stops, but I think that it's not gonna get even close. SDR in BT709 100 nits is 6 stops, if they manage to get 9 stops out of that it would already be a miracle...
They use Profile 8.3, which is HLG + Dolby's dynamic metadata. If you have an LG C9 or CX, it will play in Dolby Vision. If you have an older LG, then it plays as HLG.

Profile 5 and 8 are single layer 10-bit profiles. Profile 7 has the additional full enhancement layer for addition bit-depth. Profile 5 uses ICtCp while Profile 7 and 8 use YCbCr.

The reason the iPhone went with Profile 8.3 was so they would not have to tone map for the SDR version.
__________________
Stacey Spears
Co-Creator, Spears & Munsil Ultra HD Benchmark
Stacey Spears is offline   Reply With Quote
Old 20th November 2020, 18:52   #7853  |  Link
nakTT
Registered User
 
Join Date: Dec 2008
Posts: 415
Quote:
Originally Posted by LigH View Post
Thanks for the upload.
nakTT is offline   Reply With Quote
Old 21st November 2020, 00:05   #7854  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,989
Quote:
Originally Posted by Stacey Spears View Post
The reason the iPhone went with Profile 8.3 was so they would not have to tone map for the SDR version.
That makes sense, but FWIU HLG is only actually "backwards compatible" in terms of dynamic range, not color gamut (since rec2020 / p3d65 / WCG -> rec709 is hard to do well automatically).

So, from a backwards compatibility standpoint, you can either use WCG (and thus only be really backwards compatible with SDR WCG displays of which there aren't too many AFAIK) or use standard 709 gamut and thus be only HDR and not WCG which won't take advantage of modern HDR displays that are all WCG.

Do I have that wrong?
Blue_MiSfit is offline   Reply With Quote
Old 23rd November 2020, 21:08   #7855  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by Blue_MiSfit View Post
That makes sense, but FWIU HLG is only actually "backwards compatible" in terms of dynamic range, not color gamut (since rec2020 / p3d65 / WCG -> rec709 is hard to do well automatically).

So, from a backwards compatibility standpoint, you can either use WCG (and thus only be really backwards compatible with SDR WCG displays of which there aren't too many AFAIK) or use standard 709 gamut and thus be only HDR and not WCG which won't take advantage of modern HDR displays that are all WCG.

Do I have that wrong?
That was certainly how HLG was originally intended to work by the BBC. But the de facto HLG has drifted somewhat; after all, essentially no devices shipped with Rec 2020 and NOT PQ. It must be using 709 primaries or else it wouldn't be backwards compatible.

My take on HLG has been "it may work in practice, but it definitely doesn't work in theory!"
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 23rd November 2020, 21:14   #7856  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by Blue_MiSfit View Post
Yeah, how would one even do that? Convert the HLG into PQ and do a new analysis pass in Resolve or something, then encode UHD BD compliant Profile 5 or 7 from that?
Yes, pretty much. Of course, while in Resolve, additional color work could be done to get to >1000 nits, use more saturated colors, etcetera.

Profile 8.3 isn't great, but it makes for a substantially better HDR source than anything 709 would be. The 12 Pro Max with its improved optics will probably lead to some interesting student and experimental HDR (and HFR) titles. Biggest question is how clean the HEVC encoding will be. I need to finally order mine.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 24th November 2020, 10:05   #7857  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,901
Quote:
Originally Posted by benwaggoner View Post
That was certainly how HLG was originally intended to work by the BBC. But the de facto HLG has drifted somewhat; after all, essentially no devices shipped with Rec 2020 and NOT PQ. It must be using 709 primaries or else it wouldn't be backwards compatible.
Wait, so you're saying that it's using Rec709 primaries with an HLG color curve applied? That would be a pretty poor choice...
Also, if it's not and they're just displaying BT2020 on non BT2020 compatible displays that's a poor choice as well...

Quote:
My take on HLG has been "it may work in practice, but it definitely doesn't work in theory!"
lol
My take is: most users are too "inexpert" to notice...
(and with the term "inexpert" I've been very kind)
FranceBB is offline   Reply With Quote
Old 24th November 2020, 17:46   #7858  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by FranceBB View Post
Wait, so you're saying that it's using Rec709 primaries with an HLG color curve applied? That would be a pretty poor choice...
Also, if it's not and they're just displaying BT2020 on non BT2020 compatible displays that's a poor choice as well...
HLG's whole premise is the same set of code values will encode two different creative intents on two very different EOTFs, without metadata. So it's fundamentally pretty nuts. I don't know that they're using 709, but I can't imagine what else it would be. Viewing 2020 as 709 looks weird and brown.

Quote:
My take is: most users are too "inexpert" to notice...
(and with the term "inexpert" I've been very kind)
HLG is mainly being boosted for live broadcast scenarios, where there aren't colorists anyway. Premium content (movies and scripted TV) creatives and technologists aren't fans.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 24th November 2020, 19:52   #7859  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,901
Quote:
Originally Posted by benwaggoner View Post
I don't know that they're using 709, but I can't imagine what else it would be. Viewing 2020 as 709 looks weird and brown.
I guess we're gonna have to wait 'till someone will upload a sample, then...
FranceBB is offline   Reply With Quote
Old 25th November 2020, 00:03   #7860  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by FranceBB View Post
I guess we're gonna have to wait 'till someone will upload a sample, then...
Yeah, I need to actually go and buy mine!
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner 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 07:16.


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