Kodi Community Forum

Full Version: Kodi DSPlayer – DirectShow Player for Windows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
I found it HDR completely unusable in the first release, havent bothered since, no idea why they didnt include passthrough mode,... Doh!...
I think 90% of DSPlayer users only use it because it offers HDR in Windows. Many participants in this forum thread are power users who care about finetuning upscaling et cetera, but for most regular users, the default Kodi video is good enough - except for the fact that it won't do HDR in Windows.

That's also the case for me. I downloaded acquired several HDR10 mkv files that won't run properly in Kodi 17 or 18 because it won't do HDR passthrough. DSPlayer does this splendidly.
(Since I can't rip my 4K Blurays anyway, I'm slowly moving away from Kodi, and I've been using my dedicated 4K Bluray player more and more. I'm unhappy about it, but at least it works.)

Unfortunately, no HDR in Kodi means that Windows users can't really use full Netflix capabililty that Kodi 18 has, since that's probably the best legal HDR video source at the moment. And I think that's really against the team's ambition to disconnect the Kodi image from illegal downloads and streams. Maybe in the next version. I love Kodi and legal use of the latest tech would be awesome. But please don't read this as complaining or demanding, because I'm pretty happy with Kodi in general, and I know it's a lot of hard, unpaid work for the devs. It's just a bit of daydreaming.


Does anyone know whether the Kodi team intend to implement HDR passthrough for Windows in v19?
(2019-03-12, 16:42)willemd Wrote: [ -> ]Does anyone know whether the Kodi team intend to implement HDR passthrough for Windows in v19?
Yeah, this is why I was asking. I couldn't wrap my head around the fact that HDR passthrough wasn't supported, I was hopeful to be missing something. Unfortunately the RERO approach doesn't seem to be working for devs (no criticism here, simple observation, I'm sure there's plenty of valid reasons), as such I'm afraid we'll be stuck with suboptimal HDR for a long time.
(2019-03-12, 16:42)willemd Wrote: [ -> ]I think 90% of DSPlayer users only use it because it offers HDR in Windows. 
Sorry, I have to disagree there I'm afraid. By virtue, I believe those attracted to Dsplayer with MadVr are looking for the best Picture quality, whilst retaining the usability of Kodi, which it does, hands down.
I think the shame is people are missing out on so much with Dsplayer and madVR for HDR and everything else it offers. The hard part is for anyone not used to either, it does look quite complicated to set it all up.

A perfect world would be a 1 install setup with limited options unless you selected expert, maybe even a dial in your graphics card option and what media you have.
(2019-03-12, 20:09)ashlar Wrote: [ -> ]
(2019-03-12, 16:42)willemd Wrote: [ -> ]Does anyone know whether the Kodi team intend to implement HDR passthrough for Windows in v19?
Yeah, this is why I was asking. I couldn't wrap my head around the fact that HDR passthrough wasn't supported, I was hopeful to be missing something. Unfortunately the RERO approach doesn't seem to be working for devs (no criticism here, simple observation, I'm sure there's plenty of valid reasons), as such I'm afraid we'll be stuck with suboptimal HDR for a long time. 
There is no suitable Windows API available, only a manual HDR toggle switch. So only this toggle switch could be utilized. madVR is using the Nvidia and AMD video drivers to passthrough the HDR metadata.
I think I read a few times that the Windows version has to be dumbed down as everything is about cross platform, so I think anything dependent on Windows will be a very low priority.
I think it is more about the user experience. You would have to open and close Kodi to switch between HDR and SDR. It could be easier to simply use a desktop media player.
i wonder if there is a half way project that would be easier for someone. The current version of DS is heavily baked in with access to settings etc which dont really need to be there are you can set all these in the MADVR app, all we really need is a renderer switch so we could choose KODI renderer or MADVR very much like MPC-BE/HC etc.

This should be easier for someone to do, it might even be easier to do this from scratch rather than work from the current DS code as it would really just be a baked in external player.

Here's a thing with this idea too, you say KODI devs cant be convinced to take on MADVR and bake it in, I agree that will never happen, however them may be able to be convinced to open up rendering so alternative renderers can be chosen like other desktop video players.
This is the answer i had when i made a similar request in the Feature Requests section: https://forum.kodi.tv/showthread.php?tid=335218

However, nobody else has requested or asked for the same issue, even if this particular DSplayer thread has so many people watching it....
(2019-03-13, 16:27)mclingo Wrote: [ -> ]i wonder if there is a half way project that would be easier for someone. The current version of DS is heavily baked in with access to settings etc which dont really need to be there are you can set all these in the MADVR app, all we really need is a renderer switch so we could choose KODI renderer or MADVR very much like MPC-BE/HC etc.

This should be easier for someone to do, it might even be easier to do this from scratch rather than work from the current DS code as it would really just be a baked in external player.

Here's a thing with this idea too, you say KODI devs cant be convinced to take on MADVR and bake it in, I agree that will never happen, however them may be able to be convinced to open up rendering so alternative renderers can be chosen like other desktop video players.
I think what would need to be ported to Kodi 18 is the section on media filters/rules and the video renderer itself. "That's it". All the portion on settings to specific filters configuration, madVR configuration, etc. could be done without. I understand why aracnoz chose to implement it but, at the end of the day, it's a "nice to have" not something mandatory.

