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
Save me installing all the GitHub software etc only have that on my unix boxes.
Quote:I do need Reclock for PAL speed down though, so maybe I should just stop obsessing over this.
If you are already using Reclock and it is working for you without problems, yeah, you probably could stop obesessing over this Cool
I haven´t used Reclock for a very long time, maybe it can be a source of problems too (like your wrong values of the clock deviation, maybe there is no real problem but rather a kind of cosmetic bug showing wrong values... just guessing)

Quote:Is the same audio clock of an HTPC used for all outputs, for example?
Hm good point. I don´t really know. I have a simple setup, I have a stereo professional soundcard and I use simple analog stereo outputs, nothing digital in the chain, no receiver and so on. There may be differences depending on the audio setup i guess.
(2016-05-20, 21:58)ashlar Wrote: [ -> ]I used to have spdif out and VGA out, back then. But it was before I really started caring about smoothness in video reproduction. So I'm really in the dark regarding how that influences clock deviation measurements, sorry.

No problem, maybe someone else can chime in.

Anyway, I just watched a movie with my customized 23.97625Hz resolution. Clock deviation stabilized around ~0.00090 with a frame drop expected once in under 4 hours. Reclock was disabled but I got no drops nor repeats and everything looked super smooth. So I'm happy with the outcome though I still don't quite know what to make of the numbers.
@Derek , last compilation Wanilton , Try this link.
(2016-05-21, 00:07)gotham_x Wrote: [ -> ]@Derek , last compilation Wanilton , Try this link.

Thanks bud its working now mucho respect!
(2016-05-20, 23:57)hannes69 Wrote: [ -> ]I haven´t used Reclock for a very long time, maybe it can be a source of problems too (like your wrong values of the clock deviation, maybe there is no real problem but rather a kind of cosmetic bug showing wrong values... just guessing)

Bingo! Thanks for mentioning that, turns out it was indeed Reclock messing with the numbers. The real deviation seems to be in the -0.00085 range so now I've just got a little math to do.

(I do get problems using Reclock with certain variable frame rate home videos: I need to manually specify the refresh rate in Reclock for each file to avoid occasional audio drop outs. It's a pain in the ass obviously and I'm not sure if having PAL speed down is that necessary.)
I have moved the guide for madVR and limiting frame drops/repeats to Doom9: http://forum.doom9.org/showthread.php?p=1769704
Does anyone else use this version of Kodi with MediaPortal TV-Server? I have an issue with seeking whilst watching currently-recording shows. The easiest way to explain is through an example: let's say I start watching a show that has been recorded for 10 minutes, from the beginning. I seek ahead 5 minutes and it works as expected. After 15 minutes, it's still playing fine, as expected. However, if I now try to seek (either forward or backwards), it jumps back to the 10 minute mark.

I can see an issue that seems to be describing this bug here but it is marked as being fixed in Kodi 16. Not for me, it seems. Sad
(2016-05-21, 22:07)DragonQ Wrote: [ -> ]Does anyone else use this version of Kodi with MediaPortal TV-Server? I have an issue with seeking whilst watching currently-recording shows. The easiest way to explain is through an example: let's say I start watching a show that has been recorded for 10 minutes, from the beginning. I seek ahead 5 minutes and it works as expected. After 15 minutes, it's still playing fine, as expected. However, if I now try to seek (either forward or backwards), it jumps back to the 10 minute mark.

I can see an issue that seems to be describing this bug here but it is marked as being fixed in Kodi 16. Not for me, it seems. Sad

