DV profile 8 detection (hdrformatprofile) not working in 5.0.2??

Support for Windows users
Post Reply
allineedis
Posts: 13
Joined: 14 Oct 2017, 17:13

DV profile 8 detection (hdrformatprofile) not working in 5.0.2??

Post by allineedis »

DV profile 8 detection seems broken since version 5.0.2 or my code is not OK anymore.

I am using below code to add the DV profile info to the filename.

Code: Select all

{if (hdr=="Dolby Vision" && video[0].HDRformatprofile =~ "05")" [DV5] [WEB-DL]" else ""}
{if (hdr=="Dolby Vision" && video[0].HDRformatprofile =~ "06")" [DV6] [WEB-DL]" else ""}
{if (hdr=="Dolby Vision" && video[0].HDRformatprofile =~ "07")" [DV7] [UHD Remux]" else ""}
{if (hdr=="Dolby Vision" && video[0].HDRformatprofile =~ "08" && (bitrate.toInteger() / 1e6d).round(1)<27.0)" [DV8] [WEB-DL]" else ""}
{if (hdr=="Dolby Vision" && video[0].HDRformatprofile =~ "08" && (bitrate.toInteger() / 1e6d).round(1)>27.0)" [DV8] [UHD Hybrid Remux]" else ""}
For profile 5 and 7 this seems to still work, but for 8 it returns nothing.

Version 5.0.1 is fine
Version 5.0.2 is not picking up profile 8

This is the mediainfo output

Code: Select all

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5@Main
HDR format                               : Dolby Vision, Version 1.0, dvhe.08.07, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 57 min 6 s
Bit rate                                 : 18.9 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.091
Stream size                              : 7.55 GiB (96%)
Default                                  : Yes
Forced                                   : No
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.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 1119 cd/m2
Maximum Frame-Average Light Level        : 145 cd/m2
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: DV profile 8 detection (hdrformatprofile) not working in 5.0.2??

Post by rednoah »

:?: Do FileBot 5.0.1 and FileBot 5.0.2 use the same version of libmediainfo? Please check the filebot -script fn:sysinfo output:
viewtopic.php?t=1868

Image



:?: What media information does FileBot see? Please export media information with FileBot so we can see what FileBot sees:
viewtopic.php?t=4285

Image





EDIT:

{ bitrate } is broken for this use case, because the code that does { bitrate.toInteger() } fails with an error message:
viewtopic.php?t=13690

You can get the video bitrate as Integer like so:

Code: Select all

{ video[0].bitrate.toInteger() }
:idea: Please read the FAQ and How to Request Help.
allineedis
Posts: 13
Joined: 14 Oct 2017, 17:13

Re: DV profile 8 detection (hdrformatprofile) not working in 5.0.2??

Post by allineedis »

Thanks. No worries. I will use 5.0.1 till the fix. Will also tinker with the other bitrate to integer option.
Post Reply