Log in

View Full Version : madVR - high quality video renderer (GPU assisted)


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 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 [616] 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329

madshi
5th June 2015, 16:49
feedback

-------

Now that we've summed up debanding, I'd love to hear your feedback about "image enhancements" and "upscaling refinement". That's a rather broad topic, covering FineSharp, LumaSharpen und SuperRes, both before and after scaling. Tons of options, so a lot to test, a lot to play with. Let me know what you think, what you like and what you don't like.

-------

Let me describe again the concept I had in mind for these algorithms: In my experience there are 2 different causes to get soft/blurry video playback:

A) Either the source is already blurry.

If this is the case, a good idea might be to sharpen the source before upscaling it any further. The reason for this is that sharpening algorithms work by analyzing the direct neighborhood of each pixel in the image. Upscaling causes the image to get bigger, which means the neighbor pixels in the original image are much further apart from each other in the upscaled image. But the sharpening algorithm only looks at the near neighborhood. Which means that if we sharpen after upscaling, although the sharpening still somewhat works, it loses much of its effectiveness. If the source is already soft to begin with, sharpening after upscaling won't do very much, so for soft sources my idea was to sharpen them before upscaling.

This is what the "madVR\processing\image enhancement" settings page is for. You can think of "softness" as being just another artifact of some sources, and we fix it by sharpening the source before we scale it. This only applies to soft sources, though, so my suggestion would be to not enable these settings by default, but only by demand, if you have a really soft source.

B) Even a sharp source becomes blurry if you upscale it a lot.

Doesn't matter which scaling algorithm you use. Even Lanczos8 and NNEDI3 become soft if you upscale an image a lot. The amount of softness introduced by upscaling is probably linear to the upscaling factor, I think. My hope here is that we can find a way to setup the "upscaling refinement" in such a way that every source maintains its natural sharpness after upscaling, regardless of which upscaling factor is used. I would like to find upscaling refinement settings which we can setup once and then forget, settings which work for any source and any upscaling factor. And I think the "secret" to make this work is by splitting the upscaling into multiple 200% upscaling steps. For each such step we apply a specific amount of sharpening, just so that the image afterwards has roughly the same sharpness as the source. If we do that, we can repeat the 200% upscaling steps multipe times, and still end up with the same sharpness the source had.

At least that's the idea. I think the option "refine the image after every ~2x upscaling step" should be the right one to use to realize the above approach. But for testing purposes I want to let you choose to only apply upscaling refinement once after all upscaling is done, so you can compare the effect this option has.

-------

Some specific questions I'd like to get an answer for:

1) In my tests medium "error upscaling quality" was quite a bit faster than high, while producing almost the same quality. Do you agree? Can I drop the "high" setting and simply always use "medium"?

2) It seems that running FineSharp and LumaSharpen *before* SuperRes has a much smaller effect than running them afterwards. So my question would be: Which in your opinion produces the better results: Running FineSharp / LumaSharpen before or after SuperRes?

3) Which combination of settings do you like most? SuperRes alone? Or in combination with FineSharp and/or LumaSharpen? Or maybe just FineSharp?

4) Does using the upscaling refinement options change your preferred upscaling/doubling algorithm? Which did you prefer without upscaling refinement? Which do you prefer with upscaling refinement?

5) Which SuperRes parameters do you like?

6) For experts: When upscaling with a large factor, which results in more than just one refinement pass (see debug OSD), do you prefer to refine the image after every ~2x upscaling step? Or do you prefer to refine the image only once after upscaling is complete? Of course when refining the image after every ~2x upscaling step, you should lower the values/passes to make the overall refinement strength more similar to refining only once.

7) For experts: Considering my goal (see above) to find a setting which works for every upscaling factor to maintain the sharpness of the original goal, which exact upscaling algorithm and which upscaling refinement options do you like? I'm hoping to end up with just a low/medium/high setting, where high would maintain the exact source sharpness, and where medium and low would be toned down settings do apply less strong sharpening. Low should provide a small but noticeable sharpness boost (compared to no refinement at all). Medium should be in the middle between Low and High.

P.S: Forgot:

8) Do you prefer "linear light" for FineSharp turned on or off?
9) Do you like the LumaSharpen "experimental limiter" turned on or off?

Thanks!! :)

madshi
5th June 2015, 16:59
Yep. The only way I can get the queues to fill is to reduce how many video frames shall be presented in advance to 6.

Downgrading to madVR 0.88.8, all queues fill perfectly fine. Any version newer than that, it doesn't. Isn't the workaround in 0.88.11 suppose to fix the issue and bring functionality back towards the latest build it worked? For what it's worth, using x64 version.
Oh well. If you're willing to run some tests, I could make a couple of test builds to get to the bottom of this problem on your PC. You'd need to be available for tests, though, with a reasonable reply speed, for that to make sense. What do you think?

