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


RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2015-07-30

Why Use HDR Tone Mapping for Your Display?

Most current true HDR display panels with at least 500 nits or more of peak luminance do a reliable job of following the PQ EOTF 1:1 up to PQ reference white (100 nits) and can provide accurate source luminance tracking for the majority of the source values — It is an unknown fact that 90% or more of PQ HDR video is encoded below 100 nits. Where most HDR10 displays struggle is with the trade-offs involved in handling the smaller number of brighter source values that are mastered with brightness levels that are well above the capabilities of the display. This is mostly a consequence of the static nature of the open-source HDR10 standard that provides the display with a single HDR10 metadata value to summarize the mastered peak nits of the entire video runtime — The Maximum Content Light Level (MaxCLL), or if the MaxCLL is missing, the mastering display maximum luminance.

Many HDR displays will assume the brightest source pixels captured by the source metadata only represent a limited portion of the overall picture or a limited timeframe of the full movie and will choose to use a tone curve that clips only the brightest specular highlights in many scenes. For most displays, these are highlights mastered above 1,000 peak nits, but some HDR displays may clip highlight detail as early as 600-700 nits. This keeps the overall Average Picture Level (APL) consistently brighter, but loses all specular highlight detail mastered above the display's clipping point.

Other HDR displays will attempt to retain all specular highlight detail in the source file and will use a harsh tone curve that captures the full MaxCLL by setting a lower roll-off point on the display curve that darkens all scenes with frame peaks that are well below this MaxCLL. This presents much of the movie as darker than intended with distorted contrast and less optimized tone mapping for dim and mid-bright scenes.

By selecting tone map HDR with pixel shaders and checking output video in HDR format, madVR will compress any source levels that are mastered above the real display peak nits entered in madVR and send all compressed HDR PQ source values to the display. As the source levels rise above the real display peak nits, madVR smoothly curves them back into the display range. For any HDR display 480 nits or brighter, this tone mapping is only applied to the specular highlights mastered above 100 nits. The HDR metadata sent to the display to trigger its HDR mode is also altered to reflect the source peak after tone mapping, which is matched to the provided real display peak nits.

Compressing all source levels to match the real display peak nits benefits the display in two ways. It keeps all specular highlight detail within the display range at all times without any highlight clipping while not impacting most of the remaining image. It is also prevents the display from choosing a harsh tone curve for titles with high MaxCLLs, such as 4,000 nits or 10,000 nits, by reporting a lower source maximum frame peak luminance to the display. Tone mapping is applied dynamically for each movie scene, so only specular highlights with levels above the entered real display peak nits are compressed back into range and the rest of the image remains identical to HDR passthrough. The ability to compress HDR highlights too bright for the display is very similar to the HDR Optimiser found on the Panasonic UB820/UB9000 Blu-ray players.

Spears & Munsil UHD HDR Benchmark 10,000 nits MaxCLL Demo Footage (HDR10 Passthrough)

LG C8's Static Tone Mapping:

Image

LG C8's Static Tone Mapping + madVR's Dynamic Tone Mapping:
Image

LG C8's Static Tone Mapping:
Image

LG C8's Static Tone Mapping + madVR's Dynamic Tone Mapping:
Image

LG C8's Dynamic Tone Mapping:
Image

LG C8's Dynamic Tone Mapping + madVR's Dynamic Tone Mapping:
Image

Pixel shaders with HDR output checked can benefit most HDR displays by assisting the display's own internal tone mapping. The benefits of this tone mapping somewhat depend on how the display handles the altered static metadata provided by madVR (lowered MaxCLL and mastering display maximum luminance) that is often used to select which static tone curve is used by the display.

Some HDR displays will not recognize that the compressed source fits within the display's peak brightness and will apply an additional tone map where a second tone curve is used to further compress the source values to some extent. This double tone map effect could make madVR's dynamic tone mapping less beneficial if the primary display curve used is overly harsh. Pixel shaders also cannot correct displays that do not follow the PQ curve, like those that artificially boost the brightness of HDR content or those with poor EOTF tracking that crush shadow detail. Displays with a dynamic tone mapping setting don’t typically use the static metadata and should ignore the metadata in favor of simply reading the RGB source values sent by madVR.

