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

aquanash
6th October 2021, 01:43
So resolution changing does not work correctly, in fact it often switches from 2160P to 1080P yet plays at 2160P when I enable such switching of refresh rates where only:
2160p23, 2160p24, 2160p25, 2160p29, 2160p30, 2160p50, 2160p59, 2160p60
are allowed.

It does not change refresh rate only resolution and then incorrectly, so this functionality seems to have been broken in Windows 11 on an Nvidia 1080TI.

ERIC

Sorry no logs, I took them, but they exceed 200K

If you have more than one device listed under madVR's device settings, please try removing all except the active one. This fixed the issue for me in Windows 11.

KrazyLurt
6th October 2021, 19:24
That fixed it for me as well. I now only have 2 devices in MadVR settings , and those are active. That’s my OLED TV and my reciever ( I do not use hdmi passthrough or eARC with my reciever)

thighhighs
6th October 2021, 21:27
No bugfixes have been released for several years. Will there be an update now? :confused:

chros
7th October 2021, 06:39
Probably not, no hlg passthrough either.

mclingo
7th October 2021, 15:42
No bugfixes have been released for several years. Will there be an update now? :confused:

Some of us still had some hope MADSHI would realease a final version V1.0 with some imporovements and bug fixes but this is looking very unlikely now, its been too long now with no contact at all from him on this thread.

There is still plenty of dev going on for HDR tonemapping but nothing else.

Sadly I think this is it for WINDOWS MADVR, its just great it still works very well for the majority of users.

ashlar42
7th October 2021, 17:10
Luckily I had no compelling reason to switch to Windows 11. Now I have compelling reasons not to. =D

Virtualizer
7th October 2021, 18:11
Luckily I had no compelling reason to switch to Windows 11. Now I have compelling reasons not to. =D

Or:
Everyone wants new Windows but nobody is willing to live with the consequences. :p

ashlar42
7th October 2021, 18:27
Or:
Everyone wants new Windows but nobody is willing to live with the consequences. :p
I swear I don’t want it at the moment. I have not seen anything that screamed “must have” to me.

Siso
7th October 2021, 19:56
Guys can anyone tell me, what "unknown format 24 bits" means in reclock, I was watching a HDR encode with madvr. I'm using madvr 0.92.17 - tone map HDR using pixel shaders, video drivers are 466.77. Lav video decoder is set to D3D11, tried and DXVA2 CB same result. https://thumbs2.imgbox.com/dc/27/SQwCDUH9_t.jpg (https://imgbox.com/SQwCDUH9) https://thumbs2.imgbox.com/d3/28/SkmDYmLm_t.png (https://imgbox.com/SkmDYmLm)

ashlar42
7th October 2021, 20:46
Guys can anyone tell me, what "unknown format 24 bits" means in reclock, I was watching a HDR encode with madvr. I'm using madvr 0.92.17 - tone map HDR using pixel shaders, video drivers are 466.77. Lav video decoder is set to D3D11, tried and DXVA2 CB same result. https://thumbs2.imgbox.com/dc/27/SQwCDUH9_t.jpg (https://imgbox.com/SQwCDUH9) https://thumbs2.imgbox.com/d3/28/SkmDYmLm_t.png (https://imgbox.com/SkmDYmLm)
Well, it might well be that Reclock can't "understand" HDR, since it's 30 bit and not 24?
But judging from your screen it's working with no problem, isn't it?

Siso
7th October 2021, 20:56
Well, it might well be that Reclock can't "understand" HDR, since it's 30 bit and not 24?
But judging from your screen it's working with no problem, isn't it?

Maybe the problem is in reclock? Otherwise I had compared the same movies in x264 and in x265 HDR, and they generally looks identical. The x264 look just a little bit darker, x265 with 100 nits look better, my monitor is calibrated to 100 nits, so I put that in madvr's target peak nits - is that ok?

ashlar42
7th October 2021, 21:46
Maybe the problem is in reclock? Otherwise I had compared the same movies in x264 and in x265 HDR, and they generally looks identical. The x264 look just a little bit darker, x265 with 100 nits look better, my monitor is calibrated to 100 nits, so I put that in madvr's target peak nits - is that ok?
If you have a non-HDR monitor, you need to tonemap HDR content. Are you doing that?
Have a look here: https://forum.doom9.org/showthread.php?t=171787