Oh damn, I feel so horrible that Shiandow's de-banding algorithm was pulled. Maybe in the future that algorithm will get much better? I shouldn't have criticized it...:(.
Don't feel bad. I asked for feedback, and Shiandow wanted honst feedback, too. It would have helped nobody if you simply praised both algorithms. The feedback in this thread helped Shiandow to noticeably improve the quality of his algorithm. So I'm sure he doesn't regret the whole feedback and algorithm refinement cycle we did in this thread. His algorithm isn't "lost", it will be used in other renderers, just not in madVR (at least for now). FWIW, my decision was based on the feedback of several users, not just you alone.

madshi - thanks for the new madVR version! Should previous versions be uninstalled before replacing files with new version of madVR? Or maybe settings should be reset before replacing old madVR files with new ones? Are those proper instructions?
You can do that, but you don't have to. You can simply replace the files.

One more issue I have had with madVR for a VERY long time. Its about madTPG. Whenever I use dispcalGUI and madTPG, I set madTPG to "Use FullScreen" and "Stay on Top". Yet, at times when calibration starts, madTPG expands to FullScreen, but no patterns are shown. Then I press Esc or Alt+Tab and notice there is another madTPG window in the background that does display patterns. Now I always make sure there is only ONE madTPG process and only ONE mad* home cinema control process. I tried to toggle between "Disable OSD" enabling and disabling, but that made no different. Pretty much, I have to use madTPG in window mode, which is no big deal, but I don't understand why FullScreen mode creates this problem...
I think ArgyllCMS/dispcalGUI try to connect to the running madTPG instance, and if that fails they start a new instance themselves. So in your case it seems that sometimes ArgyllCMS/dispcalGUI seem to be unable to connect to the already running madTPG instance for some reason. I don't know why. It probably has nothing to do with FSE mode. I can't reproduce it on my PC. And seemingly the ArgyllCMS/dispcalGUI devs can't reproduce it, either, or they would have complained to me. So there probably isn't much we can do. You could try to narrow down the exact circumstances when this happens. Maybe that would help, or maybe not.

Is there any way to install or use madVR without administrator rights?
I think you do need at least to register the ax file using regsvr32.exe, to make most media players be able to use madVR. I'm not 100% sure if that's possible without admin rights, but I rather don't think so, because registering madVR means writing to registry keys which probably can't be written to without admin rights. There are some media players which can run madVR without installing it, though. I think JRiver MC does that. But I don't know if JRiver MC itself requires admin rights during installation or not...

Vyral
5th June 2015, 17:29
My feedback about "upscaling refinement" :
When upscaling from 720 to 1080 with Jinc 3AR, the image was a little bit blurry.
I've tested LumaSharpen and SuperRes but they were too strong for me.
I'm currently using FineSharp with a strength of 1.0 and linear light, everything else is default (mode=1 ; thinning=0.019 ; repair=0.25), and I'm very satisfied with it.

madshi
5th June 2015, 17:40
My feedback about "upscaling refinement" :
When upscaling from 720 to 1080 with Jinc 3AR, the image was a little bit blurry.
I've tested LumaSharpen and SuperRes but they were too strong for me.
I'm currently using FineSharp with a strength of 1.0 and linear light, everything else is default (mode=1 ; thinning=0.019 ; repair=0.25), and I'm very satisfied with it.
I like FineSharp a lot, too. But FWIW, LumaSharpen und SuperRes can be toned down, too, of course, e.g. by reducing the SuperRes passes, or all of the parameter numbers. It's a lot of values you can adjust, so it's kinda hard to "test it all". I know...

Of course 720 to 1080p is a rather small scaling factor (1.5x), so there the refinement options have a quite strong effect. If you choose a bigger upscaling factor (e.g. "Double Size" in MPC-HC), the sharpening by all the algorithms would be less strong. That's something I'll need to take into account, too, when defining the final Low/Medium/High settings.

SecurityBunny
5th June 2015, 17:48
Oh well. If you're willing to run some tests, I could make a couple of test builds to get to the bottom of this problem on your PC. You'd need to be available for tests, though, with a reasonable reply speed, for that to make sense. What do you think?


Sure thing. I'm free. :)

baii
5th June 2015, 17:53
Since upscaling is gonna get mentioned, I need some help on setting profile with scale factor. Not sure if I did it wrong

if (scalingFactor.x > 1 ) "upscale"

else "normal"

This is my profile rule, but don't seem to always work? Am I missing something?

My initial impression of the refinements are that

the default strength (2.0) for fine sharp is lil bit high~
lumasharpen is cheap to use
superres for 720p+ source is pretty demanding.

Anima123
5th June 2015, 18:16
madshi,

Does upscaling refinement works for other upscaling algorithms, like Jinc or Bicubic? And how does it differs to image doubling algorithms, as NNEDI3 or NEDI?

madshi
5th June 2015, 18:26
Sure thing. I'm free. :)
Great! Then please start with creating a debug log with 30 seconds of playback, using v0.88.11. Those 30 seconds should show how the queues are not filing. Please try to avoid switching back and forth between windowed <-> FSE all the time, to make the log easier to understand. Upload to e.g. tinyupload.com or similar site. Thanks!

This is my profile rule, but don't seem to always work? Am I missing something?
I don't know. Some more details would be helpful. Which video and target resolutions does it work with and which not? For each such combination please post the "movie resolution" and "target rectangle" information from the debug OSD (Ctrl+J). Just the text, no screenshots, please.

Does upscaling refinement works for other upscaling algorithms, like Jinc or Bicubic? And how does it differs to image doubling algorithms, as NNEDI3 or NEDI?
Yes, it even works for Bilinear upscaling.

Jinc, Bicubic, NNEDI3 and NEDI are all upscaling algorithms.

The upscaling refinement stuff instead is some sort of sharpening/enhancement, which is applied to the video frame after upscaling.

foozoor
5th June 2015, 18:29
This is what I use to improve/enhance my videos with vapoursynth.
After a lot of experimentations, this is the best for me for almost any videos.
I think it will be possible with madvr.

This is my post processing chain:

1) Uscale with needi3 (1,5x or 2x).
2) Sharpen with FineSharp with low strength (0,8 to 1,5).
3) Rescale the video to its original resolution, I use spline64.
4) Debanding.

