HDR
-
- Posts: 9
- Joined: 19 Aug 2017, 07:22
HDR
Hi, first off love this program thanks with the great work.
Now maybe I have to look better, but it seems I cant find an option for HDR.
HDR yes or now would do but ideal would be "dolby vision" or "Hdr10" etc.
If the option is there could some 1 give me a push in the right direction?
Below what I am using now. Any other good suggestions are welcome.
Also I am focused on enhancing my movie collection and thus quickly need to find the worst versions.
{movie} {vf} {ac} {channels} {vc}
Kind regards
Guido
Now maybe I have to look better, but it seems I cant find an option for HDR.
HDR yes or now would do but ideal would be "dolby vision" or "Hdr10" etc.
If the option is there could some 1 give me a push in the right direction?
Below what I am using now. Any other good suggestions are welcome.
Also I am focused on enhancing my movie collection and thus quickly need to find the worst versions.
{movie} {vf} {ac} {channels} {vc}
Kind regards
Guido
Re: HDR
Please read the FAQ and How to Request Help.
Re: HDR
If it's not possible for a human to guess if a file is HDR or not based on the available MediaInfo, then it's not possible perform that check in a FileBot format expression.
Please read the FAQ and How to Request Help.
Re: HDR
maybe you can use this info ?
https://twitter.com/search?q=%23MediaIn ... r&src=typd
https://twitter.com/search?q=%23MediaIn ... r&src=typd
Version 0.7.83, 2016-02-29
--------------
+ HEVC: Maximum Content Light Level (MaxCLL) and Maximum Frame-Average Light Level (MaxFALL), metadata mandated by CEA-861.3 for HDR support
+ HEVC: Mastering display color primaries and luminance (based on SMPTE ST 2084), metadata mandated by CEA-861.3 for HDR support
+ HEVC: SMPTE ST 2048 and SMPTE ST 428-1 transfer characteristics
+ HEVC: Chroma subsampling location (indication of the location type described in the HEVC spec)
+ MPEG-TS: ATSC Modulation Mode (Analog, SCTE_mode_1 aka 64-QAM, SCTE_mode_2 aka 256-QAM, 8-VSB, 16-VSB)
+ #B981, MP4: support of buggy file having "hint" SubType
x HLS: better handling of media playlists having EXT-X-BYTERANGE
-
- Posts: 9
- Joined: 19 Aug 2017, 07:22
Re: HDR
@Kim YES thats it!
I was thinking that it would be strange if I where the only 1 intrested in that kind of thing.
But I guess its not simplefied for idiots like me. But they seem to be working on it.
Guess il just have to wait a bit longer.
Thanks for replying and reading this.
I was thinking that it would be strange if I where the only 1 intrested in that kind of thing.
But I guess its not simplefied for idiots like me. But they seem to be working on it.
Guess il just have to wait a bit longer.
Thanks for replying and reading this.
Re: HDR
if you look at the info it should be possible to do now:
https://en.wikipedia.org/wiki/High-dyna ... ideo#HDR10
https://pbs.twimg.com/media/CcZy2wKXIAASg6m.jpg:large
https://forum.doom9.org/showthread.php?p=1803029
test with these in filebot:
BitDepth 10/12 ?
colour_primaries found or not ?
matrix_coefficients found or not ?
MasteringDisplay_ColorPrimaries found or not ?
MasteringDisplay_Luminance found or not ?
Encoding settings contrains hdr ?
sample files:
http://kodi.wiki/view/Samples
http://demo-uhd3d.com/
http://hdrsamples.com/
https://en.wikipedia.org/wiki/High-dyna ... ideo#HDR10
https://pbs.twimg.com/media/CcZy2wKXIAASg6m.jpg:large
https://forum.doom9.org/showthread.php?p=1803029
test with these in filebot:
BitDepth 10/12 ?
colour_primaries found or not ?
matrix_coefficients found or not ?
MasteringDisplay_ColorPrimaries found or not ?
MasteringDisplay_Luminance found or not ?
Encoding settings contrains hdr ?
sample files:
http://kodi.wiki/view/Samples
http://demo-uhd3d.com/
http://hdrsamples.com/
Re: HDR
In that case it's very simple. So HDR is about 10/12 bit color values instead of 8 bit color values? Then you can just check if the bitdepth is higher than 8 or not.
e.g.
e.g.
Code: Select all
{bitdepth > 8 ? 'HDR' : 'LDR'}
Please read the FAQ and How to Request Help.
Re: HDR
https://video.stackexchange.com/questio ... -bit-depth
so my quess (not tested):
so my quess (not tested):
Code: Select all
if (bitdepth == 10 && colour_primaries >= BT.2020) = HDR10
if (bitdepth == 12 && colour_primaries >= BT.2020) = Dolby Vision
Re: HDR
Cutha wrote: ↑21 Aug 2017, 10:11 And my little piece of code for HDR. As I learn more about HDR I will add more logic.
Code: Select all
{ def mHDRCol = ["BT.709" : "NO", "BT.2020" : "YES"]; if(bitdepth >= 10 && mHDRCol.get(video[0].colourprimaries) == "YES" ) '(HDR)/' else '(NonHDR)/'; }
Re: HDR
I came across a video that does not have .colourprimaries and this is what I did to fix it:kim wrote: ↑21 Aug 2017, 14:10Cutha wrote: ↑21 Aug 2017, 10:11 And my little piece of code for HDR. As I learn more about HDR I will add more logic.
Code: Select all
{ def mHDRCol = ["BT.709" : "NO", "BT.2020" : "YES"]; if(bitdepth >= 10 && mHDRCol.get(video[0].colourprimaries) == "YES" ) '(HDR)/' else '(NonHDR)/'; }
Code: Select all
{
boolean isHDR = false;
def mHDRCol = ["BT.709" : "NO", "BT.2020" : "YES"];
if(self.video[0].bitdepth != null && self.bitdepth >= 10 && self.video[0].colourprimaries != null && mHDRCol.get(self.video[0].colourprimaries) == "YES") isHDR = true;
}
-
- Posts: 9
- Joined: 19 Aug 2017, 07:22
Re: HDR
Got the 2second last code working, seems I am doing something wrong with the last 1.
-
- Posts: 9
- Joined: 19 Aug 2017, 07:22
Re: HDR
DONT USE THE CODE!!!!!!!!!!!!!!!!!!!!!!!!. ALL my 4k MOVIES R GONE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
- Posts: 9
- Joined: 19 Aug 2017, 07:22
Re: HDR
120 4k movies gone....
seems it changed it to the directory then into that directory to .mkv but no where is a .mkv to be found.
seems it changed it to the directory then into that directory to .mkv but no where is a .mkv to be found.
-
- Posts: 9
- Joined: 19 Aug 2017, 07:22
Re: HDR
THANK GOD.... they r still there but for some kind of reason they r hidden....
Re: HDR
@BrutalRageBrutalRage wrote: ↑24 Aug 2017, 12:32 Got the 2second last code working, seems I am doing something wrong with the last 1.
Code: Select all
{
def mHDRCol = ["BT.709" : "NO", "BT.2020" : "YES"];
if(self.video[0].bitdepth != null && self.bitdepth >= 10 && self.video[0].colourprimaries != null && mHDRCol.get(self.video[0].colourprimaries) == "YES") 'HDR ' else '';
}
Re: HDR
I'm attempting to tweak this a little, but I cannot understand (not familiar with Groovy in particular) why this:
does not always output either HDR or SDR.
PS: doing other tests it seems to me that the null check on a missing property does not work, I tried with obj.hasProperty('propName'), but it will say 'event not found', so I clearly need a expert hand on this one.
Code: Select all
{
def mHDRCol = ["BT.709" : "NO", "BT.2020" : "YES"];
if(bitdepth != null && bitdepth >= 10 && self.video[0].colourprimaries != null &&
mHDRCol.get(self.video[0].colourprimaries) == "YES") 'HDR' else 'SDR';
}
PS: doing other tests it seems to me that the null check on a missing property does not work, I tried with obj.hasProperty('propName'), but it will say 'event not found', so I clearly need a expert hand on this one.
Re: HDR
If you get nothing, then there might be an error thrown somewhere:
➔ viewtopic.php?f=5&t=1895
bitdepth != null might be the source of the issue (or it might not, only testing will tell) since bitdepth can't be null. It's either a valid Integer value, or it's gonna throw an error and unwind the expression.
EDIT:
I rewrote your expression:
Code: Select all
any{
{
def mHDRCol = ["BT.709" : "NO", "BT.2020" : "YES"];
if(bitdepth != null && bitdepth >= 10 && self.video[0].colourprimaries != null &&
mHDRCol.get(self.video[0].colourprimaries) == "YES") 'HDR' else 'SDR';
}
}{
'SDR'
}
bitdepth != null might be the source of the issue (or it might not, only testing will tell) since bitdepth can't be null. It's either a valid Integer value, or it's gonna throw an error and unwind the expression.
EDIT:
I rewrote your expression:
Code: Select all
{
any
{
if (bitdepth >= 10 && ['BT.709', 'BT.2020'].disjoint(video.ColourPrimaries))
'HDR'
}
{
'SDR'
}
}
Please read the FAQ and How to Request Help.
Re: HDR
Do you have any official information or docs as to what constitutes "HDR" content? Anything with 10bit that has any kind of ColourPrimaries? Or just those specific BT.* ones? What does BT.* mean?
I'm inclined to add an official {hdr} binding but I don't really have any test data.
I'm inclined to add an official {hdr} binding but I don't really have any test data.
Please read the FAQ and How to Request Help.
Re: HDR
That would be very good. My recent research into the topic tells me that:rednoah wrote: ↑17 Jun 2018, 08:03 Do you have any official information or docs as to what constitutes "HDR" content? Anything with 10bit that has any kind of ColourPrimaries? Or just those specific BT.* ones? What does BT.* mean?
I'm inclined to add an official {hdr} binding but I don't really have any test data.
- It's useful to know if the video is 8 or 10 bit (10 bit can give better output with the same codec thanks to smoother gradients, but 10b is bad to transcode)
- HDR requires a 10b bitdepth and a BT.2020 color space
- Dolby Vision requires a 12b bitdepth and a BT.2020 color space
More info:
- I tried this DV (http://4kmedia.org/lg-dolby-vision-uhd-4k-demo/) demo and it is 10 bits but reports (see the "Dolby Vision Field"):
Code: Select all
Video ID : 33 (0x21) Menu ID : 2 (0x2) Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5@Main Dolby Vision : 1.0, dvhe.dtr@uhd24, BL+EL+RPU Codec ID : 36 Duration : 1 min 19 s Bit rate : 29.6 Mb/s Width : 3 840 pixels Height : 2 160 pixels Display aspect ratio : 16:9 Frame rate : 23.976 (24000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 10 bits Bits/(Pixel*Frame) : 0.149 Stream size : 282 MiB (92%)
Last edited by poochie2 on 17 Jun 2018, 12:58, edited 1 time in total.
Re: HDR
Edited above. The BT 709 is the low spec colorspace used by 8bit content (and 10bit SDR content guessing from rips), can't be used for HDR. I think that when there is no colorspace field in MediaInfo, this is the actual color space -> unless other fields say otherwise, like the DV demo that is missing what releases usually have, but does have the DV field. It's essentially a mess
In the end HDR and DV is about metadata telling the screen how to manage luminance, no metadata, no HDR+.
Re: HDR
OK. The new {hdr} binding will require bitdepth >= 10 and BT.2020 Color Primaries.
Please read the FAQ and How to Request Help.