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
26th January 2014, 10:14
there is a problem with defining a custom resolution via Custom Resolution Utility.
I use it to force the display to stay at 75Hz. To do so set up a custom resolution and disable the checkbox "Include extension block" on Nvidia hardware.
In windowed mode now madVR reports 75Hz, but Windows still offers only 60Hz resolution. I don't know why this is that way, maybe oddness of Nvidia driver.
The problem is that madVR fails to enter FSE this way. The Nvidia Control Panels reports 75Hz only.
Could you please extend the refreshrate lookup so that madVR can also detect such custom resolutions, making FSE working?
That won't work. I have to tell D3D9 which display mode to use, and it must be a display mode which really exists. The D3D9 API requests it that way, at least for FSE mode.

I'm currently having troubles getting any kind of DXVA2(in LAV) to work in FS as when going from windowed to FSW(with the latest stable build of PotP) the picture is vertically stretched, then after a second the AR is applied and playback finally starts. OTOH with FSE, the backbuffer queues never fill and it's stuttering like hell. Need to run more tests I guess.
I hope you aren't using the old FSE mode, like you did in XP? In newer OSs you should really be using the new FSE mode. I wouldn't recommend to use DXVA2 decoding, unless your CPU is rather weak. I prefer software decoding. Of course DXVA2 deinterlacing is a different topic, it's currently needed for native video content.

I haven't gone through all previous pages yet but it seems that the backbuffer queues problem is being investigated.
No, it's not.

Yes, and when you exit playback madHcCtrl is closed, as would be the normal case of accessing madVR settings outside of playback. My current tray icon setting is "show tray icon on local pc" and "Lan access" disabled.
I switched to a newer NVidia GPU in my dev PC and tried with GraphStudioNext and I can now reproduce the 5 second delay... :) I'll look into that next.

Is it expected for OpenCL dither to increase madVR CPU load significantly when scaling? GPU load also seems to change a lot, depending on output size. Are you dithering after resize rather than prior? It would also seem that GPU load exactly doubles if you enable Smooth Motion on top of OpenCL dither, which I find a bit strange.
Dithering should be one of the very last steps in rendering, after scaling, after smoothmotion.

Dithering reduces the bitdepth of the image, so doing it any earlier defeats its purpose.
^

Random dithering is currently done before drawing the OSD. Error diffusion is done even later, after drawing the OSD. Both is done after scaling and after smooth motion FRC. As nevcairiel said, it must be that way. Of course when using smooth motion FRC, the number of rendered frames increases, so that will drive up error diffusion cost.

I've read somewhere that when using NVidia OpenCL, the CPU consumption goes up because for some reason NVidia OpenCL just works that way. I think the thread waiting for OpenCL to finish its work is probably running at 100%. Don't ask me why. I don't know if this happens with AMD or Intel, too, haven't really tested that.

Maybe I don't understand this correctly, but with NNEDI, what are the chances of upscaling a video by precisely 2x? Does that mean your video would need to be half of the 1920 pixel width (960) to work?
If I understand it correctly, nnedi will double a small video, then whatever scaling method you've selected will take that and stretch it to the target rectangle size. That's just from reading along the past few pages.

If you double past the target size, then the downscaling method will kick in.
^

Hopefully at some point someone can explain how to setup a profile+script to use NNEDI to say just do less than 720p content (not sure if it benefits 720p to 1080p) to get max image quality. I guess the purpose of NNEDI is to get even more quality out of your image/chroma scaling when going from say a DVD which is at 720x480 to a 1920x1080 screen.

Edit: kinda figured it out a bit, for lower res media, then can use the following options which bypasses using NNEDI for 720p and up content. (since difference is probably sooooo minute anyway)

use NNEDI3 to double luma if scaling 2.0x 64 neurons (bypasses 720p)
use NNEDI3 to quadruple luma if scaling is 3.0x 16 neurons
You can either do that, or use profiles if you want even more control over which algorithm is used when.

You've said that you recommend we select a "cheap" upscaler algorithm such as Lanczos3 AR when NNEDI3 is selected. What happens when NNEDI3 is not in use and only Lanczos3 AR is used to upscale Luma? In that case wouldn't you recommend it switches to another algorithm, such as Jinc3 AR, automatically?
You can do that with profiles, if you want.

-------

I've found a bug in v0.87 which could explain some of the new problems. So all of you who have D3D9 failures or performance regressions, please check this test build:

http://madshi.net/madVR871a.rar

madshi
26th January 2014, 10:14
I have to say i love this profile stuff. :D

Profiles for Scaling, profiles for deband/deinterlace.
Now i can watch any file i want to without having to ever manually change settings.

madshi thank you so much :-)
Glad you like it... :)

huhn
26th January 2014, 10:28
I've found a bug in v0.87 which could explain some of the new problems. So all of you who have D3D9 failures or performance regressions, please check this test build:

http://madshi.net/madVR871a.rar

freeze with file change in fullscreen exclusive is fixed for me.

the report from Today 09:47 is fixed too.

