Kodi Community Forum
Kodi DSPlayer – DirectShow Player for Windows - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: Kodi DSPlayer – DirectShow Player for Windows (/showthread.php?tid=223175)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524


RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2015-05-10

HDR to SDR: Resources Toolkit

Choosing a Display Color Gamut | Choosing a Gamma Curve

Topics Covered:
  • Static HDR Profile Rules;
  • User-Created Tools for Populating madMeasureHDR Measurement Files.

Choosing a Static Target Nits with Profile Rules

hdrVideoPeak, AvgFMLL and AvgFALL

Profile rules are available for HDR sources that can assign a desired display target nits to each video before playback based on the source's peak brightness. This is a way to optimize the presentation of HDR sources by choosing ranges of display target nits that are ideal for each source. The use of profile rules may not be necessary now that madVR can dynamically adjust the display target nits as the video plays.

HDR profile rules are most effective when matched to the dynamic range of the video. Sources with a higher dynamic range tend to work best with higher target nits that preserve more contrast and sources with a lower dynamic range tend to work best with lower target nits that preserve more brightness.

Advantages of Using Static Target Nits Profiles:
  • More consistent brightness throughout the presentation;
  • Less potential to clip detail during frame peaks.

If you wish to use HDR profile rules to pre-select a static display target nits for each movie, it is advised to first prepare a measurement file for each video using madMeasureHDR. These measurement files allow madVR to know the average peak brightness of the source before playback and select the profile rule that best matches the known source peak brightness. 

Available HDR Profile Rules:

hdrVideoPeak

hdrVideoPeak is the maximum peak brightness of any pixel in the source. hdrVideoPeak uses the MaxCLL (Maximum Content Light Level). If MaxCLL is 0, or if both MaxCLL and MaxFALL are rounded to an even multiple of 50 (e.g. 500/500 or 10000/450), then the MaxCLL is considered invalid and the mastering display maximum luminance is used instead. Sources measured with madMeasureHDR will set hdrVideoPeak to the measured peak of 99.9% of all frames to exclude any outlying pixels, or a valid MaxCLL, whichever value is lower.

AvgFMLL

AvgFMLL stands for Average Frame Maximum Light Level: The average peak brightness of all measured frames in the video. The average peak of all frames is probably the best representation of the overall brightness of a movie to avoid clipping the majority of the specular highlights. 
AvgFALL

AvgFALL stands for Average Frame Average Light Level: The average distributed peak brightness of all pixels in a frame for all measured frames in the video. This value is less useful than AvgFMLL for judging highlight clipping, but can be valuable in setting the desired brightness and contrast for the presentation. Videos with a high AvgFALL will appear subjectively brighter than videos with a low AvgFALL, even if the peak brightness of the source fails to reach a high maximum frame peak.

Note: AvgFMLL and AvgFALL are only valid if a measurement file exists for the selected video.

HDR profile groups are created under devices -> hdr

Sample of HDR Profile Rules (Thanks to Manni at Doom9)

Tip: To get the most out of HDR profiles in madVR, it is advised to create a blank folder named "ShowHdrMode" and place it in the madVR installation folder. This will show the active display target nits selected for the video in the madVR OSD.

Custom or Dynamic Display Target Nits with madMeasureHDR Measurement Files

If you browse through the madVR installation folder, you will find a special utility there named madMeasureHDR. This tool is designed to populate a file with frame-by-frame HDR10 metadata from any HDR10 video read and decoded by madMeasureHDR. The metadata created by madMeasureHDR can be used by madVR when that same file is played with tone map HDR using pixel shaders selected.

The Command Prompt utility decodes the full video prior to playback using a LAV Video decoder and analyzes the brightness of each frame in the video and stores all measured frame peaks in a single digital .measurements file. This includes the full brightness histogram for every frame in the video that describes the measured frame average light level and frame peak brightness of each video frame. When the video file is played, madVR reads the completed .measurements file and uses the stored frame measurements to improve the accuracy of its dynamic tone mapping.

