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
525
526
|
RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2018-07-10 Using madMeasureHDR to Create Dynamic HDR10 Metadata madMeasureHDR is located in the madVR installation folder. This command-based utility is available to pre-parse HDR videos to create frame-based HDR10 metadata that is stored in a .measurements file. These metadata files are used to replace madVR's live dynamic measurements, and should provide fewer jumps in brightness and a reduced potential for flickering artifacts by providing madVR with all frame measurements ahead of time to predict scene and chapter changes before they happen. The pre-scraped metadata also provides a small uptick in accuracy compared to the brightness histogram used by the live tone mapping algorithm. The script decodes, measures and records the brightness of each video frame to create metadata that can be read by madVR when tone map HDR using pixel shaders is selected. The real-time histogram is replaced by the frame-by-frame, hard-coded metadata. The use of scene-based metadata is similar in concept to how Dolby Vision and HDR10+ content is mastered with the intent to make tone mapping more precise by flagging the brightness of each scene or even individual frames to allow displays to optimize its tone mapping for each individual scene in the video. Requirements:
*An external installation of LAV Filters is required. Internal copies of LAV Filters installed with various media players do not count as valid installations. Note: The GPU that is measuring the video file requires a built-in 10-bit HEVC decoder to measure the file in a reasonable amount of time. How to Use madMeasureHDR Open the local or network media folder containing your HDR videos in File Explorer and drag it to the left of the screen until it snaps to the edge. Open the madVR installation folder and drag it to the right of the screen until it snaps to the edge. Drag and drop an HDR video onto madMeasureHDR to initialize the script. A Command Prompt window should pop-up indicating the file is being measured with its progress displayed as a percentage. When finished, a file will be created with the extension .mkv.measurements. The program can sometimes hang on the first attempt. You will know this is the case if the percentage progress fails to appear. Note: Support for measurement files is currently limited to single digital files. The only way to create measurement files for ISOs or BDMV folders is to first play the file from start to finish. 3ll3d00d's Third-Party Tool for Measuring ISOs and BDMV Folders configuration -> files & folders -> central measurement file folder Specifies where the measurements file are stored. Leaving the file location blank will place the files in the media folder next to each video. madVR requires Write access to the folder to create the file. To confirm the measurements file is valid, play the video with any media player. A valid measurements file will indicate the frame and scene brightness (the target of the tone mapping curve), the measured peak of the video, average of all pixels in the frame and the MaxFALL. The peak measurement replaces MaxCLL for any profile rules referencing hdrVideoPeak. The source peak measured by madVR may contradict the source MaxCLL. This is not a typo; the MaxCLL of HDR10 movies is not accurate in many cases. I have confirmed this myself by importing HDR10 videos into Davinci Resolve and comparing the metadata generated by madVR with HDR waveforms in Resolve that show the actual mastered peak brightness of each movie frame. Frame target peaks generated by madVR are almost to the pixel of the actual HDR brightness histograms generated by Davinci Resolve. Therefore, the MaxCLL calculated by madMeasureHDR incorporates encoded pixels that may not be included in the source MaxCLL or mastering display peak luminance, but are in fact encoded in the source. Altered Metadata Shows the Scene and Source Peaks: Note: Some of the above metadata is only available if a blank folder named ShowHdrMode is placed in the madVR installation folder. The tool is considerably faster when LAV Video is set to decode with D3D11 Automatic (Native). The measurement process should take less than half of the movie runtime (sometimes it is considerably faster). Running from the Command Prompt: If the above method is not working and flashing an error, a proper error message can be displayed by running madMeasureHDR from the Command Prompt. C:\madVR>madMeasureHDR.exe \\NAS\4K UHD\Video Name (2018)\Video Name (2018).mkv Format: file path to madMeasureHDR + file path to media file How to Run a Program on Command Prompt on Windows Incomplete Files: Files are labelled incomplete if the measurement tool is unable to correctly read the timestamp. The most likely cause for this error is a poor rip. To correct a corrupt rip, try re-ripping the file or using another source of disc ripping software. Creating Measurement Files with File Playback Simply playing a video from start to finish will also create a .measurements file. Completed measurement files are not overwritten on subsequent playback. Using HTPCControl to Measure an Entire Media Folder It is possible to measure all HDR videos in one folder in succession with batch processing. Obviously, this can take some time depending on the amount of videos in the folder. BerndFfm at AVSForum was kind enough to create a control panel interface to simplify and automate the process. During the scan, videos with existing measurements files are skipped and the utility can be run any time you update your media folders. Network shares can be scanned if they are first assigned a drive letter in Windows. Download HTPCControl for madMeasureHDR Source Extract the contents of HtpcControl.zip to any folder and run HtpcControl.exe. Settings: Set the language to English. MadVR Path: Windows file path to the madVR installation folder containing madMeasureHDR. Directories: Drive letters and media folders to be scanned including subdirectories. Network sources must first be assigned a drive letter in Windows. How to Map a Network Drive in Windows 10 *Mapping a network drive will not upset existing SMB sharing with library managers such as JRiver Media Center and Kodi. The mapped drive can be removed at any time with the Disconnect command. Note: For best results, eliminate any subdirectories by setting the destination network folder as the drive letter (e.g. Set the 4K Movies folder as drive Z:\). Shortcut in Windows to Copy and Paste File Paths: Right-click on the file path in File Explorer and select Copy address as text: Filter: Only measure the videos set by the filter. Titles must match the filename and should be separated by a comma. Store Measurements: Determines the directory where the measurement files are stored. Must match the same directory in madVR for the tool to find any existing measurement files. Settings Pages Count: Applicable when Save MadVR Set. is used to take print screens of the madVR control panel as a back-up or to share with others. Set the total number of screenshots captured by the tool. Avoids creating dozens of print screens of the keyboard shortcuts menu. For most users, this should be set anywhere from 80-120. JVC Delay Sec: This option works in conjunction with the option JVC Control. A network connection to a JVC projector can be used automatically toggle various functions such as activating a lens memory number, selecting picture settings profiles and changing the lamp mode (selecting high or low lamp). Sets the amount of delay in seconds between each sent command. Hide Measure Files: Windows will tag the .measurements files as hidden with this checked. Delete all Measure Files: Deletes all existing .measurements files and replaces them with new ones when the script is run. Only 'not completed': Only replace measurement files labelled as incomplete by madVR. Check for Updates: When the tool is started, the most recent versions of madVR, HTPC Control, LAV Filters and MakeMKV are downloaded into the HTPC Control and madVR installation folders (or appdata folder when Write access is denied). To complete the update of madVR, manually extract the zip file. Test builds of madVR are included in the search. JVC Lamp Control: Check to enable automatic lamp control selection (high or low) of a network-connected JVC projector. Works with JVC Control. Clipping Tool: Automatically calls up Sounight's MadmeasureHDR Dynamic Optimizer tool (as detailed below) after files are measured. The MadmeasureHDR Dynamic Optimizer tool must be located in the madVR or HTPC Control installation folders with all parameters set in the tool before the measurement process begins. Run: Save your settings and select HDR Measurement to run the script. If the file paths are configured correctly, the tool will start measuring all HDR videos in succession: When finished each file, a message with a summary of the measurement statistics is shown. Cancel: Selecting Cancel stops the process. Running HDR Measurement again resumes where it left off. Batch File Method If you don't want to use the above tool, the same automatic processing can be achieved with a batch file. The batch file will also skip any videos with existing measurements files and can be run at any time. Network sources must also first be assigned a drive letter in Windows. The batch file method has the advantage of retaining the percentage progress for the file being measured. madMeasureHDR Batch File (Thanks to Manni) Source Values to Change: echo off set pathToMadMeasure="C:\Program Files\madVR\madMeasureHDR.exe" Windows file path to madMeasureHDR in the madVR installation folder. Set folder paths for measuring specific file formats: REM Mkv Test Videos set pathToVideos="L:\4K Test Files\HDR" File path to the media folder containing MKV files: "Z:\Media Folder Name\Subdirectory Name" REM Mp4 Test Videos set pathToVideos="L:\4K Test Files\HDR" File path to the media folder containing MP4 files: "Z:\Media Folder Name\Subdirectory Name" REM Ts Test Videos set pathToVideos="L:\4K Test Files\HDR" File path to the media folder containing TS files: "Z:\Media Folder Name\Subdirectory Name" Set folder path for measuring a priority folder for test purposes: REM 4K Movies in @MadMeasureHDR folder for priority measurements to be done before the main folder set pathToVideos="U:\@MadMeasureHDR" File path to the media folder containing priority files: "Z:\Media Folder Name\Subdirectory Name" Set folder path for measuring all file types in a single folder: REM 4K Movies set pathToVideos="P:\" File path to the media folder containing all HDR files: "Z:\Media Folder Name\Subdirectory Name" DELETE the following code from any folder path in the batch file if you choose not to download the assisting program Wintee (the utility mentioned in the batch file): Remove from Block: | wtee "%%f.txt" How to Run the Batch File:
The terminal window should open and the batch file will begin its processing. You can stop the process with Ctrl + C. The next time the batch file is run, it will resume where it left off. If this fails, an error message can be shown by running the batch file from Command Prompt. How to Run a Batch File from the Command Line on Windows Save MadVR Set. This feature is handy for those who wish to make a visual back-up of their madVR settings or share them with others. Instructions:
The tool will take screenshots of every subsection of the control panel: The print screens will be saved in a separate folder in the madVR installation folder. Running the tool additional times creates new folders. You may want to run the tool a second time to enter the exact number of print screens required based on the output from the first run. Additional Tools pandm1967's Simple Tool: pandm1967’s simple tool organizes the measurement data into a summary and detailed analysis of the peak measurements including the full brightness histogram for each measured frame. Simple Tool: madMeasurementAnalyzer.zip (Thanks to pandm1967) Target Nits Enter a custom display target nits for the movie. When a value is entered, the field will turn yellow and an option to Save will appear. The display target nits value becomes hard-coded into the measurement file and any real display peak nits entered in madVR is ignored. HDR profile rules referencing a specific display target nits are also ignored in favor of the value in the measurement file. Set this value to 0 to return it to its default. pandm1967 includes a second simple utility to batch measure HDR videos with madMeasureHDR. Enter the madVR path, UHD Driver (the folder to be measured) and Run Measure to start the measurement tool. Make Hard Link is for BDMV folders. This allows Blu-ray folders to be measured by creating a hard-coded file path to the measurement file that can be read by a variety of media players supporting madVR. Soulnight’s MadmeasureHDR Dynamic Optimizer Tool: Soulnight’s tool is a little more complex. It can do the following:
Dynamic Clipping and Dynamic Target Nits Tool: MadmeasureHDRDynamicOptimizer.zip (Thanks to Soulnight) Instructions:
Auto Start: Checking this will automatically apply all previously entered values to the last used file path or file location when the app is started. If applying dynamic clipping, you can control the strength of Soulnight’s highlight clipping formula to reduce the amount of highlight clipping permitted: Dynamic range recovery strength in % (from 100% [default] down to 0% [none]). The Clipping statistics will show the impact this has on the measurement data after the clipping formula is applied. Dynamic clipping uses calculations that take black bars encoded in the video into account. Sources re-encoded without black bars should uncheck the dynamic clipping option because it can lead to inaccurate clipping of bright highlights and blown out highlight detail. Target nits selection:
Instructions for Dynamic target nits: The Dynamic checkbox results in a display target nits being calculated for every frame in the movie, which calculates an ideal display target nits for each movie scene for dynamic per scene tone mapping:
Dynamic Target nits Presets:
Custom PRESET settings: "Tweaked" Fall:
Core algo:
Chapter definition:
Target Nits smoothing:
Note: After each upgrade of this tool, you should first run Restore original measurements before applying any new changes as new tool parameters can interfere with files created with previous versions. Select Start!. If a measurement file exists, the tool will populate all of the desired fields with the selected options for the active file or the entire file folder path. If a measurement file does not exist, madMeaureHDR is started and each file is measured with selected adjustments applied to the data. To analyze the results of the Dynamic selection, use pandm1967's tool and select the Dynamic Target Nits tab. The automated dynamic display target nits will be plotted against the movie runtime: Note: The tool will preserve the original measurement file by placing it in a separate folder named Original. So it is possible to revert to the original measurement file calculated by madVR if you are unhappy with the results provided by Soulnight’s tool. The same measurement file can be replaced infinite times with new values. The original values are restored and then replaced with the values provided by the tool. RE: Kodi DSPlayer – DirectShow Player for Windows - acemt - 2018-07-11 v5 works great. Just can't get it to run as an external player. IMO, it's better than PowerDVD. Plays .iso perfectly. Hopefully I can figure this out, as it is kind of a show stopper in the long run without being able to use multiple external players for different tasks. Thanks, Mark RE: Kodi DSPlayer – DirectShow Player for Windows - brazen1 - 2018-07-11 In my experience, DVDFab Player v.5 does not play things so great. 2DHDR.iso's using v.3 play great and automatically because it uses private api's from GPU drivers. Using v.5, not so good. HDR does not engage at all. I think they got away from using private api's and instead started using Windows HDR which ruined everything. So, users are obliged to manually engage the Windows HDR switch and disengage it when finished which isn't exactly as convenient as it is using v.3. I think the same holds true for mkv's but I can't remember since most of my stuff centers around iso's. 3D was added to v.5, something missing altogether in v.3 which is why I rely on PowerDVD for 3D menu playback. Adding it to v.5 is not without problems. Before you can use it, resolution must be changed to 1080p prior. This sort of ruins the entire 4k desktop and GUI presentation of everything including KODI's library. No one wants to manually lessen resolution just to obtain function. I could write code to auto switch it but that workaround isn't the users responsibility. That is a basic function all other players perform and so should v.5. I know the player has underwent a few changes since v.5 was released back in Feb but I never saw anything regarding any of this in release notes and assume the problems remain so I continue using v.3. Perhaps the OP could compare his tests against mine assuming his version is newer and I might retest should he confirm more positive results. KODI v.18 did not fully obey PCF.xml last I tested a month ago. First run it would launch external player of choice correctly. Any subsequent choice of a different player be it by default via PCF.xml rules or manual selection via 'play using' always resulted in using the previous player as if it was stuck in KODI memory or corrupted the function and closed the loop. This included VideoPlayer, the internal player. No amount of fiddling could massage its decision. These are my experiences and YMMV. I'd be happy to find out others have more positive results with any of this. RE: Kodi DSPlayer – DirectShow Player for Windows - mclingo - 2018-07-13 have a missed something here, why are people using external players with KODI DS, even in this now ageing form is still the best quality most functional media library / media player available, there should be no requirement to use external players unless you are using the stock KODI version, issues with that should be dealt with elsewhere. RE: Kodi DSPlayer – DirectShow Player for Windows - arabesc - 2018-07-13 (2018-07-13, 14:48)mclingo Wrote: have a missed something here, why are people using external players with KODI DS, even in this now ageing form is still the best quality most functional media library / media player available, there should be no requirement to use external players unless you are using the stock KODI version, issues with that should be dealt with elsewhere.e.g., KODI uses an old subtitle renderer that is not very good for madVR. RE: Kodi DSPlayer – DirectShow Player for Windows - brazen1 - 2018-07-13 External players are also compatible with full menus so no... DSP is not the most functional player available. 3 different players are now required when one desires to cover the complete gamut of function and versatility playback for all titles with the exception of Dolby Vision. Unless I'm mistaken, there isn't a software player that handles DV correctly yet. Btw, DVDFab Player Ultra v.5 is now offering a free one year license. https://de.dvdfab.cn/pcgo-angebot.htm RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2018-07-13 (2018-07-13, 15:04)arabesc Wrote:DSPlayer is using XySubFilter. It's not that old. You can try something else if you want. XySubFilter renders the most attractive subtitles out there.(2018-07-13, 14:48)mclingo Wrote: have a missed something here, why are people using external players with KODI DS, even in this now ageing form is still the best quality most functional media library / media player available, there should be no requirement to use external players unless you are using the stock KODI version, issues with that should be dealt with elsewhere.e.g., KODI uses an old subtitle renderer that is not very good for madVR. RE: Kodi DSPlayer – DirectShow Player for Windows - arabesc - 2018-07-13 (2018-07-13, 17:24)Warner306 Wrote: DSPlayer is using XySubFilter.Yep. (2018-07-13, 17:24)Warner306 Wrote: It's not that old.Does it have a maintainer, updates? (2018-07-13, 17:24)Warner306 Wrote: You can try something else if you want.How to replace XySubFilter to another renderer? (2018-07-13, 17:24)Warner306 Wrote: XySubFilter renders the most attractive subtitles out there.In combination with madVR it makes playback of some movies unsmooth. RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2018-07-13 (2018-07-13, 17:37)arabesc Wrote:If XySubFilter is not smooth, you are likely over the rendering time in madVR or running out of memory. There is a trade quality for performance checkbox in madVR related to subtitles to help with this. XySubFilter uses a fair bit of memory and processing power. So you have to account for this in madVR. If you own a GT 1030 or GT 1050, it could really struggle with XySubFilter(2018-07-13, 17:24)Warner306 Wrote: DSPlayer is using XySubFilter.Yep. madshi provided the last update to XySubFilter, but it is not being actively developed. It is his preferred subtitle filter. There is nothing to update at this point, as nothing new has happened with subtitles over the past couple of years. Some tweaks to HDR subtitles have been considered. But that's about it. You can use another DirectShow subtitle filter by adding it as an extra filter in DSPlayer and specifying it as a subtitle filter. RE: Kodi DSPlayer – DirectShow Player for Windows - drpizznock - 2018-07-13 In MadVR's config go to the trade quality for performance tab and see if optimize subtitle quality for performance instead of quality option is already enabled. If not, enable it and see if it makes it more palatable. RE: Kodi DSPlayer – DirectShow Player for Windows - arabesc - 2018-07-13 (2018-07-13, 19:53)Warner306 Wrote: If XySubFilter is not smooth, you are likely over the rendering time in madVRIt's not the case. Frame rendering time is about 4-15ms. A movie playback is completely smooth until first subtitles appear. After that the playback is jerky regardless of subtitles. And it doesn't affect the frame rendering time. I've tested it many times. The first subtitle rendering just breaks something. (2018-07-13, 19:53)Warner306 Wrote: or running out of memory.Do you mean video memory? I have an iGPU and lots of RAM. (2018-07-13, 19:53)Warner306 Wrote: There is a trade quality for performance checkbox in madVR related to subtitles to help with this. XySubFilter uses a fair bit of memory and processing power. So you have to account for this in madVR. If you own a GT 1030 or GT 1050, it could really struggle with XySubFilterIf XySubFilter spoils playback even when there are no subtitles on a screen, I think there is definitely something wrong with it. (2018-07-13, 19:53)Warner306 Wrote: madshi provided the last update to XySubFilter, but it is not being actively developed. It is his preferred subtitle filter. There is nothing to update at this point, as nothing new has happened with subtitles over the past couple of years. Some tweaks to HDR subtitles have been considered. But that's about it.Here is an answer to my report that confirms some issues with the XySubFilter. BTW, your answer is there too. (2018-07-13, 19:53)Warner306 Wrote: You can use another DirectShow subtitle filter by adding it as an extra filter in DSPlayer and specifying it as a subtitle filter.Thanks. RE: Kodi DSPlayer – DirectShow Player for Windows - mclingo - 2018-07-13 my point was, if you are going to use external players there is no point using KODI DS is there, better off with stock version? RE: Kodi DSPlayer – DirectShow Player for Windows - brazen1 - 2018-07-14 (2018-07-13, 14:48)mclingo Wrote: have a missed something here, why are people using external players with KODI DS, even in this now ageing form is still the best quality most functional media library / media player available, there should be no requirement to use external players unless you are using the stock KODI version, issues with that should be dealt with elsewhere.No, these are your points: 1. Did you miss something? Probably. 2. Why do people use external players with DSP? To gain what DSP does not offer and to avoid basic function problems that are not being tended to. 3. Even though DSP is aging, it is still the most functional and highest quality player available. I disagree for the reasons myself and others have already touched on. 4. There is no reason to use external players unless you are using the official version of KODI. I disagree again for reasons already touched upon here recently. 5. Issues with external players and the official version of KODI should be dealt with elsewhere. There are no issues but sometimes people insinuate things that beg for a respectful informative reply. RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2018-07-14 I think the problem with subtitles could be related to memory speed because cards with dedicated memory are not having this issue. Hopefully, a different subtitle filter will fix the problem. RE: Kodi DSPlayer – DirectShow Player for Windows - Warner306 - 2018-07-14 I don’t know what all of the issues with DSPlayer could be. I’ve been trying to keep a record and I only have one issue that can replicated as a bug and not user error or related to a component independent to DSPlayer. Some people can’t get rules to work for 3D files, but different types of external players work fine when I test them with a range of different rules. Three people reported image corruption when subtitles are enabled with HDR content, but they disappeared without leaving a debug log or explaining the source of these subtitles. Most others seem to be fine. The player is surprisingly stable for the most part. If your content plays, there is no reason not to use it. |