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

noee
23rd January 2014, 22:06
Which was your GPU again? Can't remember the GPU of all users. How much do the rendering times differ between v0.86 and v0.87? And do you have debanding on or off?

sorry, HD6570, latest Catalyst

Jinc3 w/AR, SD film, 10bit, all explicit OpenCL stuff off (including error diffusion), debanding off.

Avg render FSE mode:
.86: ~23ms (0 dropped frames)
.87: ~25.5ms (constant frame drops)

Not that different. But the render queue is full on .86 and on .87, it hovers at "0-3".

cyberbeing
23rd January 2014, 22:06
I'd like to get a debug log with this new test build with error diffusion activated. Thanks.

There is a slight problem, since you haven't provided a debug version of the new test builds.

sneaker_ger
23rd January 2014, 22:09
Too bad. Still same amount of crashing?

I left a note on the bug tracker.

For others:
If you experience crashes after updating from 0.86.11 to 0.87 and are using EMET (http://microsoft.com/EMET), try turning it off. Worked for me. (Yet again time wasted because of this that could've gone into other things, sorry...)

madshi
23rd January 2014, 22:15
sorry, HD6570, latest Catalyst

Jinc3 w/AR, SD film, 10bit, all explicit OpenCL stuff off (including error diffusion)

Avg render FSE mode:
.86: ~23ms (0 dropped frames)
.87: ~25.5ms (constant frame drops)

Not that different. But the render queue is full on .86 and on .87, it hovers at "0-3".
Hmmmmm... Forced film mode? I did a small change to the dithering algorithm. That might explain the difference, unfortunately. Not much I can do about it, unfortunately... :(

There is a slight problem, since you haven't provided a debug version of the new test builds.
Stupid me. Here it is:

http://madshi.net/madVR87d.rar

fagoatse
23rd January 2014, 22:26
Out of curiosity, does OpenCL support mean that we can use madvr on lower-end AMD GPU/APUs that would otherwise be too slow to run it? I'm mostly referring to kaveri APUs equipped with really fast ram.

cca
23rd January 2014, 22:35
sorry, HD6570, latest Catalyst

Jinc3 w/AR, SD film, 10bit, all explicit OpenCL stuff off (including error diffusion), debanding off.

Avg render FSE mode:
.86: ~23ms (0 dropped frames)
.87: ~25.5ms (constant frame drops)

Not that different. But the render queue is full on .86 and on .87, it hovers at "0-3".

Having performance issues as well, can barely playback interlaced DVDs without frame drops anymore, even with low resizing settings, no NNEDI, not anti-banding, dropped resizing to Lanczos3 and it still has heavy fluctuations in the render queue. In the previous version I could play the same DVD with Jinc resizing for both luma & chroma, turn smooth motion ON and still have full queues. Now I don't know what causes such huge perfomance hit but if it's OpenCL, I suggest some switch to completely disable it.

detmek
23rd January 2014, 22:36
Is OpenCL supported on Nvidia 9500GT?
Everything works just fine with official 0.87 build and 0.87b but I get dropped frames and empty render queue and backbuffer queue with 0.87d. Just tested for fun and reverted back to official 0.87.
edit:
I tested NNEDI for Chroma and increases rendering times. Is that mean that OpenCL works? Back to Bicubic.

michkrol
23rd January 2014, 22:46
What? The v.087b test build is worse than the official v0.87 build? That confuses me. Are you sure you're testing with the same settings?

Sorry, you're right (again). Seems like it's not a good idea to use "(renderQueue<30)" or similar for some settings, since the profiles get switched almost constantly once even one change is triggered.
Probably because changing them clears the render queue? I'm talking about switching between dxva and normal scaling or turning debanding on/off. Might be worth investigating and perhaps adding some delay to fix this behavior, once you get some free time.

For now, thanks for this release and I'm back to testing :cool:

EDIT: I can easily trigger this behavior with 1080p content, dxva2 downscaling, windowed mode and (renderQueue<30) as a condition to switch debanding off/on. Any other combination of settings works correctly. I'm on Intel HD4000, if that's important.

cyberbeing
23rd January 2014, 22:49
Here are the new test build logs for the OCL dither issue on my GTX 770:

madVR 0.87d OCL Dither debug logs (https://www.mediafire.com/?cgu37g22t21u8r1)

nevcairiel
23rd January 2014, 23:05
Out of curiosity, does OpenCL support mean that we can use madvr on lower-end AMD GPU/APUs that would otherwise be too slow to run it? I'm mostly referring to kaveri APUs equipped with really fast ram.

No, the OpenCL options will need even more performance than before, if anything it'll need a faster system.

Qotscha
23rd January 2014, 23:16
Having performance issues as well, can barely playback interlaced DVDs without frame drops anymore, even with low resizing settings, no NNEDI, not anti-banding, dropped resizing to Lanczos3 and it still has heavy fluctuations in the render queue. In the previous version I could play the same DVD with Jinc resizing for both luma & chroma, turn smooth motion ON and still have full queues. Now I don't know what causes such huge perfomance hit but if it's OpenCL, I suggest some switch to completely disable it.

Same here with Radeon HD 6850. Massive framedrops with videos and settings that worked well with 0.86.11 and latest deband test builds. Render queue is the first one that does not fill.

DragonQ
23rd January 2014, 23:20
So presumably noee, cca, Qotscha, and myself are all having performance issues on different brands of GPUs for the same reason. Hopefully madshi can figure out what the problem is.

DarkSpace
23rd January 2014, 23:24
Thanks for the new build!
Personally, I only need profiling because both hardware deinterlacing and OpenCL is too much for my card apparently, but that's also why I noticed something. I'd like a confirmation before I report it as bug first, though...
I set up a "Don't Use OpenCL" Profile for when I'm hardware deinterlacing and a "Use OpenCL" Profile for when I'm not. Now I noticed that the "Don't Use OpenCL" Profile always gets selected (the name is displayed in bold). Here's the selection code, just in case:

if (srcInterlaced && !filmMode) "Don't Use OpenGL"
else "Use OpenGL"

Did I do it wrong or should I report this as a bug?

Thunderbolt8
23rd January 2014, 23:29
installed .87d, didnt change anything, tested an AVC 60p sample, got framedrops which hasnt happened before. and black picture with openCL

michkrol
23rd January 2014, 23:34
Did I do it wrong or should I report this as a bug?
Change it to (srcInterlaced) && (!filmMode) and try again. Also we do get a built-in validator for the scripts - the small red triangle (bad script) or a small green tick (script ok) near the online help link.
installed .87d, didnt change anything, tested an AVC 60p sample, got framedrops which hasnt happened before.

I might be wrong, but isn't this a debug build of 87c, hence should be slower?

TheShadowRunner
23rd January 2014, 23:40
Hi madshi,
On my system, 0.87.0 has completely killed video playback (black screen at all times and player crashes on exit).
A log: http://videoff7.free.fr/madVR_TSR - log.zip
Thanks for your support.
(Tested with multiple stream types, h264, mpeg2, xvid, multiple decoders, coreavc, ffdshow, lav, same results. Also tested via building a dshow graph manually in graphstudionext, same result = always a black screen)

Thunderbolt8
23rd January 2014, 23:40
I might be wrong, but isn't this a debug build of 87c, hence should be slower?hm right. its much better with the normal .87 build, but still not as good as it used to be.

Devrim
24th January 2014, 01:13
0.87 gives and mpc-hc crash error when starting a video (latest nightly)

fairchild
24th January 2014, 01:34
Thanks as always for continuing to improve MadVR madshi. Latest official version for me is just showing a black screen when using it's deinterlacing (using software decoding with Lav Filters). Also the screen doesn't close when I close the playing file/movie in MPC-HC while in FSE mode. Only when I enable Use a separate device for presentation does it work again like it did. I guess I don't recall if this was the behavior in previous version, as I always enable this option. Anyway I simply disabled deinterlacing and enabled YADIF in LavFilters while you iron out that bug. These are the settings I use and it's working fine at first glance with 0.87.0

MadVR settings

Disable deinterlacing

Use a separate device for presentation

Disable Desktop Composition

disable ALL trade quality for performance options

using chroma upscaling: lanczsos 3 (AR), image upscaling: lanczsos 3 (AR)

Also I am not using debanding.

kazuya2k8
24th January 2014, 02:27
Tried the official 0.87. Looks like working faster even with debanding ON. But turning on anything related to NNEDI3 gives me blank or freezed frame output.

Using GTX 660 factory OC'd with latest driver.

namaiki
24th January 2014, 02:53
My apologies if this has already been reported:

Testing Intel HD4000 with Nvidia 650M (Optimus). I have not replaced C:\Windows\SysWOW64\opencl.dll as was previously suggested. The 650M is selected for use. I have the latest drivers installed (ForceWare 327.02, Intel 3345). I tested with madVR87d. OpenCL error diffusion is not enabled for the below screenshots, but when it is enabled it seems to produce a black image.

How the image normally looks:
http://i43.tinypic.com/10xrlue.jpg

NNEDI Chroma enabled:
http://i43.tinypic.com/2yugkck.jpg
(appears to have a green tint)

NNEDI Chroma and Image doubling both enabled:
http://i40.tinypic.com/2zi0wfd.jpg

NNEDI Image doubling enabled:
http://i42.tinypic.com/4s04th.jpg
(image appears dark and perhaps missing a layer?)

DXVA scaling and nnedi doubling combined does seem to produce a correct image:
https://www.mediafire.com/?mgvmhdovgys5dfr

Note: Video was scaled from 1280x720 to 1920x1080 for 1.5x NNEDI to be enabled.

Logs for the above: https://www.mediafire.com/?wz32v37zzd3u9bj

Original 0.87 was crashing MPC-HC but 87a-d don't.

If I disable Optimus and use the Intel HD4000, the colors are not affected as such but the Intel GPU is too slow for realtime playback.

alquimio_125
24th January 2014, 05:15
InstallFilter.exe crashes when clicking install.bat
It actually finishes installing (MadVR.ax Registered Successfully) but when existing InstallFilter.exe it crashes "(InstallFilter.exe Has Stopped Working" appears.

I have an idea why this could be happening. Doesn't occur on my PC, though. In any case I think installation succeeded, so don't worry too much about this.



I have a similar problem to him. And in my case when I launch a video I get a error box ''Has Stopped working'' and I have to close. I had to revert to a previous version.

kasper93
24th January 2014, 06:57
How madVR performance is compared to SEt's implementation?
Here are my results from AVSMeter on HD5870. I was expecting to get better performance on madVR, at least to get stable playback. I get ~18fps without MT, but with higher thread count I get unstable fps as you can see in log.

https://gist.github.com/kasper93/de93cad4d410a9bcb575
https://gist.github.com/kasper93/ef7b3a0b2165d56b5b0a

Sorry, if you find my post not useful,c but I always though that HD5870 is still powerful enough, and generally OCL performane is not that bad.

With madVR I get ~7fps with NNEDI and ~10fps with dither. I guess OCL is not for me :D

truexfan81
24th January 2014, 07:10
same here, my dualcore 2.9 cpu and gtx650 just can't handle it, using any of the ocl stuff my cpu just sits there pegged at 100% even with 24p xvid :O

Salad
24th January 2014, 07:24
.87 gives me a black screen when playing 25fps video with smooth motion enabled.

AMD Radeon HD 6670, Windows 8.1 x64.

QBhd
24th January 2014, 07:51
Well, all worked flawless for me! And I must say I am impressed! Image is spectacular. Here is my setup:

GPU: R9 270X (DirectCU II TOP, factory OC)
Target Rectangle: 1024x768 (rectangular pixel 720p Plasma, circa 2007)
Chroma: NNEDI3 (32 neurons)
Image Downscaling: Lanczos 4 AR
Deband Default: Medium
Smooth Motion: OFF (I use ReClock with 60Hz & 72Hz refresh rates)
Trade Quality: ALL unchecked
General Rendering settings: FSE, desktop comp disabled, seperate device for presentation.

I just watched a few hours of 720p TV and it was AMAZING! the only fear I have is the 18ms render time. Which is just above the 13.8889ms VSync interval.... I can't remeber if that is a bad thing or not. I know it would be bad if it was more than the frame interval, just not sure about the vsync interval.

The above setup is demanding, it gobbles up 41% of my GPU on 720p content.

Keep up the great work madshi

QB

kasper93
24th January 2014, 08:06
same here, my dualcore 2.9 cpu and gtx650 just can't handle it, using any of the ocl stuff my cpu just sits there pegged at 100% even with 24p xvid :O

No wonders here, NV is terrible when it comes to OCL :)

@madshi

When we edit script while playing - profiles are switched fine, but highlighted profile is still the same till we open settings window again. Could you update settings window on fly? This would help debugging scripts ;)

zero9999
24th January 2014, 08:33
0.87c error diffusion dithering works here with Nvidia GT450m Optimus. Maybe it's using the Intel iGPU for openCL?

Edit: turns out the nvidia drivers reset the optimus settings to use the iGPU.so yeah, using the dGPU it's broken here as well

LigH
24th January 2014, 08:39
@ James Freeman:

Sorry if I sounded annoyed ... sometimes I am more than I wish to have been the next day.

Well, okay, it may have other implications while reencoding (e.g. provoking more quantization artefacts) to try to make the image "sharp, sharper, sharpest", compared to displaying it only. At least, sharpening is always artifical. It never substitutes real resolution. After all it's a matter of personal taste how much looks how convenient, considering the ringing (edge halos) and aliasing (detail flickering).

truexfan81
24th January 2014, 09:08
i'd love to use the profiles to use different scalers for 24p, 25, 30p and then a different set for 50,60p but scripting has always been very confusing to me, same with this

cca
24th January 2014, 09:10
Tried 0.87 on my netbook just to see the behaviour there. It has a completely crappy Intel GMA3600 with horrid drivers, has no support for OpenCL whatsoever. For madVR to be usable in that setup I have everything to the absolute minimum, Bilinear filtering for everything, and ALL trade quality for perfomance options checked.

That setup worked fine with 0.86, but with 0.87 I see frame drops. Cuprit is again the render queue, something on 0.87 is definitely misbehaving.

Vyral
24th January 2014, 09:11
For AMD users : I've checked the release notes and the OpenCL feature was added on the 13.9 driver (see : http://support.amd.com/en-us/kb-articles/Pages/AMDCatalyst13-9WINReleaseNotes.aspx).

I've tried to test the new OpenCL features on madVR but, even though I have a powerfull GPU, it seems I can't use any. Therefore, I will stick with Jinc 3 AR and Catmull-Rom AR/LL.
On the other hand, debanding works great with little impact on performance.

romulous
24th January 2014, 09:45
HKEY_CURRENT_USER\Software\madVR\BorderColor DWORD 1


Hi madshi,

I think that should actually be:
HKEY_CURRENT_USER\Software\madshi\madVR\BorderColor

ryrynz
24th January 2014, 09:53
Weighing in with HD4000, no issues. Installed 0.87 then 0.87c on top. NNEDI doubling on Luma even with 16 neurons looks to be too demanding, can't even enable OpenCL error diffusion without dropped frames.
I wonder how well the HD5200 is going to fare.. anyone got one?

I enabled 'use a separate device for presentation' and get a few black frame flickers and dropped frames on entry into fullscreen (exclusive or windowed) and a single black frame flicker on drop down to a windowed screen.
Enabling 'use a separate device for presentation' drops rendering and present times down a bit so might switch over to that if the frame drops/flickers can be sorted. Correct registry location is HKEY_CURRENT_USER\Software\madshi\madVR\
I created a 32bit Dword called BorderColor and set it to a hexadecimal value of 1, am currently using 10.18.10.3383 drivers, maybe this fix is no longer required for the latest drivers? as using the BorderColor registry entry doesn't seem to change anything for me.

New drivers can be found here (http://www.station-drivers.com/index.php/forum/news/354-intel-hd-graphics-15-33-12-3383-whql) (Note Intel made a mistake with the date info, as it was WHQL:ed January 8 2014 not 2013, and is 15.33.12.x)

nevcairiel
24th January 2014, 10:18
Upgraded from 0.86.11 to 0.87c, CPU usage increased drastically when playing videos with native DXVA2 (but also with any other decoder modes, but its not so glaringly obvious there)
On 0.86 its <1%, CPU remains at lowest clock, with 0.87c its at 5-6%, CPU clock raised.

No settings changed in the upgrade, and confirmed none of the new features are active.
No SmoothMotion, no deint, just playback of progressive content on my NVIDIA card.

truexfan81
24th January 2014, 10:18
madshi there is something seriously wrong with this release, even with the 87c/d build, i cannot play 60p video at all even with all scalers set to bilinear the backbuffer and render queues are empty. Revert back to the deband14 build and all plays perfectly and all queues are full.

sdancer75
24th January 2014, 10:37
You should use QueryInterface() on the madVR instance to get access to those custom interfaces.



Thanks,

I thought that all those interfaces are reserved only for the VMR9. Anyway you mean that I can use IID_IVMRFilterConfig9, IID_IVMRWindowlessControl9, IID_IVMRMixerBitmap9, IID_IVMRMixerControl9 and IID_IVMRMonitorConfig9 as normal with madVR?

The error i get is "error C2275: 'IMadVROsdServices' : illegal use of this type as an expression"

with the code below :

//madVR
m_pMadVR = AddFilter("madVR",CLSID_madVR);
if (m_pMadVR == NULL){
ReportError(_T("Failed to initialize the filter (madVR)."),hr);
AMLOGINFO(_T("Failed to initialize the filter (madVR) errorcode=%s."),GetErrorCode(hr) );
return FALSE;
}

hr = m_pMadVR->QueryInterface(IMadVROsdServices,(void**)&m_pMadVRServices);
if (FAILED(hr))
{
ReportError(_T("Failed to initialize the filter."),hr);
AMLOGINFO(_T("Failed to initialize the filter. errorcode=%s."),GetErrorCode(hr) );
return FALSE;
}

cyberbeing
24th January 2014, 11:26
Upgraded from 0.86.11 to 0.87c, CPU usage increased drastically

I can reproduce this as well with identical madVR settings along with LAV Video software decoding.

0.86.11 no flushing:
http://i.imgbox.com/IV9N9nPf.png

0.87b & 0.87c no flushing:
http://i.imgbox.com/KhbrmOgX.png

0.87.0 & 0.87a no flushing:
http://i.imgbox.com/DmnVd8ZY.png

0.86.11 has a 1.49% CPU Load, with the CPU @3.2Ghz/4.4Ghz speed step state.

0.87b & 0.87c has a 8.27% CPU load, with the CPU @4.2Ghz/4.4Ghz speed step state. Same higher CPU load is seen in Windowed Mode, Overlay Mode, and FSE.

0.87.0 & 0.87a has a 3.27% CPU Load, with the CPU @3.6Ghz/4.4Ghz speed step state. Same higher CPU load is seen in Windowed Mode, Overlay Mode, and FSE.

truexfan81
24th January 2014, 11:44
I can reproduce this as well with identical madVR settings along with LAV Video software decoding.

0.86.11 no flushing:
http://i1.someimage.com/FgHCpXB.png

0.87b & 0.87c no flushing:
http://i1.someimage.com/c6m3NNc.png

0.87.0 & 0.87a no flushing:
http://i1.someimage.com/0Z3cjOM.png

0.86.11 has a 1.49% CPU Load, with the CPU @3.2Ghz/4.4Ghz speed step state.

0.87b & 0.87c has a 8.27% CPU load, with the CPU @4.2Ghz/4.4Ghz speed step state. Same higher CPU load is seen in Windowed Mode, Overlay Mode, and FSE.

0.87.0 & 0.87a has a 3.27% CPU Load, with the CPU @3.6Ghz/4.4Ghz speed step state. Same higher CPU load is seen in Windowed Mode, Overlay Mode, and FSE.

i also had this issue, i have reverted back to the deband14 build

Finnish Flash
24th January 2014, 12:23
Hi, madshi! I've been using your renderer for quite a while now and absolutely love it! Thanks for all the effort you've put into it.

Is there any chance of using the 4770k's internal HD 4600 GPU for OpenCL stuff while using my GTX 670 for all the other aspects of post processing?

My OS is Windows 8.1 and I'm running a headless configuration. At least LAV's QuickSync decoder seems to be working this way.

Qotscha
24th January 2014, 12:26
Same here with Radeon HD 6850. Massive framedrops with videos and settings that worked well with 0.86.11 and latest deband test builds. Render queue is the first one that does not fill.

I did some further testing. Actually, 0.87 and 0.87a are fine (except with interlaced content) and 0.87b is the first one to cause framedrops.

cca
24th January 2014, 12:38
I disagree, the netbook test I did and posted before was done with 0.87, not with any of the hotfix versions and still caused frame drops.

Sent from my Nexus 7 using Tapatalk

madshi
24th January 2014, 12:58
Is OpenCL supported on Nvidia 9500GT?
Everything works just fine with official 0.87 build and 0.87b but I get dropped frames and empty render queue and backbuffer queue with 0.87d. Just tested for fun and reverted back to official 0.87.
edit:
I tested NNEDI for Chroma and increases rendering times. Is that mean that OpenCL works? Back to Bicubic.
If you get a proper image and increased rendering times then that probably means it's working for you. Seems right now that NVidia OpenCL works for 9xxx generation of GPUs, but not for newer GPUs.

Sorry, you're right (again). Seems like it's not a good idea to use "(renderQueue<30)" or similar for some settings, since the profiles get switched almost constantly once even one change is triggered.
You're right. I thought adding the "renderQueue" field would be a clever idea, but it changes too often for it to make sense. So I've completely removed it now.

Here are the new test build logs for the OCL dither issue on my GTX 770:

madVR 0.87d OCL Dither debug logs (https://www.mediafire.com/?cgu37g22t21u8r1)
Thanks. Seems that D3D9 <-> OpenCL interop doesn't work properly. I've added a few more logging lines to get more information. Could I please get another log with Error Diffusion with the next build?

I set up a "Don't Use OpenCL" Profile for when I'm hardware deinterlacing and a "Use OpenCL" Profile for when I'm not. Now I noticed that the "Don't Use OpenCL" Profile always gets selected (the name is displayed in bold).
Known problem in official v0.87.0, fixed in test build 87b.

How madVR performance is compared to SEt's implementation?
Here are my results from AVSMeter on HD5870. I was expecting to get better performance on madVR, at least to get stable playback. I get ~18fps without MT, but with higher thread count I get unstable fps as you can see in log.

https://gist.github.com/kasper93/de93cad4d410a9bcb575
https://gist.github.com/kasper93/ef7b3a0b2165d56b5b0a

Sorry, if you find my post not useful,c but I always though that HD5870 is still powerful enough, and generally OCL performane is not that bad.

With madVR I get ~7fps with NNEDI and ~10fps with dither. I guess OCL is not for me :D
On my PC with my HD7770 my modified kernel runs slightly faster than SEt's original kernel. But then, that is without D3D9 <-> OpenCL interop taken into account. The interop unfortunately costs quite a bit of performance. But it might be a bit too early to do a final performance judgement now, considering that there are still several problems reported that need to be fixed.

.87 gives me a black screen when playing 25fps video with smooth motion enabled.

AMD Radeon HD 6670, Windows 8.1 x64.
That's weird. Works fine here. Is that maybe with DXVA deinterlacing?

Well, all worked flawless for me! And I must say I am impressed! Image is spectacular.
Thank you. Finally someone for whom everything works (as it does for me).

i'd love to use the profiles to use different scalers for 24p, 25, 30p and then a different set for 50,60p but scripting has always been very confusing to me, same with this
At some point I may add a graphical tool to configure the profile rules, but not anytime soon. And the underlying logic won't change.

I've tried to test the new OpenCL features on madVR but, even though I have a powerfull GPU, it seems I can't use any. Therefore, I will stick with Jinc 3 AR and Catmull-Rom AR/LL.
Don't do a final judgement yet. Wait until all bugs are fixed, then try again.

When we edit script while playing - profiles are switched fine, but highlighted profile is still the same till we open settings window again. Could you update settings window on fly? This would help debugging scripts ;)
This behaviour has annoyed me already, too. But at the moment I'm more concerned with real bugs and less with "cosmetical" issues like this.

I think that should actually be:
HKEY_CURRENT_USER\Software\madshi\madVR\BorderColor
Yes, thanks.

I created a 32bit Dword called BorderColor and set it to a hexadecimal value of 1, am currently using 10.18.10.3383 drivers, maybe this fix is no longer required for the latest drivers? as using the BorderColor registry entry doesn't seem to change anything for me.

New drivers can be found here (http://www.station-drivers.com/index.php/forum/news/354-intel-hd-graphics-15-33-12-3383-whql) (Note Intel made a mistake with the date info, as it was WHQL:ed January 8 2014 not 2013, and is 15.33.12.x)
Thx for the report, I'll try the new drivers later. I did have the bug reported to Intel, so maybe they did already fix it in the meanwhile.

I thought that all those interfaces are reserved only for the VMR9. Anyway you mean that I can use IID_IVMRFilterConfig9, IID_IVMRWindowlessControl9, IID_IVMRMixerBitmap9, IID_IVMRMixerControl9 and IID_IVMRMonitorConfig9 as normal with madVR?
Don't know right now which of those is supported by madVR. I think at least one of those is, but not all of them.

The error i get is "error C2275: 'IMadVROsdServices' : illegal use of this type as an expression"
Try "__uuidof(IMadVROsdServices)", or try manually defining a GUID with the proper numbers. Don't know right now how to do this the easiest way.

Upgraded from 0.86.11 to 0.87c, CPU usage increased drastically when playing videos with native DXVA2 (but also with any other decoder modes, but its not so glaringly obvious there)
On 0.86 its <1%, CPU remains at lowest clock, with 0.87c its at 5-6%, CPU clock raised.
I can reproduce this as well with identical madVR settings along with LAV Video software decoding.

0.86.11 has a 1.49% CPU Load, with the CPU @3.2Ghz/4.4Ghz speed step state.

0.87b & 0.87c has a 8.27% CPU load, with the CPU @4.2Ghz/4.4Ghz speed step state. Same higher CPU load is seen in Windowed Mode, Overlay Mode, and FSE.

0.87.0 & 0.87a has a 3.27% CPU Load, with the CPU @3.6Ghz/4.4Ghz speed step state. Same higher CPU load is seen in Windowed Mode, Overlay Mode, and FSE.
I think this is caused by the profiling stuff. Especially the "renderQueue" field value was changed multiple times per second and every time madVR had to re-read all settings etc. I hope the new test build (see below) fixed this problem?

i also had this issue, i have reverted back to the deband14 build
Please do not quote posts with big large images in it!! At least not without removing the images first. Otherwise you blow up the thread unnecessarily.

Is there any chance of using the 4770k's internal HD 4600 GPU for OpenCL stuff while using my GTX 670 for all the other aspects of post processing?
The 4600 will probably too slow for this to make sense, compared to the 670. Also, such a logic would require moving a lot of pixels around from one GPU to system RAM and then to the next GPU. This is not likely to be supported any time soon (if ever).

Latest official version for me is just showing a black screen when using it's deinterlacing
Known problem. Already fixed in a test build.

turning on anything related to NNEDI3 gives me blank or freezed frame output.
black picture with openCL
OpenCL error diffusion is not enabled for the below screenshots, but when it is enabled it seems to produce a black image.
Known problem with NVidia GPUs atm.

Having performance issues as well, can barely playback interlaced DVDs without frame drops anymore, even with low resizing settings, no NNEDI, not anti-banding, dropped resizing to Lanczos3 and it still has heavy fluctuations in the render queue.
Same here with Radeon HD 6850. Massive framedrops with videos and settings that worked well with 0.86.11 and latest deband test builds. Render queue is the first one that does not fill.
So presumably noee, cca, Qotscha, and myself are all having performance issues on different brands of GPUs for the same reason.
installed .87d, didnt change anything, tested an AVC 60p sample, got framedrops which hasnt happened before. and black picture with openCL
On my system, 0.87.0 has completely killed video playback (black screen at all times and player crashes on exit).
same here, my dualcore 2.9 cpu and gtx650 just can't handle it, using any of the ocl stuff my cpu just sits there pegged at 100% even with 24p xvid :O
I did some further testing. Actually, 0.87 and 0.87a are fine (except with interlaced content) and 0.87b is the first one to cause framedrops.
Please try with the new test build (see below).

0.87 gives and mpc-hc crash error when starting a video (latest nightly)
I have a similar problem to him. And in my case when I launch a video I get a error box ''Has Stopped working'' and I have to close. I had to revert to a previous version.
Have you tried the test build(s)? Or just the official version? Try the latest test build (see below). Or wait for the next official build.

-------

Here's a new test build:

http://madshi.net/madVR87e.rar

I hope that CPU and GPU performance is mostly back to v.86.11 levels (maybe GPU performance could be slightly lower due to modified dithering logic). Can anybody confirm?

There's a new option in the rendering settings now, allowing you to enable/disable OpenCL processing of DXVA NV12 surfaces for AMD and Intel GPUs. It's disabled by default now. Please check whether this option helps or harms with your GPU (AMD/Intel only) and report. Thanks.

OpenCL will still not work with newer NVidia GPUs. Need a new debug log for this with error diffusion enabled.

DarkSpace
24th January 2014, 13:00
Change it to (srcInterlaced) && (!filmMode) and try again.
Thank you, that did it.
Also we do get a built-in validator for the scripts - the small red triangle (bad script) or a small green tick (script ok) near the online help link.
Thank you. So far, I thought that red triangle simply was there to alert people to the documentation. Only after I tried your version it changed to a green tick...
I do feel somewhat stupid right now...

nevcairiel
24th January 2014, 13:03
CPU usage seems to be back down again, thanks.

Also, here is a log of OCL Error Diffusion on a NVIDIA GTX780:
http://files.1f0.de/tmp/madVR087eOCLDitherNVIDIA.zip

Note that not only did it not work, MPC-HC also didn't close properly and lingered around in memory. Not sure if the two issues are strictly related.

madshi
24th January 2014, 13:12
Thanks! The log is confusing me. Mapping the D3D9 textures to OpenCL fails for error diffusion, but it succeeds in an extra test pass I've added (for logging purposes). Will have to think about how to interpret these results. Maybe mapping fails if the textures are still being rendered on or something like that? No clue right now...

Yes, MPC-HC not closing down properly has to do with the OpenCL failure. Will have to see how to handle that situation more gracefully.

Qotscha
24th January 2014, 13:14
Here's a new test build:

http://madshi.net/madVR87e.rar

I hope that CPU and GPU performance is mostly back to v.86.11 levels (maybe GPU performance could be slightly lower due to modified dithering logic). Can anybody confirm?

For me this did the trick. Playback is smooth and CPU and GPU usage are about the same as with 0.86.11.

Finnish Flash
24th January 2014, 13:16
The 4600 will probably too slow for this to make sense, compared to the 670. Also, such a logic would require moving a lot of pixels around from one GPU to system RAM and then to the next GPU. This is not likely to be supported any time soon (if ever).I see. Thanks for answering and have a great weekend!

cyberbeing
24th January 2014, 13:18
Thanks. Seems that D3D9 <-> OpenCL interop doesn't work properly. I've added a few more logging lines to get more information. Could I please get another log with Error Diffusion with the next build?

madVR 0.87e debug logs (https://www.mediafire.com/?z3td984gw7dd3b5)

I think this is caused by the profiling stuff. Especially the "renderQueue" field value was changed multiple times per second and every time madVR had to re-read all settings etc. I hope the new test build (see below) fixed this problem?

CPU load with 0.87e is now the same as 0.87.0 & 0.87a in my previous post, but it's still more than twice that of 0.86.11.

DarkSpace
24th January 2014, 13:20
Known problem in official v0.87.0, fixed in test build 87b.

-------

Here's a new test build:

http://madshi.net/madVR87e.rar
In the latest test build, I have the same issues:
if (srcInterlaced) && (!filmMode) "Don't Use OpenCL"
else "Use OpenCL"
works just fine (thanks michkrol!), but
if (srcInterlaced && !filmMode) "Don't Use OpenCL"
else "Use OpenCL"
doesn't work. If you want me to enter this into the bug tracker, please tell me so.