The.measurements files include an embedded field for entering a hard-coded display target nits for each video frame. Two user-created tools have been developed to edit this field automatically or manually with user-controlled values. 

pandm1967's simple tool allows for the entry of a static display target nits for each movie into the target nits field of each measurement file. Values entered in the measurement files permanently override any values entered in the madVR control panel.

pandm1967's simple measurement tool:
Image

Soulnight's MadmeasureHDR Dynamic Optimizer tool takes this a step further by embedding a display target nits for every frame in the video. This continuously adjusts the display target nits as the video plays to dynamically optimize the brightness and contrast of each scene in the video.

Advantages of Using a Dynamic Target Nits:
  • Less wasted brightness and a potentially brighter overall image;
  • The ideal amount of brightness and contrast can be applied to each scene.

Soulnight's tool provides the same functionality as checking apply target nits option (Coming Soon!) in the madVR control panel when no measurement file is available. The formulas used to select the display target nits are identical. Soulnight's tool has the advantage of using the pre-measured frames to know the scene and chapter cuts ahead of time to reduce false detections of individual scenes and chapters and present smoother transitions in brightness caused by resets to the display target nits at each scene change.

Soulnight's MadmeasureHDR Dynamic Optimizer tool:
Image

How to Use madMeasureHDR to Create Dynamic HDR10 Metadata Files

Instructions on how to use these tools along with madMeasureHDR to create .measurements files for HDR10 videos embedded with a hard-coded static or dynamic display target nits are provided below:

Instructions: Using madMeasureHDR to Create Dynamic HDR10 Metadata


RE: Kodi DSPlayer – DirectShow Player for Windows - ashlar - 2015-05-10

Cool! New toys to play with. Thanks Warner306 for the heads-up. With aracnoz's continued improvements we are so close to an ultimate solution that... well, it still seems to good to be true, I have to be honest. Smile


RE: Kodi DSPlayer – DirectShow Player for Windows - freddy12 - 2015-05-10

Would you gain much with this using a intel nuc hd4400 or is this for more for a higher power unit


RE: Kodi DSPlayer – DirectShow Player for Windows - vicmanpergar - 2015-05-10

wow.....
And i still have to understand the basics of madVr... hehe
anyone can explain to me what's the meaning of target rectangle 0, 1, 1920, 1081 ?
Sad


RE: Kodi DSPlayer – DirectShow Player for Windows - tiben20 - 2015-05-10

(2015-05-10, 12:27)vicmanpergar Wrote: wow.....
And i still have to understand the basics of madVr... hehe
anyone can explain to me what's the meaning of target rectangle 0, 1, 1920, 1081 ?
Sad

the 2 first number is the position of the top left corner of rectangle and the 2 last is the bottom right
i suppose its the rectangle where everything is rendered
the video calibration within kodi is pretty much the same thing it change the target rectangle


RE: Kodi DSPlayer – DirectShow Player for Windows - vicmanpergar - 2015-05-10

(2015-05-10, 12:39)tiben20 Wrote:
(2015-05-10, 12:27)vicmanpergar Wrote: wow.....
And i still have to understand the basics of madVr... hehe
anyone can explain to me what's the meaning of target rectangle 0, 1, 1920, 1081 ?
Sad

the 2 first number is the position of the top left corner of rectangle and the 2 last is the bottom right
i suppose its the rectangle where everything is rendered
the video calibration within kodi is pretty much the same thing it change the target rectangle

Hi Tiben, and thanks....
But... Being my plasma 1080p native and having everything configured as native, without any scaling from the GPU, shouldn't it be 0, 0, 1920, 1080?
I get a 0,1, 1920, 1081


RE: Kodi DSPlayer – DirectShow Player for Windows - aracnoz - 2015-05-10

with madvr 0.88.1 there is some problem with exclusive mode, mouse events don't pass to kodi and performing a stop can crash because the loop where dsplayer handles the messages remains locked in some way by madvr