Anima123
5th June 2015, 18:31
Yes, it even works for Bilinear upscaling.

Jinc, Bicubic, NNEDI3 and NEDI are all upscaling algorithms.

The upscaling refinement stuff instead is some sort of sharpening/enhancement, which is applied to the video frame after upscaling.

When using SuperRes with Bicubic, for example, the SuperRes works directly on the targeted image size, right? While the image doubling algorithms might need to be downscaled or upscaled if the target size is not exactly 2x or 4x?

There's a lot of combinations to be tried and tested.

SecurityBunny
5th June 2015, 18:43
Great! Then please start with creating a debug log with 30 seconds of playback, using v0.88.11. Those 30 seconds should show how the queues are not filing. Please try to avoid switching back and forth between windowed <-> FSE all the time, to make the log easier to understand. Upload to e.g. tinyupload.com or similar site. Thanks!


I'm assuming I just run the 'activate debug mode' bat file to toggle debugging mode? Running it outputs;

Access is denied.
Access is denied.
Access is denied.
Access is denied.
activating debug mode failed

Running it as admin outputs;

file "madVR.ax" not found (Though it does exist in the folder!)

Anyways, manually renamed the debug .ax file to madVR64.ax to get the log. Ran a video for 30 seconds. It created a log file 110MB in size.

Debug log: https://www.dropbox.com/s/hi8yiom7xcwayc3/madVR%20-%20log.txt?dl=0

D3D11 FSE, 10-bit, x64 player
Queues are set to the following.

CPU queue size: 24
GPU queue size: 20
frames in advance: 16

Queue fill rate was displaying as the following.

Decoder queue - 22-25/24
Upload queue - 17-20/20
Render queue - 1-5/20
Present queue - 1-8(9, bouncing around)/15

Let me know if you need me to export my madVR registry settings or test with more specific video conditions. (10 bit, 23.976 fps, etc.)

Asmodian
5th June 2015, 18:54
When using SuperRes with Bicubic, for example, the SuperRes works directly on the targeted image size, right? While the image doubling algorithms might need to be downscaled or upscaled if the target size is not exactly 2x or 4x?

There's a lot of combinations to be tried and tested.

Even when using doubling SuperRes (all enhancements) only run once per ~2x or once (depending on the setting). e.g. SuperRes doesn't run immediately after doubling, it runs after scaling to the target resolution.

Though there is still a lot of testing to do, of course. :D

I have noticed I prefer SuperRes only on high quality and high resolution sources, FineSharp on high quality sources, and LumaSharpen otherwise.

Both SuperRes and FineSharp seem to enhance detail (artifacts) very well.

I need to do more testing but all my fine tuning (so far) needs to be thrown out when I switch sources, even when they the same resolution.

madshi
5th June 2015, 19:15
This is what I use to improve/enhance my videos with vapoursynth.
After a lot of experimentations, this is the best for me for almost any videos.
I think it will be possible with madvr.

This is my post processing chain:

1) Uscale with needi3 (1,5x or 2x).
2) Sharpen with FineSharp with low strength (0,8 to 1,5).
3) Rescale the video to its original resolution, I use spline64.
4) Debanding.
So basically you're "oversampling"? Meaning you upscale to a higher resolution than the source, then sharpen in the higher resolution, then downscale again? That's a lot of processing. Does the upscaling + downscaling really bring that much benefit?

When using SuperRes with Bicubic, for example, the SuperRes works directly on the targeted image size, right? While the image doubling algorithms might need to be downscaled or upscaled if the target size is not exactly 2x or 4x?
When using SuperRes with Bicubic, still the upscaling is split into several doubling steps, before reaching the final resolution. It depends on the scaling factor, though. If the overall scaling factor is e.g. 4.1x, then with Bicubic the image is doubled to 2.0x, then scaled to 4.1x, and upscaling refinement is performend twice. With an overall scaling factor of e.g. 2.1x, scaling is only done once directly to the target resolution and upscaling refinement is only performed once.