I've asked, repeatedly, if something like this could be done as a binary addon. After all... Kodi now "supports" DRM based services, such as Amazon and Netflix. I guess there could/should be a way of achieving the above for an update to DSPlayer.
(2019-03-13, 16:37)vitocorl Wrote: [ -> ]This is the answer i had when i made a similar request in the Feature Requests section: https://forum.kodi.tv/showthread.php?tid=335218

However, nobody else has requested or asked for the same issue, even if this particular DSplayer thread has so many people watching it....
 madVR is based on DirectShow and Kodi isn't, so there is a complete mismatch in decoding and rendering. For HDR, in particular, it is becoming imperative to use LAV Filters for all playback. There is even some early support in LAV Filters for at least recognizing HDR10+ and HLG, and supposedly the Nvidia video drivers may have some test code support for Dolby Vision (How that might work seems up in the air in terms of the new methods that may be on the horizon to rip and play Dolby Vision content). LAV Filters alone would not be compatible with Kodi VideoPlayer.

I don't see any need to bash VideoPlayer. It is what it is and a good media player, not a poor one. The best you can do is request "realistic" features that could be added at some point in the future.
(2019-03-13, 16:27)mclingo Wrote: [ -> ]i wonder if there is a half way project that would be easier for someone. The current version of DS is heavily baked in with access to settings etc which dont really need to be there are you can set all these in the MADVR app, all we really need is a renderer switch so we could choose KODI renderer or MADVR very much like MPC-BE/HC etc.

This should be easier for someone to do, it might even be easier to do this from scratch rather than work from the current DS code as it would really just be a baked in external player.

Here's a thing with this idea too, you say KODI devs cant be convinced to take on MADVR and bake it in, I agree that will never happen, however them may be able to be convinced to open up rendering so alternative renderers can be chosen like other desktop video players.
 The settings in the video menu accessed during video playback are actually a separate add-on and a limited burden on programming. The save in DSPlayer database feature and the few madVR settings in the DSPlayer settings menu could certainly be eliminated. However, that doesn't lose much weight, and wouldn't be a good reason to start over when the technical challenges of adding madVR support to Kodi have already been overcome in the current DSPlayer. DSPlayer would have to go on in its current form and maybe lose some unneeded code to keep it more lightweight.

The videoplayer itself (subtitle support, audio support, playback engine, OSD etc.) are where the bulk of the code would be found and this can't simply be replaced by VideoPlayer because they are completely different playback engines.
People are throwing around reasons for using DSPlayer, and I'll give it to you. It has nothing to do with HDR for most people. Kodi's built in player is slow and not very good at a lot of things. This is not intended to be offensive. They are aware of it, and they are clearly trying to improve it bit by bit.
I use DSPlayer because it can render subtitles without completely shutting Kodi down with lag. This is one reason to use it. Another reason is scaling algorithms. There's frame interpolation, HDR (which is poorly implemented at best, due to lack of OS and driver support), 3D (without killing kodi with lag again...), better sound support, and many more reasons.
Don't act like your specific use case speaks for even a majority of users.
Addon developers can make things work with DSPlayer if they want to, as well. I did. It's comparatively easy, considering that DSPlayer is entirely C++ on top of decades old code originally written for XBOX.

Someone wanted some ideas of what is required or helpful. Here's some that I encountered when attempting to aid development myself:
  • C++ and all of the build tools involved
  • Thorough knowledge of DirectX/DirectDraw/OpenGL/Windows Graphics and Sound APIs. This isn't completely necessary to work on DSPlayer, but you'll hit weird issues with no clue how to approach them without experience in those.
  • Thorough knowledge of media codecs, how to parse them (even with libraries), and how to forward them to another application
  • The ability to write code that does not crash. This does not mean that errors can't occur, but that you are capable of thinking and writing in a way that includes failsafe fallbacks to everything you do. You should never hit play or stop, and then see Kodi indefinitely lock up or crash.
  • Knowledge of memory management in C++, specifically involving reading, managing, and closing streams.
  • File Locking, as nothing will work if you are not letting MadVR, LAV, etc even access the filestream that you hand it.
  • DRM and copyright implications, mainly to cover your own ass and prevent an accidental legal issue.
  • Concepts on video technologies involved with encoding, including how framerate, codecs, containers, 3D and HDR, and things of that nature may screw with things. Not knowing these will cause poor color quality or worse.
  • THE ABILITY TO BE POLITE, RESPECTFUL, AND INTERACT WITH A TOXIC COMMUNITY. If this thread shows anything, it's that no matter how cool you are, there are people who don't deserve your time. Despite that, you still can't be blatantly rude, or the experience will be ruined for all, and it'll very quickly drive you away when you realize nothing is worse than working for free and getting involved in petty flame wars over it.

Most of these do not require Book of Magnus level knowledge, but if you don't at least understand what they are and how they work, you will drop the project when you encounter an issue that flies a mile over your head.
(2019-03-14, 21:30)da3dsoul Wrote: [ -> ]People are throwing around reasons for using DSPlayer, and I'll give it to you.
 What a strange passive aggressive post that was, what is your point again ?
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