then for the new options madshi has not upgraded the api to manage the settings, so i cannot upgrade the kodi gui

my advice for now it's to use madvr 0.88.1 just for test with dsplayer if you want stability


RE: Kodi DSPlayer – DirectShow Player for Windows - tiben20 - 2015-05-10

(2015-05-10, 12:47)vicmanpergar Wrote:
(2015-05-10, 12:39)tiben20 Wrote:
(2015-05-10, 12:27)vicmanpergar Wrote: wow.....
And i still have to understand the basics of madVr... hehe
anyone can explain to me what's the meaning of target rectangle 0, 1, 1920, 1081 ?
Sad

the 2 first number is the position of the top left corner of rectangle and the 2 last is the bottom right
i suppose its the rectangle where everything is rendered
the video calibration within kodi is pretty much the same thing it change the target rectangle

Hi Tiben, and thanks....
But... Being my plasma 1080p native and having everything configured as native, without any scaling from the GPU, shouldn't it be 0, 0, 1920, 1080?
I get a 0,1, 1920, 1081
your absolutely right , i have no idea why it default to 1 , 1981


RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2015-05-10

(2015-05-10, 19:03)tiben20 Wrote:
(2015-05-10, 12:47)vicmanpergar Wrote:
(2015-05-10, 12:39)tiben20 Wrote: the 2 first number is the position of the top left corner of rectangle and the 2 last is the bottom right
i suppose its the rectangle where everything is rendered
the video calibration within kodi is pretty much the same thing it change the target rectangle

Hi Tiben, and thanks....
But... Being my plasma 1080p native and having everything configured as native, without any scaling from the GPU, shouldn't it be 0, 0, 1920, 1080?
I get a 0,1, 1920, 1081
your absolutely right , i have no idea why it default to 1 , 1981

I get this with some files, usually downloaded TV Shows. They are 1080p but miss the target rectangle. I don't understand why this is either.


RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2015-05-10

The new madVR causes DSPlayer to crash, so I would stay away.

The madVR API probably hasn't been updated because the new features are experimental. Some will be removed, while others will be simplified for the end user.


RE: Kodi DSPlayer – DirectShow Player for Windows - vicmanpergar - 2015-05-10

@warner

Thanks to u as well. At least I wont worry too much about the rectangle


RE: Kodi DSPlayer – DirectShow Player for Windows - aracnoz - 2015-05-10

@Warner306

can you make a test with madVR 0.88.2... it seems to solve the problem with messages locked in dsplayer but there is always a problem on stop, kodi remains unresponsive after the stop

happens the same thing with mpc-hc after close a video with ctrl+c or with file - close

this it's how appear my mpc-hc after the close video

Image

madshi it's not able to reproduce this issue

edit

ok i think that i solved the crash with madVR 0.88.2, it's easly also reproducibile with the latest stable build of mpc-hc (but not with the latest nightly), anyway i think that there is always something that don't work as he should with messages


RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2015-05-10

(2015-05-10, 11:29)freddy12 Wrote: Would you gain much with this using a intel nuc hd4400 or is this for more for a higher power unit

Integrated graphics cards won't get you much further than the default settings. But DSPlayer can still be configured to look superior to DVDPlayer.


RE: Kodi DSPlayer – DirectShow Player for Windows - AppData - 2015-05-11

Madvr 0.88 seems to be crashing my Kodi, Potplyer and mpc. Is it madvr or something I did wrong?


RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2015-05-11

(2015-05-11, 00:31)AppData Wrote: Madvr 0.88 seems to be crashing my Kodi, Potplyer and mpc. Is it madvr or something I did wrong?

DSPlayer isn't ready for the new madVR. The new features will be subject to change in the near future, anyways. So I would wait for a month or so to upgrade.

madshi has put these features out to the public for feedback. Based on that feedback, they will be finalized and included in a future version of madVR.