Reclock has no problem working with HDR content... it's an audio renderer, it could not care less about video content, as long as it can properly detect its framerate.

egandt
7th October 2021, 21:56
If you have more than one device listed under madVR's device settings, please try removing all except the active one. This fixed the issue for me in Windows 11.

Problem is I have 3 screens and I can not remove an active ones. Any other suggestions?

Virtualizer
7th October 2021, 22:11
Problem is I have 3 screens and I can not remove an active ones. Any other suggestions?

Delete the non-active ones, then restart, put it on one of the before deleted ones and delete the last one.

Just make sure that every display is at least one time deleted from the config.

Siso
7th October 2021, 22:15
If you have a non-HDR monitor, you need to tonemap HDR content. Are you doing that?
Have a look here: https://forum.doom9.org/showthread.php?t=171787

Reclock has no problem working with HDR content... it's an audio renderer, it could not care less about video content, as long as it can properly detect its framerate.

My monitor is not HDR, so I'm still wondering what number of nits should I write in target peak nits?

huhn
8th October 2021, 01:12
the one you measure with a colorimeter else you are just guessing.

Asmodian
8th October 2021, 01:12
Usually 100 to 200 nits looks good. 100 nits is the standard for SDR, but most monitors are higher than that. The setting is more about changing the look instead of finding the correct value anyway.

Siso
8th October 2021, 10:43
Usually 100 to 200 nits looks good. 100 nits is the standard for SDR, but most monitors are higher than that. The setting is more about changing the look instead of finding the correct value anyway.

I will experiment with these values.

HillieSan
8th October 2021, 11:44
I did a fresh install of Windows 11, madVR, LAV filters, mpc-be and nvidia drivers for the GTX 3060 Ti. So far so good. I have noticed no differences, except that Windows 11 has some cosmetic improvements over Windows 10. The problem, when I watch a non-HDR movie with mpc-be then the screen sometimes turns purple as if HDR wants to kick in, is still there. Every time I have to restart Windows to fix the problem. Is this problem madVR related?

el Filou
8th October 2021, 14:55
Guys can anyone tell me, what "unknown format 24 bits" means in reclock, I was watching a HDR encodeReClock reports the 'observed' number of bits, not the encoded nor displayed number of bits, e.g. for 8-bit 4:2:0 it will report 12 bits per pixel (this is not correct wrt to how the picture is sent, but it's a practical simplification). If it reports 24 bits it's probably because it's 4:2:0 10-bit that then gets padded to 16-bit, so 24 bits total.
Nothing to worry about as ashlar said.

Siso
8th October 2021, 17:03
ReClock reports the 'observed' number of bits, not the encoded nor displayed number of bits, e.g. for 8-bit 4:2:0 it will report 12 bits per pixel (this is not correct wrt to how the picture is sent, but it's a practical simplification). If it reports 24 bits it's probably because it's 4:2:0 10-bit that then gets padded to 16-bit, so 24 bits total.
Nothing to worry about as ashlar said.

Thanks, I thought there might be something wrong with the output of lav video decoder or the video card. :thanks:

huhn
8th October 2021, 17:13
Usually 100 to 200 nits looks good. 100 nits is the standard for SDR, but most monitors are higher than that. The setting is more about changing the look instead of finding the correct value anyway.

the nit numbers are actually made to be only accurate when matching.
so there are actually calibration reason behind the nit setting.

pentagon
9th October 2021, 22:39
Is it possible to setup madvr so that it only enables HDR mode when the player is in fullscreen? I want windowed mode to be SDR so that Windows isn't all washed out if I want to browse the internet while watching a windowed movie. I think I've tried every display mode option/hdr option there is, but as soon as it detects an HDR video, my projector flips over to HDR mode regardless if I'm windowed or fullscreen.

ryrynz
10th October 2021, 03:54
Is it possible to setup madvr so that it only enables HDR mode when the player is in fullscreen?

Nope.

KrazyLurt
10th October 2021, 13:22
I ran into the same issue after installing Windows 11 today and found that pressing ALT-TAB even just one time to switch windows causes 10bit to stop working in D3D11 fullscreen windowed seemingly forever until I reboot the machine, then it works fine until I press alt-tab again. I had this same issue in Windows 10 after pressing windowskey-tab and never found a solution.

I just found that setting AltTabSettings to 1 in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer prevents the issue in Windows 11, but you get a really old legacy version of the switcher.

I'm curious if anyone else if having this same issue. Can you please try pressing alt-tab to switch windows and see if it breaks 10bit for you also?
I can confirm Alt-Tab causes the same issue for me as well.

ashlar42
10th October 2021, 14:31
Two questions.

1) Considering madVR cannot deinterlace when using DirectX 11, how do you deinterlace? Software through LAV? Other solutions?

2) Is there a way to activate different 3D LUTs through a key combination? Say one for day viewing and one for night viewing.