Are you using DSPlayer or DVDPlayer for live TV?
(2016-05-21, 13:04)ashlar Wrote: [ -> ]
(2016-05-20, 19:46)hannes69 Wrote: [ -> ]@ashlar
Nice explanation of the target refresh rate! Please correct the typo "Target refresh rate = 23.97602 * 0.9999758 = 23.79544" in order to not confuse the people even more Wink
Would be cool if you could explain in such a short compact practical oriented manner the second part of the story concerning the custom refresh rates (I´m not very good in explaining things SHORT Wink
Unfortunately, as far as coming up with the correct (deviation compensating) refresh is concerned... there's A LOT of trial and error in my experience. Luckily CRU now includes the restart driver option which previously lacked (if I had to reboot for every check I made... I would have fallen asleep halfway through). I'm pretty sure that the trial and error stems from my lack of complete understanding of all the variables involved. I might study in the future, but I don't feel qualified to write an how to about it. Smile

ALL THAT FOLLOWS IS WORTH A TRY AND IT SURELY GIVES A CLEARER IDEA OF WHAT GOES ON "BEHIND SCENES". I'VE HAD MIXED RESULTS WITH IT, SO FAR.

In any case, in my explorations of the web, I think that a wise combination of these three tools could help in coming up with resolution timings to try with CRU. Combining the three tools it's probably possible to limit the number of trials and errors, as DTD Calculator provides refresh rate results with many more decimal points, up to a precision that satisfies our needs:

Pixel Clock Calculator
Custom Resolution Utility (CRU)
DTD Calculator (this is meant for Intel GPUs but timings are the same for all GPUs, it's the implementation that changes)

With Pixel Clock Calculator you can come up with a bunch of settings to try in CRU.
In CRU you proceed to add a resolution, you set the refresh rate up to the third decimal (the maximum precision CRU offers) and then you try inputting the different totals that Pixel Clock Calculator offers. You are going to act on the Total and Refresh rate entries.
Some of them will not work (CRU will show the numbers you input in red, it has to do with the minimum values accepted, by playing with the Front porch and Sync width values you can solve it). Some of them will be accepted by CRU but will end up producing undesirable results (portions of the imag distorted or shifted with last pixels repeated till screen end, you'll see what I mean when and if you see them).
When you find one that works without producing a bad image and that is close enough to the refresh rate you desire, you can switch to DTD Calculator to have it calculate the refresh rate with more precision (to save the trials and errors).

But how to translate what you see in CRU to what you see in DTD Calculator?
Start off by inputting the Active entries (horizontal and vertical, 1920x1080 tipically) from CRU under the two entries "Active Pixels" (horizontal and vertical) in DTD.
You then sum the Front Porch value (from CRU) to active pixels to get the "Start of Sync Pulse" value for DTD.
Then you sum Sync Width (from CRU) to "Start of Synch Pulse" in DTD and you get the value for "End of Sync Pulse".
Then you sum Back Porch (from CRU) to "End of Sync Pulse" in DTD and you get the value for "End of Sync Pulse".
Then you input the Total value (from CRU) to "End of Blanking Interval" in DTD.
All of the above must be repeated for both horizontal and vertical values, clearly.
Lastly, take the Pixel clock value from CRU and input it in the same entry in DTD.

You will see that DTD in the bottom right corner provides the resulting refresh rate with much more precision than CRU (and if you hover on the value, with your mouse, it shows even more decimals).

You iterate the process from CRU to DTD until you come up with the closest approximation of the refresh rate you need. Then you use that in CRU and test with madVR. Hopefully it will provide you with what you need. As mentioned previously in the thread, the calculations are exact but the different graphic cards might require some offsets, which brings us back to more trial and error. With all these instruments... let's say we could be flying a little less blindly. Smile

With all of the above I've managed to improve my 23.976 to the point where it oscillates between 6.x days and no frame-drops/repeats expected. I have no frame-drops/repeats expected for 50Hz as well and one frame drop between 3.5 and 4.2 hours at 59.94Hz. Color me impressed hannes69! Big Grin

I linked to this post in the DSPlayer guide. Clean it up, add to it, or edit it. It doesn't matter. Just keep it in that post for others to read.
(2016-05-21, 23:50)Warner306 Wrote: [ -> ]
(2016-05-21, 22:07)DragonQ Wrote: [ -> ]Does anyone else use this version of Kodi with MediaPortal TV-Server? I have an issue with seeking whilst watching currently-recording shows. The easiest way to explain is through an example: let's say I start watching a show that has been recorded for 10 minutes, from the beginning. I seek ahead 5 minutes and it works as expected. After 15 minutes, it's still playing fine, as expected. However, if I now try to seek (either forward or backwards), it jumps back to the 10 minute mark.

I can see an issue that seems to be describing this bug here but it is marked as being fixed in Kodi 16. Not for me, it seems. Sad

Are you using DSPlayer or DVDPlayer for live TV?
DSPlayer. I don't really have any reason to use DSPlayer if not for live TV - anything else can be played via MPC-HC using MadVR anyway.
(2016-05-22, 03:00)Warner306 Wrote: [ -> ]I linked to this post in the DSPlayer guide. Clean it up, add to it, or edit it. It doesn't matter. Just keep it in that post for others to read.
Hi Warner, I tried to tidy it up a little, adding information so as to make it a "one stop" read for people interested.
(2016-05-22, 15:05)ashlar Wrote: [ -> ]
(2016-05-22, 03:00)Warner306 Wrote: [ -> ]I linked to this post in the DSPlayer guide. Clean it up, add to it, or edit it. It doesn't matter. Just keep it in that post for others to read.
Hi Warner, I tried to tidy it up a little, adding information so as to make it a "one stop" read for people interested.

I discovered you shouldn't use ReClock for calculating clock deviations. It can be inaccurate (too low).

Note: ReClock is known to produce inaccurate clock deviation figures, even when bitstreaming. For an accurate clock deviation, try Sanear or the default audio renderer.

Also, the formula below may be easier to understand as it includes the conversion from percentage to decimal, which can be missed or overlooked:

movie frame rate * (1 +/- clock deviation / 100)
I've added your note and formula, Warner306. Thanks. Smile
Just to be sure to have fully understood.
If using reclock, there is no need to create a custom res in order to try and compensate A&V clocks deviation, because reclock is realtime synching the video to the audio, and therefore will procure a perfect A/V synchronisation.
Am I right?
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