Determining the usefulness of madVR's dynamic PQ tone mapping can require some experimentation with the real display peak nits and movie scenes with many bright specular highlights. The brightest HDR movies mastered above 1,000 peak nits tend to be the titles that most often lose some detail in the specular highlights with the default display tone curve. A good way to test the impact of the source rescaling is to create two hdr profiles mapped to keyboard shortcuts in madVR that can be toggled during playback: one set to passthrough HDR to display and the other pixel shaders with HDR output. To trigger the altered HDR metadata sent by madVR after switching to pixel shaders, uncheck and recheck the output video in HDR format checkbox in the control panel during playback.

Further Reading:
HDR10 Tone Mapping Explained
HDR to HDR: Advantages and Disadvantages
Static vs. Dynamic Tone Mapping


RE: Kodi DSPlayer – DirectShow Player for Windows - hannes69 - 2015-07-30

@MKANET
Quote:I just wanted to report back that the issues I had with http/https and other online streaming video addons are all resolved now. I can pretty much can now build any Directshow filtergraph with DSPlayer.. I didn't realize that filtersconfig.xml and mediaconfig.xml under "C:\Program Files (x86)\Kodi\system\players\dsplayer" takes precedence over the ones under "C:\Users\MKANET\AppData\Roaming\Kodi\userdata\dsplayer". So, I saw weird filter names that DSPlayer was looking (in my Kodi logs) that I didn't have defined or installed.

Maybe you could share your experiences and settings here. The main purpose for me to install Kodi was to watch Prime Instant without using browser players (no fluid playback possible for me). DVDPlayer is working for all streaming content, but playback is not perfect fluid (it is better than browser player, but there are definetly dropped frames sometimes though having perfect refresh rates built by CRU utility). So I switched to DSPlayer in order to use madvr with hopefully perfect fluid playback (with MPC-HC and madvr I get perfect playback and can use 3DLUT, better scalers, ...).
So this would be the missing link: Amazon Prime Instant with madvr. And the link is DSPlayer.
I have configured everything like described in the HOWTO Configure (and used the settings in chapter 6 "Playing streaming Video with DSPlayer").
For some videos it works, for others not (video not opened).
Would be nice if you could share some infos regarding this topic. Smile
Many thanks in advance,
Hannes.


RE: Kodi DSPlayer – DirectShow Player for Windows - ashlar - 2015-07-30

(2015-07-30, 03:30)MKANET Wrote: I just wanted to report back that the issues I had with http/https and other online streaming video addons are all resolved now. I can pretty much can now build any Directshow filtergraph with DSPlayer.. I didn't realize that filtersconfig.xml and mediaconfig.xml under "C:\Program Files (x86)\Kodi\system\players\dsplayer" takes precedence over the ones under "C:\Users\MKANET\AppData\Roaming\Kodi\userdata\dsplayer". So, I saw weird filter names that DSPlayer was looking (in my Kodi logs) that I didn't have defined or installed.

Emphasis mine on the above but... shouldn't it be exactly the opposite? It's the opposite for all other configuration files... And it's that way so one doesn't lose his/her settings every time he/she updates Kodi.


RE: Kodi DSPlayer – DirectShow Player for Windows - djoole - 2015-07-31

(2015-07-30, 20:54)Warner306 Wrote:
(2015-07-30, 10:59)djoole Wrote: Sorry if this has already been discussed, but i've been away for a while from DSPlaer/madVR updates.
I've decided to upgrade everything. Now madVR is set to use D3D11, and it works great with MPC HC (huge performance increase).
But when i launch videos with DSPlayer, sometimes i have blank screen only with subtitles, sometimes i have the video, but very very dark, with the reds saturated.
No error in Kodi logs.
I've just noticed yesterday night, i still have to install the PDB and make madVR logs.