On this, secondary question: is the 3D LUT file loaded dynamically when a video start or does madVR save it in RAM when it's loaded at boot? Cause otherwise I could have a script exchanging files through a remote key, in case it's not possible directly through madVR.

Thanks!

egandt
10th October 2021, 16:34
Delete the non-active ones, then restart, put it on one of the before deleted ones and delete the last one.

Just make sure that every display is at least one time deleted from the config.

So I tried (of teh 4 call them A,B,C,D) I removed B, C, D (physically) then deleted them from madvr, and existed manager. Reconnected B and removed A, and started MadrVr and removed A
So now A,B,C,D had been removed once and I only had B present. Stopped MadVr and enabled all the remaining monitors (plugged them back in).

Upon restarting I see multiple devices, and every time madvr is restarted a new identification is created. Also resolution changing is still not working, nor is HDR passthrough.

I do have one work around using MCP-HC and having it change the resolution which seems to be working correctly, however it is not my preferred player, still it is an option. Note screenshot was while n progress so resolutions are not exact, but get point across.

ERIC

JaylumX
10th October 2021, 17:46
Two questions.

1) Considering madVR cannot deinterlace when using DirectX 11, how do you deinterlace? Software through LAV? Other solutions?

Thanks!

Madvr does deinterlace when using DirectX 11 in Lav filters, you just have to select your graphics card instead of using native in the "hardware device to use" drop-down-box.

thighhighs
10th October 2021, 18:53
every time madvr is restarted a new identification is created
Same problem on Windows 11. Device IDs stacking up. Looks like all users affected. Hope it GPU driver/Windows related bug and will be fixed in future. Otherwise madVR should be updated :scared:

el Filou
10th October 2021, 23:43
Madvr does deinterlace when using DirectX 11 in Lav filters, you just have to select your graphics card instead of using native in the "hardware device to use" drop-down-box.But then you lose the only benefit of D3D11 which is the lossless and high-performance/low load native mode.
I have to constantly switch decoders manually depending on what I'm watching to get the best quality out of madVR with my NVIDIA and it's a bit tedious, but no way around it.

clsid
11th October 2021, 00:16
You could let LAV Video do the deinterlacing. Then you should only get copyback for interlaced video. Assuming the interlaced stuff is 1080p and below, that shouldn't matter much for performance.

SamuriHL
11th October 2021, 00:24
Are they still interlacing 4k content???

huhn
11th October 2021, 03:42
they wanted to do that in french for broadcast they may have...

SamuriHL
11th October 2021, 04:26
I thought they got rid of that nonsense with 4k. Ughhhhhh

Sent from my SM-G998U1 using Tapatalk

el Filou
11th October 2021, 13:36
You could let LAV Video do the deinterlacing. Then you should only get copyback for interlaced video. Assuming the interlaced stuff is 1080p and below, that shouldn't matter much for performance.Do you mean with Yadif/Weston? Or with CUVID? Software deint isn't as good as CUVID's deint to me. But then if I leave the decoder on CUVID, it deinterlaces PAL film content too (I know people said it shouldn't, but it does) and I have no easy way to disable that with a hotkey like when controlling deinterlacing from madVR.
I have mapped .reg files to shortcuts to make my life easier, it's not that much of a hassle even if not super friendly.they wanted to do that in french for broadcast they may have...Currently the french UHD broadcast test is still 50p, so I hope they forgot about that for good.