but video-film mode switch with refresh rate change done through a hot key results in a black screen now.

only happens from video to film mode and only about 50 %

madshi
26th January 2014, 10:41
Some progress, at least, thx for the quick feedback. And you can confirm that the remaining issue definitely didn't occur in v0.86.11 *at all*, is that correct?

huhn
26th January 2014, 11:03
Some progress, at least, thx for the quick feedback. And you can confirm that the remaining issue definitely didn't occur in v0.86.11 *at all*, is that correct?

with 86.11 the player crashes now i'm sure this didn't happen before but is a new player version always after 3 switches. or even after the first one and that defiantly didn't happen before
this never happen yesterday when when 86.11 settings where reseted after downgrading from 87.1
87.1 instant crash
87.1a blackscreen
86.11 player crash

i try it again after clearing the registry and restarting the pc but at the moment is looks like a old bug in a new form.

romulous
26th January 2014, 11:08
Apologies if this is already a known issue, but video playback fails with all 0.87.x versions so far when I enter fullscreen mode on a second display (not using any of the new features of 0.87.x, and FSE mode disabled). Returning to 0.86.11 makes it work again.

I've found a bug in v0.87 which could explain some of the new problems. So all of you who have D3D9 failures or performance regressions, please check this test build:

http://madshi.net/madVR871a.rar

Hi madshi,

This new build finally fixes my problem. However, when you fullscreen with madVR (FSE disabled), there is a delay in playback (a slight pause) before playback continues. This delay is in 0.86.11 as well - but I think it is a slightly longer delay in this new 0.87 build. So the problem is fixed, but I don't think performance is back to 0.86.11 levels as yet.

DragonQ
26th January 2014, 11:19
I've found a bug in v0.87 which could explain some of the new problems. So all of you who have D3D9 failures or performance regressions, please check this test build:

http://madshi.net/madVR871a.rar
None of these fixes the performance regression. :(

leeperry
26th January 2014, 11:27
I hope you aren't using the old FSE mode, like you did in XP? In newer OSs you should really be using the new FSE mode. I wouldn't recommend to use DXVA2 decoding, unless your CPU is rather weak. I prefer software decoding. Of course DXVA2 deinterlacing is a different topic, it's currently needed for native video content.
I'm of course using the new rendering path :)

Well, I'm confused because Nev told me that DXVA2 works even better than CUVID (http://forum.doom9.org/showpost.php?p=1649403&postcount=16207), I was hoping to get the same kind of performance with DXVA2CP off this HD7850 with mVR as I was getting with CUVID....that'll be a no-go? :(

Software decoding works perfectly but I would really rather have the GPU taking care of video decoding as I bought a low-end CPU expecting to be able to use GPU video decoding.

If DXVA2 really cannot provide the same kind of performance as CUVID, I guess I might switch teams again....this said, IME Asus/nvidia graphic cards are dead silent and this cheap HD7850 (http://www.vtx3d.com/products_features.asp?id=160) is already getting on my nerves as the rest of the rig is whisper quiet, I'll try to make a custom fan speed curve as the fan is fairly capable.

No, it's not.
Oh, well then I'll try to come back with screenshots. Are the backbuffer queues supposed to fill up equally whatever NNEDI is enabled or not?

romulous
26th January 2014, 11:32
Hi madshi,

This new build finally fixes my problem. However, when you fullscreen with madVR (FSE disabled), there is a delay in playback (a slight pause) before playback continues. This delay is in 0.86.11 as well - but I think it is a slightly longer delay in this new 0.87 build. So the problem is fixed, but I don't think performance is back to 0.86.11 levels as yet.

Scrub this - the delay is dependant on the file being played. I tested with an AVI file on 0.87 and a MOV file on 0.86.11 - and when I check that AVI file with 0.86.11, that delay is longer than with the MOV file, and seems to be about the same as this new 0.87 build.

I do note however that if I enable the nnedi3 box, the problem returns with this fixed build (fullscreen to second display, playback halts and player goes to 100% CPU). The only difference this time being previously, I could still close the player as normal. Now I can't - task manager intervention is required.

So basically if I used the fixed build with no changes to my 0.86.11 configuration, everything is ok. When I start enabling the new 0.87 options, that is when things start to break.

madshi
26th January 2014, 11:45
i try it again after clearing the registry and restarting the pc but at the moment is looks like a old bug in a new form.
Ok, good. I'm mostly interested in *new* bugs at the moment.

None of these fixes the performance regression. :(
Ok. Will have to look at that next.

Well, I'm confused because Nev told me that DXVA2 works even better than CUVID (http://forum.doom9.org/showpost.php?p=1649403&postcount=16207), I was hoping to get the same kind of performance with DXVA2CP off this HD7850 with mVR as I was getting with CUVID....that'll be a no-go? :(
I don't know, I don't use DXVA decoding, never did. Copyback has been a problem with older AMD generations, but it's supposed to be improved in 7xxx. Have you tried native DXVA2 decoding instead? Of course you use forced film mode that way. FWIW, I've *always* said that I prefer and recommend software decoding... ;)

Software decoding works perfectly but I would really rather have the GPU taking care of video decoding as I bought a low-end CPU expecting to be able to use GPU video decoding.
As long as the CPU can handle the decoding load, what's wrong with using software decoding? Or do you have AviSynth scripts you want to run on the CPU?

If DXVA2 really cannot provide the same kind of performance as CUVID, I guess I might switch teams again....
However, OpenCL performance is better with AMD.

Oh, well then I'll try to come back with screenshots. Are the backbuffer queues supposed to fill up equally whatever NNEDI is enabled or not?
If your GPU is fast enough then I would expect all queues to fill up nicely. That said, the whole OpenCL stuff in madVR is just a couple of days old, so there's very little experience how it affects the various queues.

I do note however that if I enable the nnedi3 box, the problem returns with this fixed build (fullscreen to second display, playback halts and player goes to 100% CPU). The only difference this time being previously, I could still close the player as normal. Now I can't - task manager intervention is required.

So basically if I used the fixed build with no changes to my 0.86.11 configuration, everything is ok. When I start enabling the new 0.87 options, that is when things start to break.
Maybe I could say something if I knew which GPU/OS you were using? Anyway, my priority right now is on making the "old" features work alright again. Only after that I'm ready to polish the OpenCL stuff...

huhn
26th January 2014, 11:53
I'm of course using the new rendering path :)

Well, I'm confused because Nev told me that DXVA2 works even better than CUVID (http://forum.doom9.org/showpost.php?p=1649403&postcount=16207), I was hoping to get the same kind of performance with DXVA2CP off this HD7850 with mVR as I was getting with CUVID....that'll be a no-go? :(

Software decoding works perfectly but I would really rather have the GPU taking care of video decoding as I bought a low-end CPU expecting to be able to use GPU video decoding.

If DXVA2 really cannot provide the same kind of performance as CUVID, I guess I might switch teams again....this said, IME Asus/nvidia graphic cards are dead silent and this cheap HD7850 (http://www.vtx3d.com/products_features.asp?id=160) is already getting on my nerves as the rest of the rig is whisper quiet, I'll try to make a custom fan speed curve as the fan is fairly capable.


Oh, well then I'll try to come back with screenshots. Are the backbuffer queues supposed to fill up equally whatever NNEDI is enabled or not?
if you got a intel cpu try quicksync it's faster than nvidia dxva and worlds faster than amd dxva.

and nev is totally right he meant dxva2 on a nvidia card.
cuvid is very useful on old nvidia cards but in newer cards both use the same "chip" so cuvid is kinda like dxva copy back just puts your card in highest power state wasting power like a pro.
and dxva is a dead end you can't use this for newer codecs like h265 or vp9.

@ the new backbuffer settings they don't make sense to me.
the max backbuffer valve you can get is always gpu queue -1 at default it is 8 gpu and 8 backbuffer so the backbuffer stays at 6-7 at best.

but these are only my observations with intel, nvidia and amd.

madshi
26th January 2014, 11:58
@ the new backbuffer settings they don't make sense to me.
the max backbuffer valve you can get is always gpu queue -1 at default it is 8 gpu and 8 backbuffer so the backbuffer stays at 6-7 at best.

but these are only my observations with intel, nvidia and amd.
Which new backbuffer settings do you mean? Are you talking about windowed or FSE mode? In FSE mode you don't specify the number of backbuffers, but you specify the number of prepresented frames. And that is the only default value I changed in v0.87, IIRC. So I'm confused with what you mean...

-------

@DragonQ, and everyone else who's having performance problems. Does this build help?

http://madshi.net/madVR871b.rar

Is it correct to say that all performance issues have to do with DXVA deinterlacing or DXVA decoding somehow?

@cyber, this should also fix the settings delay.

huhn
26th January 2014, 12:02
Ok, good. I'm mostly interested in *new* bugs at the moment.
at the moment i can't get 86.11 running properly.
i get 40 ms render time with default settings with a 1080p23 source on a 1080p screen. so i broke it and my observations are "useless" atm.

i didn't bother you until i now if it's new bug or a old one.

James Freeman
26th January 2014, 12:06
but video-film mode switch with refresh rate change done through a hot key results in a black screen now.

only happens from video to film mode and only about 50 %
87.1b

Happens here too.

When changing to Film mode & automatic refresh rate the screen/window turns black.
When force disabling Deinterlacing (in Film mode, after the refresh changed), the video appears again.
BUT, when I manually change the refresh to 72Hz in windows, then open MPC and change to Film mode, everything is OK.


Render times (1080p24) & 87.1b:

Average Stats,
rendering 2.24ms
present 0.08ms

Max Stats:
rendering 2.50ms
present 0.15ms

Full buffers on everything.

I have never had speed issues with any of the builds from 86.11 to 87.1b.

nevcairiel
26th January 2014, 12:08
Well, I'm confused because Nev told me that DXVA2 works even better than CUVID (http://forum.doom9.org/showpost.php?p=1649403&postcount=16207), I was hoping to get the same kind of performance with DXVA2CP off this HD7850 with mVR as I was getting with CUVID....that'll be a no-go? :(

AMDs hardware decoder is rather bad compared to NVIDIA. Its extremely slow.

So while DXVA2CB will work on AMD 7000 series GPUs, it'll not reach the levels of NVIDIA hardware because AMDs decoder is just really slow. It can't even be guaranteed that it can do 60fps properly. LAV can only work with the hardware you have, so while i do favor DXVA2CB over CUVID, that doesn't translate that it will magically be fast on other hardware. :)

huhn
26th January 2014, 12:15
Which new backbuffer settings do you mean? Are you talking about windowed or FSE mode? In FSE mode you don't specify the number of backbuffers, but you specify the number of prepresented frames. And that is the only default value I changed in v0.87, IIRC. So I'm confused with what you mean...

you are right the present in advance changed to 8.

but the "rule" max gpu queue -1 = max backbuffer/present is still "true". same rule goes for cpu and ivtc(haven't check the ivtc part for a while).
and that's why i don't get why gpu and present are set to 8.
but this has nothing to do with backbuffer mixed them up sorry. and this normally didn't harm only found problems with settings like these with my intel hd4000 and i think this was a long time ago.

i updated back to 87.1a and this version is working, how can i break a old version...

huhn
26th January 2014, 12:17
87.1b

Happens here too.

When changing to Film mode & automatic refresh rate the screen/windows turns black.
When force disabling Deinterlacing (in Film mode, after the refresh changed), the video appears again.
BUT, when I manually change the refresh to 72Hz in windows, then open MPC and change to Film mode, everything is OK.


Render times (1080p24) & 87.1b:

Average Stats,
rendering 2.24ms
present 0.08ms

Max Stats:
rendering 2.50ms
present 0.15ms

Full buffers on everything.

can you plz try this with 86.11 my version is crashing now and render times are about 10 ten higher than normal

omarank
26th January 2014, 12:22
Hi Madshi

I just tried the latest test build of madVR (madVR871b). As others have reported I too see a regression in performace while playing interlaced videos as compared to v0.86.11. At the moment I am not using any of the new features, not even debanding though debanding works on my system and I find it very impressive.

I have encountered one minor bug in the new release which I guess hasn't been reported. When I press the shortcut keys for <chroma upscaling algorithm - set to "Jinc">, it uses NNEDI3 algorithm and I see a green screen.

I have a GTX260 and I am using v332.21 drivers.

ryrynz
26th January 2014, 12:24
HD3000 on 8.1 with 3347 drivers using 0.87.1, when fullscreen exclusive is enabled and not ticking 'use separate device for presentation' and after transitioning to next file after playback I get a black screen.

The black screen is locked and I can't go into windowed mode without bring up Task Manager. Once doing so I can play the video fine in windowed mode, entering fullscreen again will show a frozen picture, audio plays fine.
Entering windowed mode and fullscreen again and FSE mode activates with no issues and video plays fine.

Ticking 'use separate device for presentation' fixes this issue, no issue with deband build 14.

madshi
26th January 2014, 12:26
87.1b

Happens here too.

When changing to Film mode & automatic refresh rate the screen/window turns black.
When force disabling Deinterlacing (in Film mode, after the refresh changed), the video appears again.
BUT, when I manually change the refresh to 72Hz in windows, then open MPC and change to Film mode, everything is OK.
As I said, I'm mostly only interested in *new* bugs atm. So please double check whether this problem does not occur in v0.86.11. If it also occurs in v0.86.11 then it's an old bug, which you can enter into the madVR bug tracker, but I'll not look at it right now. Just want to make sure that v0.87.x doesn't contain new bugs compared to v0.86.11 right now.

but the "rule" max gpu queue -1 = max backbuffer/present is still "true". same rule goes for cpu and ivtc(haven't check the ivtc part for a while).
No, it's not true. E.g. when playing 24fps content @60Hz in FSE mode, you can easily have a render queue of 7-8/8 and a present queue of 11-12/12.

James Freeman
26th January 2014, 12:28
can you plz try this with 86.11 my version is crashing now and render times are about 10 ten higher than normal

Rendering times are exactly the same or a little longer with 86.11 (87.1b is faster) with 1080p24.

But changing to film mode with refresh change (86.11) crashes mpc-hc.exe, But 87.1b only blackens the image which is better.
Madshi, Its an OLD bug.

Overall, 87.1b is more stable and faster with my system.

madshi
26th January 2014, 12:30
I just tried the latest test build of madVR (madVR871b). As others have reported I too see a regression in performace while playing interlaced videos as compared to v0.86.11.
So the 871b build did not help at all compared to the official v0.87.1?

I have encountered one minor bug in the new release which I guess hasn't been reported. When I press the shortcut keys for <chroma upscaling algorithm - set to "Jinc">, it uses NNEDI3 algorithm and I see a green screen.
Thanks, confirmed.

HD3000 on 8.1 with 3347 drivers using 0.87.1, when fullscreen exclusive is enabled and not ticking 'use separate device for presentation' and after transitioning to next file after playback I get a black screen.
Try the 871a or 871b test build.

ryrynz
26th January 2014, 12:31
Tried the a build. Fixed.

James Freeman
26th January 2014, 12:42
I just tried the latest test build of madVR (madVR871b). As others have reported I too see a regression in performace while playing interlaced videos as compared to v0.86.11.

So the 871b build did not help at all compared to the official v0.87.1?

I disagree.
87.1b works much faster than even 86.11.

http://www.mediafire.com/convkey/8663/7bik5t1l56fiae6fg.jpg

romulous
26th January 2014, 13:03
Maybe I could say something if I knew which GPU/OS you were using? Anyway, my priority right now is on making the "old" features work alright again. Only after that I'm ready to polish the OpenCL stuff...

Just to be clear - I haven't enabled the OpenCL stuff. I have a NVIDIA card, and I know madVR's OpenCL does not work on NVIDIA so I haven't bothered with it. This is simply ticking the box in 'Image Doubling' section.

Anyway, NVIDIA GTX 660Ti, Win 7 64bit.

DragonQ
26th January 2014, 13:05
I disagree.
87.1b works much faster than even 86.11.
<snip>
You have Smooth Motion off (since you're playing a 30i file at 60 Hz). As I said a couple of posts ago, the performance regression is far worse with interlaced video when using Smooth Motion for me, so what happens when you enable it? Also, that's a ridiculous difference in performance, are you sure your settings haven't changed?

@madshi: 0.87.1b doesn't fix the issue.

When Smooth Motion is off the only difference between 0.86.11 and 0.87.1b is that "split" takes ~50% more time. With Smooth Motion on though, "split", "deinterlace", and "rendering" all take ~100% more time, and "present" takes ~200% more time.

James Freeman
26th January 2014, 13:06
This is simply ticking the box in 'Image Doubling' section.

Image Doubling is new to v87 OpenCL feature.
So don't use it with NVIDIA (yet).

madshi
26th January 2014, 13:07
I disagree.
87.1b works much faster than even 86.11.
Wow! I wish it would be this way for everybody... :D

Just to be clear - I haven't enabled the OpenCL stuff. I have a NVIDIA card, and I know madVR's OpenCL does not work on NVIDIA so I haven't bothered with it. This is simply ticking the box in 'Image Doubling' section.

Anyway, NVIDIA GTX 660Ti, Win 7 64bit.
Image doubling / NNEDI3 does use OpenCL internally. I know, the settings dialog doesn't make it clear.

Thunderbolt8
26th January 2014, 13:07
DragonQ, your GT 430 is quite old by now, maybe thats where the big difference comes from.

nevcairiel
26th January 2014, 13:12
I disagree.
87.1b works much faster than even 86.11.

These numbers look unrealistic. I seriously doubt their accuracy.

romulous
26th January 2014, 13:15
Image doubling / NNEDI3 does use OpenCL internally. I know, the settings dialog doesn't make it clear.

Yes - the settings dialog is a mess, it certainly doesn't even hint at it, let alone make it clear. :mad:

Bad news - the 87.1b version breaks the previous fixed build. Fullscreening to second display is now broken again. This is without nnedi3 ticked of course.

leeperry
26th January 2014, 13:17
Well, I left "ITC Processing" enabled in the HD7850 drivers and that would supposedly do a lot of wonderful things on FS videos...maybe that's my problem, will run more tests.

Have you tried native DXVA2 decoding instead?

Yep, either flavor of DXVA2 seems equally flaky and checking "use OpenCL to process DXVA2" in mVR doesn't help.

As long as the CPU can handle the decoding load, what's wrong with using software decoding?

Well, CUVID worked beautifully IME and I planned on relying on hardware decoding for high bitrate H264/VC1 and I do run a bunch of VST plugins in ffdshow audio, but at the end of the day what matters is the real-world power consumption...I guess I'll have to run a bunch of tests using a wattmeter.

However, OpenCL performance is better with AMD.
Yep, I've seen that and I think I really like the new error diffusion dithering :devil:

If your GPU is fast enough then I would expect all queues to fill up nicely. That said, the whole OpenCL stuff in madVR is just a couple of days old, so there's very little experience how it affects the various queues.
Apparently, HWinfo32 is far more capable and accurate at showing the GPU/VRAM load than GPU-Z (http://www.imagebam.com/image/4ad33c304000291) so I'll check it out and will get back to you on this one.

AMDs hardware decoder is rather bad compared to NVIDIA. Its extremely slow.
Fair enough, thanks for the detailed explanation.

if you got a intel cpu try quicksync it's faster than nvidia dxva and worlds faster than amd dxva.
so I can use Intel's Quicksync for video decoding and output its result on the HD7850? Neato, will give it a shot.

James Freeman
26th January 2014, 13:26
you have smooth motion off (since you're playing a 30i file at 60 hz).

these numbers look unrealistic. I seriously doubt their accuracy.

Edit: I forgot to turn off Debanding in 87.1b, which means its even faster than whats in this image. :D

http://www.mediafire.com/convkey/864d/kbgapl1ypc3aw7cfg.jpg

Thunderbolt8
26th January 2014, 13:27
testing the ayaka MSSL12.ts clip for performance (mpeg2, 1440x1080 upscaled to 1080p; 29,97 fps), 0.871b is a little faster for me than 0.8611

0.8611:
without deinterlacing: 17.20ms
with deinterlacing: 17.50ms + deint: 3.30ms


0.871b:
without deinterlacing: 16.00ms
with deinterlacing: 16.90ms + deint: 2.95ms

huhn
26th January 2014, 13:28
Wow! I wish it would be this way for everybody... :D

these are all screens from 86.11

http://abload.de/img/86.11deinthighquene2ujf3.pnghttp://abload.de/img/86.11idintlowqueneh8kgv.pnghttp://abload.de/img/86.11ivtchighquenemek4e.pnghttp://abload.de/img/86.11ivtclowquene8aj9h.png

ivtc doesn't really care about queues but deinterlacing... how to judge performance this way.

even if amd in this case is changing the deinterlacing mode because the number of buffered frames is to low why are the rendertimes affected?

so I can use Intel's Quicksync for video decoding and output its result on the HD7850? Neato, will give it a shot.you need a fake display or windows 8 for this. and your mainboard must have support for igpu. every mainboard with a vga dvi dp oder hdmi connector can do it and i'm not sure if all intel gpu can do quicksync all ix cpu for sure.

hannes69
26th January 2014, 13:29
Just tested 87.1b on AMD HD4550 (quite old, quite slow). Everything is working fine so far. I didnīt test everything (e.g. deinterlacing), but for my typical usage scenario everything works. No black or bluescreens, freezes, stuttering or other unwanted behaviour. I unticked every box in trade quality, ticked the opencl stuff. I tried NNEDI3 for chroma upscaling, it works. I only play 720p without scaling on a projector, by using software decoding, debanding (works great!), involving a 3DLUT and using Bicubic AR chroma upscaling without the need of smoothmotion (I have accurate refresh rates by custom Powerstrip resolutions) I get 70% GPU usage. So ALL features of recent madvr version concerning quality are still usable on my good old GPU. Clearly there is no more headroom left for playing back 1080p or scaling other than native resolution, but for my needs itīs great!
Great work madshi, I had to give a positive feedback right at this time, when 9 out of 10 users report problems at the moment.
Forget about NVIDIA, just define AMD or Intel as a system requirement for using madvr :D

omarank
26th January 2014, 13:36
So the 871b build did not help at all compared to the official v0.87.1?


The performance is better in 871b as compared to the official v0.87.1. In the official version, I have performance issues with some progressive videos too which have been fixed in 871b.

I disagree.
87.1b works much faster than even 86.11.


On my system, I am not able to see any performance improvement with 871b for interlaced videos.

http://www.mediafire.com/view/jvcfrevqmvir8r4/COmparison.jpg

noee
26th January 2014, 13:59
madshi:
With my VC1 1080i test file, .87b makes substantial perf gains for deint:

DXVA Native (FSE Mode):
.86: ~7.3ms, full queues, perfect playback
.871: ~18.2ms, starved render/backbuffer, many drops
.871b: ~4.10ms, full queues, perfect playback

DXVA CB (FSE Mode):
.871: ~7.5ms, full queues, perfect playback
.871b: ~2.75ms, full queues, perfect playback

HD6570

DragonQ
26th January 2014, 14:13
DragonQ, your GT 430 is quite old by now, maybe thats where the big difference comes from.
All of this testing is on my laptop using an Intel HD4000, as I've said several times (although I understand if you haven't been following the past dozen pages). I don't/can't use MadVR on my HTPC since MediaPortal doesn't support it.

One way to fix the problem is to use CUVID (on my NVS 5200M), since that handles the deinterlacing and then all MadVR has to do is mix frames and downscale on the HD4000 (75% load, same as with 0.86.11). I imagine the hugely increased stat times I'm seeing is due to the GPU being maxed out and thus not doing everything asked of it quickly enough when deinterlacing and smooth motion are both being used. The problem is likely a smaller performance regression that pushes the load from 85-90% (0.86.11) to above 100% (0.87.1b). I can't imagine the fact I have Optimus is an issue, since when the decoder is set to anything but CUVID the nVidia card has 0% load (and thus is presumably asleep).

huhn
26th January 2014, 14:42
These numbers look unrealistic. I seriously doubt their accuracy.

sorry but i got the same...

87.1b
normal(high) queue settings (http://abload.de/img/87.1deinthighquenenos37.png)
low queue settings (http://abload.de/img/87.1deintlowquene4rske.png)
for 86.11 see above

edit i have a watch at the hd4000 later maybe a intel only problem?

cyberbeing
26th January 2014, 14:44
Random dithering is currently done before drawing the OSD. Error diffusion is done even later, after drawing the OSD. Both is done after scaling and after smooth motion FRC. As nevcairiel said, it must be that way. Of course when using smooth motion FRC, the number of rendered frames increases, so that will drive up error diffusion cost.

I've read somewhere that when using NVidia OpenCL, the CPU consumption goes up because for some reason NVidia OpenCL just works that way. I think the thread waiting for OpenCL to finish its work is probably running at 100%. Don't ask me why. I don't know if this happens with AMD or Intel, too, haven't really tested that.

Okay, thanks for clarifying. Next question would be if there is a way to disable OpenCL dither with Smooth Motion via profiles? It seems we are missing a boolean value for 'is Smooth Motion active'? Would it also be possible to add a codec rules for image formats. If I had a boolean for PNG, I could workaround Issue #142 on your bug tracker.

madVR871b
...
@cyber, this should also fix the settings delay.

Confirmed

madshi
26th January 2014, 15:09
Because of the GPU performance requirement for error diffusion and the slight improvement in quality with it being done on the CPU, what's the chances of this ever being an option that could be enabled on the CPU in MadVR?
Not a chance, because it would require heavy copyback operations. Much more so than a DXVA2 decoder does.

I disagree.
87.1b works much faster than even 86.11.
Edit: I forgot to turn off Debanding in 87.1b, which means its even faster than whats in this image. :D
What is weird is that in one of your images the max numbers are smaller than the average numbers. Not sure how that could happen.

These numbers look unrealistic. I seriously doubt their accuracy.
I agree that such a big difference looks suspicious. However, I did do one important change in v0.87.0 (see also changelog): In all older versions sometimes when the backbuffer queue was full, rendering performance slowed down dramatically. IIRC, some users reported that they cut the rendering queue size down so that the backbuffer queue never gets full to solve this problem, or something like that.

I've worked around this problem in v0.87.x simply by telling D3D9 to allocate one backbuffer more than needed. I can imagine that James Freeman runs into the original problem with v0.86.11, so that his rendering times are much worse than his GPU is really capable of. And the workaround in v0.87.x could have solved this issue and thus restored the original/full speed of the GPU. This is just a guess, though, I could be wrong. But it could explain the improvement he's seeing. I did have high hopes for the workaround I added. Had one situation on my PC where I could reproduce the original problem, and the workaround fully fixed it.

these are all screens from 86.11

ivtc doesn't really care about queues but deinterlacing... how to judge performance this way.

even if amd in this case is changing the deinterlacing mode because the number of buffered frames is to low why are the rendertimes affected?
How long did you let rendering run when you made these images? Is it possible that with the bigger queue size the rendering times are only so much worse directly at the start of video playback? Maybe after a couple of seconds they slowly come down and then at some point match the rendering times with smaller queue sizes? (With v0.87.1b at least?)

Just tested 87.1b on AMD HD4550 (quite old, quite slow). Everything is working fine so far. I didnīt test everything (e.g. deinterlacing), but for my typical usage scenario everything works. No black or bluescreens, freezes, stuttering or other unwanted behaviour.
Good to hear - thanks for bringing good news for a change... :)

madshi:
With my VC1 1080i test file, .87b makes substantial perf gains for deint:

DXVA Native (FSE Mode):
.86: ~7.3ms, full queues, perfect playback
.871: ~18.2ms, starved render/backbuffer, many drops
.871b: ~4.10ms, full queues, perfect playback

DXVA CB (FSE Mode):
.871: ~7.5ms, full queues, perfect playback
.871b: ~2.75ms, full queues, perfect playback

HD6570
Looks great! Can you confirm that frame dropping behaviour matches these rendering times, just to be safe? Meaning: Can you actually use even more demanding scaling algorithms now compared to v0.86.11? At least the same, without getting frame drops? I'm not sure how much I can really trust the rendering times, although they're usually at least roughly right.

All of this testing is on my laptop using an Intel HD4000, as I've said several times (although I understand if you haven't been following the past dozen pages). I don't/can't use MadVR on my HTPC since MediaPortal doesn't support it.
Ok. So it seems your performance issue is probably the last one remaining. I'm not sure if you said this in the past already, but does your performance issue only occur when some kind of deinterlacing is involved? You did say it had to do with smooth motion FRC. But does interlacing play any role? DXVA deinterlacing? Or film mode? Both or none? Thanks.

Okay, thanks for clarifying. Next question would be if there is a way to disable OpenCL dither with Smooth Motion via profiles? It seems were are missing a boolean value for 'is Smooth Motion active'? Would it also be possible to add a codec rules for image formats. If I had a boolean for PNG, I could workaround Issue #142 on your bug tracker.
We can look at possible additions to the profile variables once all the other issues are resolved. Please let's delay this until then, though. Generally I'm absolutely open to add further profile variables. Anything that makes sense and doesn't cost performance.

huhn
26th January 2014, 15:18
How long did you let rendering run when you made these images? Is it possible that with the bigger queue size the rendering times are only so much worse directly at the start of video playback? Maybe after a couple of seconds they slowly come down and then at some point match the rendering times with smaller queue sizes? (With v0.87.1b at least?)

87.1b is at least awesome just have a look at my posting http://forum.doom9.org/showpost.php?p=1664365&postcount=21948

when i switch from 5/5 to 16/8 it takes about 2 sec and the avg deint are at 2 ms again still worlds better than 86.11.
at first i though i have broken 86.11 again but James Freeman got the same...

and the screens for 86.11 where running for at least 18 sec so no they don't get any better

madshi
26th January 2014, 15:21
87.1b is at least awesome just have a look at my posting http://forum.doom9.org/showpost.php?p=1664365&postcount=21948

when i switch from 5/5 to 16/8 it takes about 2 sec and the avg deint are at 2 ms again still worlds better than 86.11.
at first i though is have broken 86.11 again but James Freeman got the same...

and the screens for 86.11 where running for at least 18 sec so no they don't get any better
Yes, but even with 871b your screenshots still show lower rendering times for 5/5 than for 16/8. I'm wondering if these rendering times get nearer to each other if you let the video run for a longer time? You could also zoom in and back out again during playback to reset the average rendering times.

noee
26th January 2014, 15:27
Meaning: Can you actually use even more demanding scaling algorithms now compared to v0.86.11? At least the same, without getting frame drops?

Yes, I tested for that too on some SD interlaced video I have. With .86, I could run Jinc3/AR luma no problems at all. Same now with .871b on same interlaced video (GPU load is actually a touch lower, ~8% IIRC), but I didn't actually record the numbers, I just watched for a few minutes and monitored frame drops (of which there were none). Software decoding for this SD testing.

If I try NNEDIx2 for the SD interlaced, I have to drop down to NN/Bilin and 16neurons. It appears I have just reached the limits of this card, unless there is some kind of dramatic perf increase with the next OpenCL driver update from our friends at AMD. ;) I would guess that the OpenCL<>D9D3D interop has room for improvement. Whether or not that translates to more headroom for these older, lowly cards is another question.

DragonQ
26th January 2014, 15:30
Ok. So it seems your performance issue is probably the last one remaining. I'm not sure if you said this in the past already, but does your performance issue only occur when some kind of deinterlacing is involved? You did say it had to do with smooth motion FRC. But does interlacing play any role? DXVA deinterlacing? Or film mode? Both or none? Thanks.
Yes, it's definitely only "video mode" deinterlacing that makes this problem manifest itself. It's made dramatically worse when Smooth Motion is on, but like I said above, this might just be a red herring since the GPU is at 100% load and can't cope.

Watching progressive videos and/or enabling film mode results in performance on par with 0.86.11 (or slightly better).

James Freeman
26th January 2014, 15:33
Yes, but even with 871b your screenshots still show lower rendering times for 5/5 than for 16/8. I'm wondering if these rendering times get nearer to each other if you let the video run for a longer time? You could also zoom in and back out again during playback to reset the average rendering times.

Thanks for the tip.
Play with the volume (mouse wheel) for instant refresh of everything else.

After a few minutes the stable times are (87.1b 1080i30 SM /On):

Avarage:
Deint 0.46
split 2.94
rendering 3.33
present 0.10

Max Stats:
deint 1.03
split 4.12
rendering 4.06
present 0.16

What is weird is that in one of your images the max numbers are smaller than the average numbers. Not sure how that could happen.

I've taken the photo too fast.
It does not matter, 87.1b still the fastest release yet.

huhn
26th January 2014, 15:36
nope 16/8 ~2 ms 5/5 0.65 ms over a min should be more than enough. deinterlacing is and was for all test on automatic. deint starts at 9 ms and falls to 2 ms after some time. but gpu load is at ~35% for both.

but there is one thing that doesn't make sense at first look it's ivtc rendertime they are at ~9 ms and deint is at 4.5 ms...
butthat's simple and makes rendertime kinda worthless because in ivtc made the gpu was at 157/300 mhz - 500/300 mhz so at idle most of the time but with deint it was at max powerstate 850/1300 mhz.

so to compare different version we need the powerstate too...

madshi
26th January 2014, 15:44
Ah yes, powerstate. Probably makes sense to fix the powerstate to a specific value (max?) while benchmarking rendering times...

pie1394
26th January 2014, 15:51
On my HTPC, 0.87.1b is improved on the GPU deinterlacing performance although it is not on pair with 0.86.10. You have done a good job to restore some lost performance. :D

[720x480i60]
0.86.10 : 0.83 ms
0.87.1: 1.64 ms
0.87.1b: 1.38 ms

[1440x1080i60]
0.86.10 : 1.44 ms
0.87.1: 4.21 ms
0.87.1b: 2.12 ms

Note the average number is not always measured the same, but still observed with the similar values on repeated tests.

For my HD7970, it always seems to go up to 925 MHz from 300MHz with madVR playback. The only difference is the fan speed level under different GPU loading. :p


--
Core i5-3570K + Z77 + dual-ch DDR3-2400 + HD7970@925MHz Catalyst 13.12 + Win7x64SP1 + MPC-BE 1.3.0.3 + LavFilter 0.60.1 (DXVA)