But my question is : is DSPlayer + madVR compatible with D3D11?

Try turning off hardware acceleration in LAV Video and toggle present a frame for every vsync in madVR.

D3D11 shouldn't make anything faster, but it is working fine for me. It is required for 10-bit output - that is its main advantage.
hardware acceleration is set to None in LAV Video, and present a frame (the option below D3D11) is already toggled.
When I set chroma upscale to Jinc i get nearly black screen with saturated reds.
When I set chroma upscale so Super XBR default, i get a green screen!
Any other idea?


RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2015-07-31

(2015-07-31, 00:21)djoole Wrote:
(2015-07-30, 20:54)Warner306 Wrote:
(2015-07-30, 10:59)djoole Wrote: Sorry if this has already been discussed, but i've been away for a while from DSPlaer/madVR updates.
I've decided to upgrade everything. Now madVR is set to use D3D11, and it works great with MPC HC (huge performance increase).
But when i launch videos with DSPlayer, sometimes i have blank screen only with subtitles, sometimes i have the video, but very very dark, with the reds saturated.
No error in Kodi logs.
I've just noticed yesterday night, i still have to install the PDB and make madVR logs.

But my question is : is DSPlayer + madVR compatible with D3D11?

Try turning off hardware acceleration in LAV Video and toggle present a frame for every vsync in madVR.

D3D11 shouldn't make anything faster, but it is working fine for me. It is required for 10-bit output - that is its main advantage.
hardware acceleration is set to None in LAV Video, and present a frame (the option below D3D11) is already toggled.
When I set chroma upscale to Jinc i get nearly black screen with saturated reds.
When I set chroma upscale so Super XBR default, i get a green screen!
Any other idea?

It sounds like a graphics card/driver issue. I get a green screen on one computer when using QuickSync with D3D11. D3D9 will work just as well if you don't need 10 bit output. The only benefit listed by madshi is faster entry and exit from Fullscreen exclusive mode.


RE: Kodi DSPlayer – DirectShow Player for Windows - djoole - 2015-07-31

Ok, i'm using D3D9 for now, but would like to understand what is the matter with D3D11.
I'm using the latest nvidia drivers 353.62


RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2015-07-31

(2015-07-31, 22:57)djoole Wrote: Ok, i'm using D3D9 for now, but would like to understand what is the matter with D3D11.
I'm using the latest nvidia drivers 353.62

Don't know. I am also using Nvidia with the latest drivers.


RE: Kodi DSPlayer – DirectShow Player for Windows - GlennNZ - 2015-08-01

(2015-07-28, 15:29)aracnoz Wrote: @GlennNZ

if this new way can create some instability at playstart, i prefer to revert this changes to avoid problems

so

for the next build i will mantain the fix to solve your problems on pause (probably also others problems with repeated frames) and the possibility to set a different delay for each refresh by advancedsettings.xml even when the refresh it's handled only by madVR

you will return to see the kodi menu after the refresh change performed by madVR, anyway the execution time for me it's always the same with kodi or with madvr with all these version and previous, it's not so good to see again the menu after the switching but it's only a visual thing

the real difference, as already said @a11599, it's that with madvr the refresh it's set better than with kodi

to avoid any stuttering after that kodi has switched the refresh i need to use reclock with some 24p media, instead with madVR that manages everything, i can reproduce the smooth motion without have to use reclock

Sounds good. I look forward to it.

Once again thanks for all your hard work - hopefully we can encourage some more developer support.

Glenn


RE: Kodi DSPlayer – DirectShow Player for Windows - Mortekai - 2015-08-01

I am having an issue with trying to take a screenshot using DSPlayer and Kodi 15 Final. No matter if I use the keyboard shortcut in Kodi or if I use my Windows 8.1 system key of PrtScrn, the only output I get is a blank, 0 byte .png file. I have spent time scanning these 67 pages of posts, but I do not see anything relating to this issue. Is this something that has just happened with the final version of Kodi, or is there a setting that I am not seeing within the DSPlayer build of Kodi?