jmonier
11th October 2021, 13:40
Same problem on Windows 11. Device IDs stacking up. Looks like all users affected. Hope it GPU driver/Windows related bug and will be fixed in future. Otherwise madVR should be updated :scared:

This problem and the one with HDR passthrough has identical symptoms to a bug that I reported several years ago. That bug occurred only with a Displayport connection but was on Windows 8.1.

I believe that madshi ignored it because the Displayport was so rare for HT. It's probably worth another look at this time.

SamuriHL
11th October 2021, 15:32
Currently the french UHD broadcast test is still 50p, so I hope they forgot about that for good.

God I really hope so. Interlacing should DIE a horrible death in fire.

ashlar42
11th October 2021, 16:37
God I really hope so. Interlacing should DIE a horrible death in fire.
Quoted for truth. In any case, I see there's no easy solution. I'll keep on re-encoding my stuff and deinterlacing it with QTGMC.

CarlosCaco
12th October 2021, 08:05
Hey guys im using madvr in my new notebook and i noticed the player dont enter on d3d11 exclusive mode, so i cannot use the 12bit mode, checked exclusive mode no matter what i do i only get d3d11 windowed, the gpu is a 1650 Windows 10 latest drivers... Do anyone knows what can be causing the player do not entering on exclusive mode? Thanks

el Filou
12th October 2021, 12:46
No guarantee but worth a try: right-click the executable (or the Start Menu shortcut to it) and in Compatibility tab, check Disable full-screen optimisations.

But I don't see why you would need exclusive to get 12-bit with NVIDIA.

Whiskeyomega
12th October 2021, 21:28
Where do you get the betas ? Really need to update as some files have bad AR on 92.17

Asmodian
12th October 2021, 21:58
I doubt the betas are going to change anything about AR handling.

They are updates for HDR tone mapping, nothing else as far as I know.
http://madshi.net/madVRhdrMeasure141.zip

Whiskeyomega
12th October 2021, 22:46
I doubt the betas are going to change anything about AR handling.

They are updates for HDR tone mapping, nothing else as far as I know.
http://madshi.net/madVRhdrMeasure141.zip

Thanks
Its definitely MadVR thats cropping the frame. It doesnt help the AR info on the file is broken but at least EVR doesnt crop the picture itself so I can just scale it down to 2:35:1 with MadVR it adds a massive one sided black bar at the top. EVR shows the whole picture no bars until you scale it manually its meant to be 2:35:1 and VLC displays it properly.

el Filou
14th October 2021, 16:43
madVR doesn't crop unless it is instructed to by its own configuration, player application, or automatic black bar detection.
Post a screenshot with the OSD showing (Ctrl+J), to see what madVR is doing to the picture.

Whiskeyomega
14th October 2021, 19:27
madVR doesn't crop unless it is instructed to by its own configuration, player application, or automatic black bar detection.
Post a screenshot with the OSD showing (Ctrl+J), to see what madVR is doing to the picture.

I gave up trying to get it correct really. Just seems these files I have were badly decoded and need redoing.

https://i.imgur.com/igX7vhP.jpeg

SirMaster
14th October 2021, 21:37
Is it possible to setup madvr so that it only enables HDR mode when the player is in fullscreen? I want windowed mode to be SDR so that Windows isn't all washed out if I want to browse the internet while watching a windowed movie. I think I've tried every display mode option/hdr option there is, but as soon as it detects an HDR video, my projector flips over to HDR mode regardless if I'm windowed or fullscreen.

Just make 2 profiles, one with HDR passthrough and 1 with HDR tone-mapping.

Set hotkeys for the 2 profiles and then when you switch between windowed and fullscreen you can press the hotkey to decide if you want HDR or SDR.

And you can set whichever profile to be the default that you prefer.

ryrynz
17th October 2021, 02:59
Just make 2 profiles

Nice solution

flossy_cake
17th October 2021, 06:53
Hello

There appears to be a serious bug related to the "composition rate" used by MadVR, which can cause intense frame rate stuttering in many scenarios.