The above applies only when "refine the image after every ~2x upscaling step" is activated, of course.

I'm assuming I just run the 'activate debug mode' bat file to toggle debugging mode? Running it outputs;

Access is denied.
Access is denied.
Access is denied.
Access is denied.
activating debug mode failed
Probably the batch needs write access to the madVR folder for your normal non-admin user to work correctly, I suppose. Not sure why it doesn't work as admin, though. Anyway, doing the renaming manually works, too, of course.

Debug log: https://www.dropbox.com/s/hi8yiom7xcwayc3/madVR%20-%20log.txt?dl=0
Argh, stupid me, my workaround didn't work properly. Does the following release mode test build work better? If not, try lowering the number of prepresented frames once again:

http://madshi.net/madVR8811test.zip

SuperRes doesn't run immediately after doubling, it runs after scaling to the target resolution.
It always does run immediately after doubling, if I remember my own code correctly. Whether that's a good idea is another question. Probably in the last step I should only run it after scaling is complete, instead.

I have noticed I prefer SuperRes only on high quality and high resolution sources, FineSharp on high quality sources, and LumaSharpen otherwise.

Both SuperRes and FineSharp seem to enhance detail (artifacts) very well.

I need to do more testing but all my fine tuning (so far) needs to be thrown out when I switch sources, even when they the same resolution.
Don't say that, it lowers my hope for finding a simple setting that works for every source... :(

No, of course do say that, I want to hear the truth, even if I don't like it...