Any suggestions would be greatly appreciated!


RE: Kodi DSPlayer – DirectShow Player for Windows - vmax - 2015-08-01

(2015-08-01, 14:49)Mortekai Wrote: I am having an issue with trying to take a screenshot using DSPlayer and Kodi 15 Final. No matter if I use the keyboard shortcut in Kodi or if I use my Windows 8.1 system key of PrtScrn, the only output I get is a blank, 0 byte .png file. I have spent time scanning these 67 pages of posts, but I do not see anything relating to this issue. Is this something that has just happened with the final version of Kodi, or is there a setting that I am not seeing within the DSPlayer build of Kodi?

Any suggestions would be greatly appreciated!

I had the same problem, so I just ran Kodi in windowed mode and used the windows built in snipping tool to capture the screen, worked great.


RE: Kodi DSPlayer – DirectShow Player for Windows - Mortekai - 2015-08-01

(2015-08-01, 21:13)vmax Wrote: I had the same problem, so I just ran Kodi in windowed mode and used the windows built in snipping tool to capture the screen, worked great.

Thank you for the suggestion. I tried it, but with the same result, no matter if I used the OS snipping tool, or if I used the Kodi keyboard shortcut. Just got two .png files with 0 bytes, and obviously no data.... Bummer... But, I appreciate your effort!


RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2015-08-01

My problem with the menu slowing down after stopping a video has been fixed with an upgrade to Windows 10.


RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2015-08-01

(2015-08-01, 21:40)Mortekai Wrote:
(2015-08-01, 21:13)vmax Wrote: I had the same problem, so I just ran Kodi in windowed mode and used the windows built in snipping tool to capture the screen, worked great.

Thank you for the suggestion. I tried it, but with the same result, no matter if I used the OS snipping tool, or if I used the Kodi keyboard shortcut. Just got two .png files with 0 bytes, and obviously no data.... Bummer... But, I appreciate your effort!

Didn't know about that problem. You can't take screenshots in Fullscreen exclusive mode because it is designed that way. But Windowed mode should work fine.


RE: Kodi DSPlayer – DirectShow Player for Windows - Mortekai - 2015-08-01

(2015-08-01, 22:28)Warner306 Wrote: Didn't know about that problem. You can't take screenshots in Fullscreen exclusive mode because it is designed that way. But Windowed mode should work fine.

I agree, in that it should work, but it just does not. I've tried both ways, many times, and even doing a fresh install, but no joy. Same result each time. To double check that it was not a Windows 8.1 x64 problem, I tried with plain Kodi 15 install, and I get great screenshots every time. That leads me to believe that there is something, somewhere within DSPlayer build that is giving me grief regarding taking screenshots. I like to use screenshots as fanart... a way for me to customize Kodi more.

Oh well, life goes on.. Cool


RE: Kodi DSPlayer – DirectShow Player for Windows - MKANET - 2015-08-02

@aracnoz I just installed cleanly the final version of Isengard Kodi 15 DSPlayer build. The same issue is still there. Once in a while, I do see the Trakt rating dialog after a media has stopped playback. But, that's pretty rare. Did I miss something?


(2015-07-27, 17:39)aracnoz Wrote: [quote='MKANET' pid='2063306' dateline='1437937654']
@aracnoz, any chance you could please consider looking into the the issue preventing the Trakt.TV addon from reliably opening it's Rating's Dialog box on Player.OnPlaybackStopped? Maybe this is a complication indirectly caused by DSPlayer's OSD lag? I tried to ask for help about this in the trakt.tv forum thread; however, they mentioned the correct place to ask for help is in this thread. Thanks for any help you can offer about this. PS: I'm NOT using FSE.

Looking forward to the next Isengard DSPlayer update!

fixed with next build