The issue appears that "composition rate" gets stuck at the rate used by the previously played file.

I am able to reproduce this bug on two different systems, with two different motherboards and two different GPUs (AMD R9 380, NVidia 1070). However both systems use Windows 7 x64, so it may be a bug related to Windows 7's compositor. I do not have a Windows 10 machine at the moment, but if someone could check this on Win10 it would be much appreciated.

Steps to reproduce:

1. Use the latest MPC-HC 64bit v1.9.15.79 and MadVR v0.92.17, as provided with the latest K-Lite "full" codec pack.

2. Set your monitor to a 60hz mode, such as 1080p60 or 1440p60 etc. (I haven't tested this on a 4k60 monitor yet).

3. Ensure your monitor is capable of the 24hz equivalent, eg. 1080p24 or 1440p24.

4. In MPC-HC > view > options > Playback > Fullscreen > untick "Launch files in fullscreen"

5. In MadVR settings > devices > display modes:

a) tick "switch to matching display mode ... when media player goes fullscreen"
b) tick "restore original display mode ... when media player is closed"
c) in "list all display modes", type in the two modes, eg. "1080p24, 1080p60" or "2560x1440p24, 2560x1440p60" (text field must say valid)

6. In MadVR settings > rendering > general settings, untick "enable automatic fullscreen exclusive mode"

7. Apply, close and exit MPC-HC.

8. Open a p24 video and press Ctrl+J. Both display rate and composition rate should report 60hz (first two lines on Ctrl+J screen).

9. Alt+Enter to go full screen. Both display rate and composition rate should now report 24hz, and playback framerate should be flawless.

10. Esc to exit full screen and exit MPC-HC. This will trigger the display mode changing back to 60hz.

11. Open a p60 video and press Ctrl+J. Composition rate still reports 24hz and playback is stuttery.

I have discovered a workaround to this, and it seems to imply it is perhaps an issue with Windows compositor: between steps 10 and 11, open a window such as Windows file explorer, and drag it around the screen. On both my systems I observe the window movement is animating still at what appears to be 24hz despite the display mode having switched back to 60hz, as per previous step 10. However, after a few seconds of dragging the window around, releasing the mouse button in between drags, it starts animating smoothly again at 60fps, as if Windows compositor is finally realising it needs to animate at 60hz again to match the display rate. Then, after this, Ctrl+J composition rate reports the correct 60hz for a 60p video and there is no stutter.

So it appears to be something going wrong with Windows compositor getting stuck at the value used by the previous video -- is there perhaps some Windows API function that MadVR could call on exiting MPC-HC which could somehow reset or reinitialise Windows compositor?

Thanks for your time.

_______________________________________________________________________

Update: the issue appears to be resolved if I disable Windows desktop compositor. I say appears because without desktop composition the Ctrl+J composition rate is no longer reported, so I'm just eyeballing it to check the frame rate is smooth, and it does appear to be (and that issue with having to drag a window around to reset it, does not occur). Annoyingly, Direct3D 11 is not possible unless compositor is enabled, and am not sure if video fidelity is compromised by using D3D9 instead.

huhn
17th October 2021, 08:26
the composition rate is the refreshrate used by windows desktop there is no way for madVR to change it. it's a bug of the WDDM.

the orginal FSE mode ignores the composition rate(it may show it but does not present on it) so is overlay renderering.

this can happen on some win 10 version so have it fixed win 8 had this problem generally fixed. i have not sen it on 11 yet.

flossy_cake
18th October 2021, 02:04
Thanks, guess I'll be switching to Windows 10 then.

I realise we can work around it by using full screen mode -- either exclusive or not, doesn't matter, full screen always gets matching composition rate in my tests.

But as soon as we go back to windowed mode the problem persists, and the user has to manually drag windows around to restore the compositor rate.

eg. suppose the user finished playing a 24fps movie, exits MPC-HC and then wants to do some web browsing. The web browser will be all stuttery on scrolling and user must drag windows around to clear the bug.

I am still thinking there must be some API function that could automatically reset the bug on MPC-HC exit. Something that does the equivalent to dragging a window around, such as rendering a few frames of video at a higher rate?