6233638
5th June 2015, 19:16
Was this a one-time-only problem, or does it happen every time? Does this only happen with madTPG, or also with your media player?Every time with madTPG. Doesn't seem to have been an issue with video playback that I've seen.
It even happens without CalMAN being open. Double-clicking the madTPG window to exit full-screen mode results in a black screen and I have to hit Esc to close madTPG to get rid of it.
EDIT: Seems to intermittently work with this test build (http://madshi.net/madVR8811test.zip). Prior to that it would black out 100% of the time. Now it's more like 75% of the time.

I think the ideal approach would be to run madTPG on your HTPC, and then to use a laptop to run CalMAN. If you have to run both on the same PC, then yes, maybe that's currently not as smooth an experience as it could be. It's not something I can fix on my own, though. Would have to work with Calman together on that.That does seem like it would be best, though the only laptops I have access to right now are Macs which can't run CalMAN or madTPG.
I understand that this may not be something you can change on your own, though it would be good if some sort of "single display mode" where madTPG only shows during measurements could be supported - ideally with CalMAN pausing at the beginning of each set to allow the switch into FSE.

James Freeman
5th June 2015, 19:22
@madshi

I noticed an unexpected behavior in the bitdepth conversion in madVR with the OS profile.
I bought an aliexpress chinese LED projector for quick testing, and I noticed it only accepts 6bit without banding.
With 8bit+D smooth pattern has huge bands, while 6bit+D is smooth; From this I deduct that these chinese projectors only accept 6bit and lower without banding.
Bless you for having the option to select output bitdepth in madVR!

Now for the problem I see,
When I output 6bit+D smooth pattern from madVR without OS .icm color management profile, i see no banding at all...Smooth.
When I turn ON the OS color management I see (rainbow) banding with 6bit+D even though it was smooth, to get the pattern smooth again (without rainbow banding) I have to lower the bitdepth to 4bit+D in madVR...??
With 3DLUT the pattern is smooth with 6bit+D with no rainbow banding.

I can only guess that there is something wrong with bitdepth conversion in madVR of the OS profile.
Judging by eye, 4bit is actually higher when using OS profile because I see no dithering or banding, but it is correct(lower) when using 3DLUT and the dithering pattern is a lot more visible.

Let me rephrase,
8bit = banding -> crap projector.
NO system profile 6bit+D = Smooth.
System profile 6bid+D = rainbow banding.
3DLUT 6bit+D = Smooth.
System profile 4bid+D = Smooth with no dithering visible or rainbow banding.
3DLUT 4bit+D = Smooth but heavy dithering visible.

I think there is a miss match between 3DLUT and System Profile bit depths in madVR.
Please look into it.

Thanks

------

Thank you for 88.11, I'll be testing the image enhancement and report.
And congratulations for the new website... may I say, FINALLY!

SecurityBunny
5th June 2015, 19:36
Probably the batch needs write access to the madVR folder for your normal non-admin user to work correctly, I suppose. Not sure why it doesn't work as admin, though. Anyway, doing the renaming manually works, too, of course.

Only have one user and it is an administrator account. Should have full permission access to the madVR folder. If I had to guess why running as admin doesn't work, perhaps it is related to how running command prompt as admin changes the default directory to system32 instead of the user folder?


Argh, stupid me, my workaround didn't work properly. Does the following release mode test build work better? If not, try lowering the number of prepresented frames once again:

http://madshi.net/madVR8811test.zip

Unfortunately not. Same queue numbers as before. And similar to before, have to reduce prepresented frames to 6 to get it to fill completely. (Am able to use 8-16 perfectly fine with 0.88.8.)

v0lt
5th June 2015, 19:44
@madshi
Frame rate = 59.94, refresh rate = 75 Hz, madVR writes: "1 frame repeat every 3.89 minutes". I think it is wrong.

Budtz
5th June 2015, 19:45
Im very happy with just using finesharp. I do hope the option to ajust strength of sharpnes does not get reduced to low/medium/high. Also i am hoping for limitedsharpenfaster as i can not get it stable with avisynth. I know expanded shadersupport is needed for this one.

madshi
5th June 2015, 19:47
Every time with madTPG. Doesn't seem to have been an issue with video playback that I've seen.
It even happens without CalMAN being open. Double-clicking the madTPG window to exit full-screen mode results in a black screen and I have to hit Esc to close madTPG to get rid of it.
EDIT: Seems to intermittently work with this test build (http://madshi.net/madVR8811test.zip). Prior to that it would black out 100% of the time. Now it's more like 75% of the time.
Hmmmm... I seem to be able to reproduce the issue - but only when doubling clicking. Try Alt+Enter, that works for me. For you, too?

I noticed an unexpected behavior in the bitdepth conversion in madVR with the OS profile.
I bought an aliexpress chinese LED projector for quick testing, and I noticed it only accepts 6bit without banding.
With 8bit+D smooth pattern has huge bands, while 6bit+D is smooth; From this I deduct that these chinese projectors only accept 6bit and lower without banding.

Now for the problem I see,
When I output 6bit+D smooth pattern from madVR without OS .icm color management profile, i see no banding at all...Smooth.
When I turn ON the OS color management I see (rainbow) banding with 6bit+D even though it was smooth, to get the pattern smooth again (without rainbow banding) I have to lower the bitdepth to 4bit+D in madVR...??
It is known that the OS color management and DXVA color management sucks.

It is known, khaleesi.

Unfortunately not. Same queue numbers as before. And similar to before, have to reduce prepresented frames to 6 to get it to fill completely. (Am able to use 8-16 perfectly fine with 0.88.8.)
Ok, could you please create another debug log with this build:

http://madshi.net/madVR8811test2.zip

Frame rate = 59.94, refresh rate = 75 Hz, madVR writes: "1 frame repeat every 3.89 minutes". I think it is wrong.
Yes, that looks weird.

SecurityBunny
5th June 2015, 19:51
Ok, could you please create another debug log with this build:

http://madshi.net/madVR8811test2.zip


Debug log: https://www.dropbox.com/s/hi8yiom7xcwayc3/madVR%20-%20log.txt?dl=0

Same results as before - unfilled queues with high prepresented frames.

RainyDog
5th June 2015, 20:07
Hi madshi,

Thanks for including LumaSharpen. I did some testing and here is some feedback:

Looks like currently you are using the old version of LumaSharpen, which is 1.4.1. Current version is 1.5.0, which is included with Reshade + SweetFX bundle. I have already modified it for MPC-HC use, you can find it here (http://pastebin.com/rxDjqmGg).
Current madVR implementation uses Pattern 2 (9 tap gaussian, 4+1 texture fetches), although it looks nice on video games it doesn't look that good when it comes to videos (http://forum.doom9.org/showthread.php?p=1673897#post1673897). In my opinion, it would be better if you'd include the other patterns as options.
This is more of a personal request: I am normally used to MPC-HC's shader management. For instance I do always apply LumaSharpen, no matter if there is resizing or not. With madVR even though I can use profiles it gets complicated in this case. Because sometimes I watch videos downsized in windowed mode, which LumaSharpen does not apply unless it is pre-resize. And pre-resize and post-resize(upscale) applications of LumaSharpen is quite different from each other and requires additional fiddling. It would be nice if there would be an option to apply LumaSharpen always as post-resize.


If you're looking for feedback for LumaSharpen madshi, I remember seeing this post a few weeks ago and it seems to have been lost amongst the influx of new stuff happening at the time.

The first two points are certainly important things for you to look into. In the original SweetFX thread (http://forum.doom9.org/showthread.php?t=170357&highlight=sweetfx) opinion was unanimous that Pattern 3 was better for video than Pattern 2.

6233638
5th June 2015, 20:22
Hmmmm... I seem to be able to reproduce the issue - but only when doubling clicking. Try Alt+Enter, that works for me. For you, too?When using that test build, I tried maybe 50 times and did not see a black screen when hitting alt+enter.
The first time that I tried double-clicking after that, it turned black again.
After I got the first black screen, even using alt+enter results in a black screen every time.

I'll also point out that prior to 0.80.11 and that test build, I did try using alt+enter and was still getting black screens occasionally.

krille
5th June 2015, 20:48
I get a lot if dropped frames if I enable madvr;s debanding. Also the queues does not stay stable.

cyberscott
5th June 2015, 21:31
Hope v0.88.11 is working fine for you?


It works as well as test build 5 in DSD11 10 bit exclusive mode. As long as I set the "presented in advance" frames to 4 it works ok, though I do tend to take more repeated and dropped frames with higher scaling settings and when things get "busy" on video with action and/or a lot of subtitles displaying at the same time. I've attributed this to the lower pre-presented frames and not enough frames in advance to compensate for all the action /subtitles on screen.
It was more stable on v0. 88.8 in DSD11 10 bit exclusive on several of my "test" videos due to being able to set the pre-presented frames higher. When not in 10 bit mode, all is well with the queues.
It looks like other have started to chime in about the pre-presented queues not totally filling in DSD11 10 bit mode after build v.088.8. I was beginning to wonder if I was the only one to be experiencing this.
To end on a good note, the revised de-banding is working good for me in this build.

vivan
5th June 2015, 22:11
I get a lot if dropped frames if I enable madvr;s debanding. Also the queues does not stay stable.This mean that your hw is not fast enough / your settings are too demanding.
What about rendering time? Video fps, display and video resolution? What is your hardware?

tobindac
5th June 2015, 22:18
yeyy, still no "ding" from the installer.

GCRaistlin
5th June 2015, 22:42
FWIW, madVR is reporting the detected refresh rate via the madVR interface. If Reclock wanted, it could get the refresh rate from there.
Does it mean that ReClock icon could be yellow because it detects the refresh rate incorrectly? My projector supports 24 Hz, and madVR is customized to switch the projector to this mode while playing 24/23.976 fps movies, but ReClock goes yellow almost always. I have to manually change the video playback rate to get the green icon.

There is an issue with 0.88.10 and 0.88.11: the playback freezes sometimes. It happens to me a couple of times on two different BDRemuxes. The issue is unstable; I've tried to reproduce it later (same video, same time, same player, etc.) but had no luck. Maybe the issue was introduced in one of the earlier 0.88.x builds - I can't use them on the regular basis because of http://bugs.madshi.net/view.php?id=284. But I've never experienced it on 0.87.14. WinXP, GF 8800 GT, driver v340.52.

nlnl
5th June 2015, 22:52
madshi
Tested new image ehancement option using this image https://cloud.mail.ru/public/AbGY/UwuASurxH
The results:
Fine Sharp ON
http://i71.fastpic.ru/thumb/2015/0606/71/13ccff64eada2845eb182c947ee5e371.jpeg (http://fastpic.ru/view/71/2015/0606/13ccff64eada2845eb182c947ee5e371.png.html)
FS OFF
http://i71.fastpic.ru/thumb/2015/0606/48/63c8ef050be3d12bf0a61c92cbe5da48.jpeg (http://fastpic.ru/view/71/2015/0606/63c8ef050be3d12bf0a61c92cbe5da48.png.html)

Can not see horisontal lines when FS OFF and the same with SuperRes filter OFF for chroma upsampling.

krille
5th June 2015, 23:07
This mean that your hw is not fast enough / your settings are too demanding.
What about rendering time? Video fps, display and video resolution? What is your hardware?

Intel Corei5 2400, Nvidia gtx 960. Rendering g times 5,5 ms average, 7,4 ms max. 1080p mkv, gpu usage about 14%.

Hade the same problem with 0,88.10, but then I could use Shiandows debanding witch caused no problems.

MS-DOS
5th June 2015, 23:09
Intel Corei5 2400, Nvidia gtx 960. Rendering g times 5,5 ms average, 7,4 ms max. 1080p mkv, gpu usage about 14%.

Hade the same problem with 0,88.10, but then I could use Shiandows debanding witch caused no problems.

Do you have a trade option "don't render frames when fade in\out is detected" checked ?

krille
5th June 2015, 23:20
Do you have a trade option "don't render frames when fade in\out is detected" checked ?

Oh, great, that solved the problem! Thanks a lot MS-DOS! :)

XMonarchY
6th June 2015, 00:02
Now that we moved on to Image Refinement, may I ask - what exactly is the different between LumaSharpen, FineSharp, and SuperRes? I assume they deal with increasing sharpness, which is a bit odd because AFAIK madVR was all about making the image as soft as possible. I guess overwhelming popular requests for these options made them possible, especially the LumaSharpen option.

I tested default settings LumaSharpen (Image Enhancement) and default settings FineSharp (Image Enhancement) with both HQ and MQ content, but I did not like either at all. Both features made dithering, noise, blockiness, banding, or artifacts more obvious/visible/emphasized in MQ, LQ, and even moderately HQ content. Its like these settings canceled all the madVR's image improvement through softness. LumaSharpen and FineSharp were only helpful in absolute best HQ content (full BD's, not rips). I have not tested LumaSharpen and FineSharp Upscaling Refinement.

SuperRes as a Chroma Upscaling filter and as Image Refinement option seem to improve overall image quality, making it slightly sharper, but without emphasizing the blockiness, noise, dithering, artifacts, or banding in LQ, MQ, and HQ content. I wish I knew exactly what SuperRes was doing (without getting too technical) so I could look for those specific effects.

Shiandow
6th June 2015, 00:09
SuperRes as a Chroma Upscaling filter and as Image Refinement option seem to improve overall image quality, making it slightly sharper, but without emphasizing the blockiness, noise, dithering, artifacts, or banding in LQ, MQ, and HQ content. I wish I knew exactly what SuperRes was doing (without getting too technical) so I could look for those specific effects.

I commented on that a while back, but it might be a good idea to repeat it here:

There have been some changes to the algorithm, although the general idea has remained more or less the same. The steps now look more like the following:


Calculate an initial guess (using a different upscaler)
Downscale and calculate differences with original image.
Scale those differences to the final size
Improve guess by:

Softening the image
Subtracting differences with the original image
Sharpening (optional)
Removing aliasing (optional)
Removing ringing (optional)

Repeat steps 2-4 several times.


It basically tries to bring the upscaled image closer to some "ideal" image with no aliasing / ringing / blurriness, while remaining faithful to the original image.

huhn
6th June 2015, 01:33
It basically tries to bring the upscaled image closer to some "ideal" image with no aliasing / ringing / blurriness, while remaining faithful to the original image.

and that works pretty awesome.

MysteryX
6th June 2015, 05:05
SuperRes is very expensive on the GPU so I definitely can't run it more than once. For me, it's only working on 288p videos with 1 pass, and I have to say I love the result. it greatly enhances the image of low-quality videos. If quadrupling resolution, would it be better to run SuperRes twice with 1 pass or once with 2 passes?

The TV already has image enhancing features so I'm disabling those when the output is the TV, except SuperRes for 288p videos.

When displaying on the laptop screen, I like LumaSharpen but find FineSharp too strong. This is useful for low quality videos and low quality videos often have bad artifacts. Sharpening amplifies the artifacts.

Again, I love SuperRes but it is expensive to run, and somehow it is much more expensive than it should on 480p videos.

James Freeman
6th June 2015, 06:09
With 88.11 mpc-hc the queues emptying and will NOT filling back up after I seek, thus the videos stuttering after seeking.
I need to pause or exit full screen (not FSE) to "refresh" the queues.

EDIT:
Sometimes it happen all by itself without seeking.

EDIT2:
*On secondary screen only!

mogli
6th June 2015, 06:40
[...] However since v0.88.x with D3D11 activated (and frame for every VSync off) very rarely randomly in a movie drops and glitches start to occur at about 20 per second [...]
Some more with 'present a frame for every VSync' turned off:
Found a NTSC file which reliably causes constant glitches only in FSE mode [...]
As of v0.88.11 this doesn't happen anymore both with 'present a frame for every VSync' on or off. This applies both to the mentioned NTSC file and also to it happening seemingly randomly on other material.
So whatever you did mashi, thanks for that!

huhn
6th June 2015, 13:38
here my founds about superres so far.

superres can make bilinear into a ok resizer.

i never saw a picture where anti ring even at 1.0 would harm the picture. i totally love it!

anti aliasing can create out of place pixels when set over 0.30. i'm not a huge fan of it.

finesharp:

i don't like the results of it. it is simply not neutral on my test even at weak strength.

lumasharpen:

lumasharpen can create ringing/holoing when the radius is over 1.0. but i think it is very useful at radius 1.0.

i currently use these settings upscale refinement:

LumaSharpen:

S=0.70 C=0.035 R=1.0 no limiter

SuperRes
passes 1 quality medium (i never saw any benefits from high)
strenght 0.40 sharpness 0.25 softness 0.25 anti-aliasing 0.20 anti-ringing 1.00

upscaler is currently jinc 3 LL AR.

cyberscott
6th June 2015, 16:14
My thoughts about SuperRes and LumaSharpen under upscaling refinement.
LumaSharpen at default setting works real well , gives video a bit more pop.
SuperRes works well, especially with upscaled standard definition vidoes and I currently have it set to medium with the following...:
passes 2, strength .40, sharpenss, .25, anti-aliasing .25 and anti-ringing at 1.0
Setting SuperRes to high shows a slight improvement in picture quality but at a high cost of around 10-12 milliseconds in rendering time so I just keep it at medium.

XMonarchY
6th June 2015, 16:28
here my founds about superres so far.

superres can make bilinear into a ok resizer.

i never saw a picture where anti ring even at 1.0 would harm the picture. i totally love it!

anti aliasing can create out of place pixels when set over 0.30. i'm not a huge fan of it.

finesharp:

i don't like the results of it. it is simply not neutral on my test even at weak strength.

lumasharpen:

lumasharpen can create ringing/holoing when the radius is over 1.0. but i think it is very useful at radius 1.0.

i currently use these settings upscale refinement:

LumaSharpen:

S=0.70 C=0.035 R=1.0 no limiter

SuperRes
passes 1 quality medium (i never saw any benefits from high)
strenght 0.40 sharpness 0.25 softness 0.25 anti-aliasing 0.20 anti-ringing 1.00

upscaler is currently jinc 3 LL AR.

Is that for LQ, MQ, HQ, or full BD-quality content? LumaSharpen with LQ and MQ content makes blockiness more obvious to me, so I thought it would be useful if we provided feedback for different quality content.

MS-DOS
6th June 2015, 16:55
For AMD users who have slower NNEDI3 with the drivers newer than 13.12, put these two dlls (http://www11.zippyshare.com/v/291t9BAD/file.html) in your MPC-HC x64 folder and see. They're from 13.12 package I stored before moving from it to 15.5 beta.

huhn
6th June 2015, 17:25
Is that for LQ, MQ, HQ, or full BD-quality content? LumaSharpen with LQ and MQ content makes blockiness more obvious to me, so I thought it would be useful if we provided feedback for different quality content.

i'm currently looking for general issues like anti aliasing at 1.5 or things like that.

QBhd
6th June 2015, 18:05
For AMD users who have slower NNEDI3 with the drivers newer than 13.12, put these two dlls (http://www11.zippyshare.com/v/291t9BAD/file.html) in your MPC-HC x64 folder and see. They're from 13.12 package I stored before moving from it to 15.5 beta.

Could you just list the dll's so I can test on my own... I don't download such files

QB

MysteryX
6th June 2015, 18:25
I honestly am not noticing much debanding in the videos.

Shiandow's debanding algorithm seemed more to be an image enhancement than a debanding algorithm. It was doing a pretty good job without being expensive, but I'm not sure what it was actually doing.

Shiandow produces a slightly sharper image in a way that looks more natural and neutral than FineSharp.

noee
6th June 2015, 18:30
Could you just list the dll's so I can test on my own... I don't download such files

QB

amdocl64.dll
opencl.dll

huhn
6th June 2015, 18:51
I honestly am not noticing much debanding in the videos.

Shiandow's debanding algorithm seemed more to be an image enhancement than a debanding algorithm. It was doing a pretty good job without being expensive, but I'm not sure what it was actually doing.

Shiandow produces a slightly sharper image in a way that looks more natural and neutral than FineSharp.

debanding algo doesn't sharp anything. the image doesn't get any sharper.

krille
6th June 2015, 19:37
If I choose to double luma resolution with NNEDI3 the render queue doesnt fill up. It says 6-7/8. Does that matter at all?

huhn
6th June 2015, 20:02
If I choose to double luma resolution with NNEDI3 the render queue doesnt fill up. It says 6-7/8. Does that matter at all?

if no frames drop you should be fine it is still strange.

AngelGraves13
6th June 2015, 22:46
We need a deblocking option sometime in the future. The debanding works well enough.

XRyche
6th June 2015, 23:15
SuperRes is very expensive on the GPU so I definitely can't run it more than once. For me, it's only working on 288p videos with 1 pass, and I have to say I love the result. it greatly enhances the image of low-quality videos. If quadrupling resolution, would it be better to run SuperRes twice with 1 pass or once with 2 passes?


Again, I love SuperRes but it is expensive to run, and somehow it is much more expensive than it should on 480p videos.

That's weird. I found SuperRes to make quality considerably worse with super lo-res material (240-360p) . The more passes I have it do the worse the effect. Most of my super lo-res material is DVR/TIVO/VHS/Capture card rips from late 90's to mid 2000's. Needless to say they aren't pristine, tbh though, I don't think you will get pristine image quality at those resolution anyways. If there is any type of blocking or aliasing it makes matters worse. When I try to compensate with increasing softness or anti-alaising it creates very weird artifacts. I lack the knowledge to properly describe it but, it looks like I put plastic wrap over my screen. Strange distortions on edges and such. This is leaving the settings at default. It gets much worse when increasing softness or anti-alaising to compensate.

That being said SuperRes works quite well with good 480p and up material. With a good DVD (Friends Box Set) it can improve the image quality rather nicely even at default settings.

(EDIT)I forgot to add that SuperRes works quite well for Chroma with Jinc. It makes the colors crisp and distinctive without adding any artifacts I can see regardless of the resolution. Also when upscaling I actually prefer using SuperRes each time the image is doubled. It seems to improve perceived sharpness better that way.(EDIT)


I've pretty much stay away from LumaSharp because for me it tends to introduce too much aliasing at strengths it looks like it is doing any good to me. MadVR's version is no exception. Not to say LumaSharpen is bad by any means. I use it a lot for video games :D . It just doesn't do it for me with video.

Finesharpen is actually pretty nice for me with scaling 720p to 1080p. It adds just enough subtle sharpening to make a difference.

This is all for upscaling. I prefer not to use any sharpening for downscaling on the rare occasions I have to downscale.