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

Warner306
2nd April 2018, 16:09
Doesn't it defeat the purpose if I force LAV to use copy-back instead of native?

It works though (thanks) but performance is horrible, got dropped frames now.

Try going back to DXVA2 copy-back. Does it get any better? If so, forget about D3D11 as it's unnecessary and native mode doesn't work for you.

There may be a bottleneck with your GPU (only 8 lanes) combined with a lack of PCIe express bandwidth (v2.0 or lower) in copy-back mode. I've run into one other user with this problem. I don't know how he installed his graphics card. He may have installed it in a x4 slot. Native and copy-back shouldn't have radically different performance.

SamuriHL
2nd April 2018, 18:14
I did bitstream but without using reclock, just direct audio device and lav filters, nothing else.

I will watch some movie tomorrow without bitstream just PCM but i gave a tried alrdy for few minutes and still had some occasional drops.

Fascinating. With JRiver's video option turned on my issues went away using PCM. I think it's similar to how ReClock works afaik. In any case I've watched a few movies now with this setup and it's working extremely well for me.

maxkolonko123
2nd April 2018, 19:15
Fascinating. With JRiver's video option turned on my issues went away using PCM. I think it's similar to how ReClock works afaik. In any case I've watched a few movies now with this setup and it's working extremely well for me.


For now i droped reclock and im checking internal wasapi in mpc hc, after few quick checks i didnt notice any difference between PCM and bitsream with wasapi, but tbh i didnt had time to watch movie from start to end, i just base my opinion on switching movie to FSE and compare frame repeat time, in both situation it's oscilate around same time.

zaemon
2nd April 2018, 21:08
Try going back to DXVA2 copy-back. Does it get any better? If so, forget about D3D11 as it's unnecessary and native mode doesn't work for you.

There may be a bottleneck with your GPU (only 8 lanes) combined with a lack of PCIe express bandwidth (v2.0 or lower) in copy-back mode. I've run into one other user with this problem. I don't know how he installed his graphics card. He may have installed it in a x4 slot. Native and copy-back shouldn't have radically different performance.



Thanks. I’m back to DXVA2 copy-back, works flawlessly.

My GTX 1080 is plugged in a very old motherboard (X58 chipset, PCIe 2.0) so it makes sense. MB upgrade is scheduled but not a priority ATM.

el Filou
2nd April 2018, 21:25
Motherboard upgrade shouldn't change anything to D3D11 Native problems. Sounds like an NVIDIA driver issue.
Can't you use the previous driver?
What's your OS? If it's Windows 10 you could also try Windowed D3D11 presentation mode, I've never had any issue with it and a 1050 Ti even when using D3D11 Native decoding in LAV at the same time.
Native D3D11 is nice for 4K (as long as you don't use black bar detection) because it gives you better performance than DXVA2 Copyback without the lower chroma quality of DXVA2 Native.

Warner306
2nd April 2018, 22:00
Motherboard upgrade shouldn't change anything to D3D11 Native problems. Sounds like an NVIDIA driver issue.
Can't you use the previous driver?
What's your OS? If it's Windows 10 you could also try Windowed D3D11 presentation mode, I've never had any issue with it and a 1050 Ti even when using D3D11 Native decoding in LAV at the same time.
Native D3D11 is nice for 4K (as long as you don't use black bar detection) because it gives you better performance than DXVA2 Copyback without the lower chroma quality of DXVA2 Native.

I thought the performance improvement was small at best? How big of an improvement are you getting?

So why doesn't D3D11 copy-back work for him? It sounds like a bandwidth problem but DVXA2 copy-back works fine.

Native doesn't seem to be selecting his GPU, but the two copy-back modes are wildly-different.

maxkolonko123
2nd April 2018, 23:05
So does D3D11 only works in win10 or win7 is fine too?

nevcairiel
2nd April 2018, 23:07
I thought the performance improvement was small at best? How big of an improvement are you getting?

Its minimal over DXVA2-Native, but DXVA2-Native results in degraded quality, so its often not considered an alternative. If you're talking DXVA2-CB compared to D3D11 Native and 4K 10-bit content on a weak CPU with a weak memory system, it can make up the ability to even play it.
The improvements might be even better if madshi rewrites madVR in D3D11 eventually (its primarily still D3D9 on the inside).

So does D3D11 only works in win10 or win7 is fine too?

Only on 8.1 or 10. Not on 7.

SamuriHL
3rd April 2018, 00:24
For now i droped reclock and im checking internal wasapi in mpc hc, after few quick checks i didnt notice any difference between PCM and bitsream with wasapi, but tbh i didnt had time to watch movie from start to end, i just base my opinion on switching movie to FSE and compare frame repeat time, in both situation it's oscilate around same time.

I hope you get it working! I was getting irritated with it and decided my time was better spent watching a movie without dropped frames than any continued effort. I'm a bitstreaming fan but ultimately the audio is going to get decoded somewhere and IMO it's not worth the aggravation for such little gain. If I could have made it work in the time I gave it I'd have been happy. I may give it another shot after I finish my current project of setting up a NAS for all my media storage. I need to revisit my madvr settings, too, at some point.

Warner306
3rd April 2018, 01:01
Its minimal over DXVA2-Native, but DXVA2-Native results in degraded quality, so its often not considered an alternative. If you're talking DXVA2-CB compared to D3D11 Native and 4K 10-bit content on a weak CPU with a weak memory system, it can make up the ability to even play it.
The improvements might be even better if madshi rewrites madVR in D3D11 eventually (its primarily still D3D9 on the inside).



Only on 8.1 or 10. Not on 7.

I was thinking more in terms of a user who is able to decode via DXVA2 copy-back (like the original poster) and wants to use D3D11 Native. What kind of performance improvements would be seen in madVR at 4K?

And what kind of CPU/RAM combination fails at copy-back with adequate VRAM? I thought it had to be an issue with PCIe speed with the GPU having to transfer so much data back-and-forth, rapidly? Some modern CPUs are not up to the task?

Calolo
3rd April 2018, 01:27
Hello,

I am using MPC-HC, madVR and LAV filters for my HTPC (iGPU HD 630).
I have disabled all image correction settings in Intel drivers.

Setting decoding to D3D11 native result in an average rendering time of 25ms, mostly stable even with light scaling settings. Using D3D9, average rendering was much better (5ms) but with max rendering time > 25ms.
Should I have a faster rendering with D3D11?

I have not been able to watch "The world in HDR" 4K 60fps 10bit demo:
http://4kmedia.org/the-world-in-hdr-uhd-4k-demo/
Even using bilinear scaling, on my 1080p TV the rendering is very slow. I tried with EVR, the video is smooth but HDR is not converted to SDR. Maybe the madVR HDR>SDR conversion is too heavy to be handled by the iGPU?

Using the HDMI port on Intel iGPU does not allow to output 10bit because the drivers always dither to 8bit (I checked that with my AVR reporting 4:4:4 8bit signal).
https://www.intel.com/content/dam/www/public/us/en/documents/white-papers/deep-color-support-graphics-paper.pdf
Could we have an option in madVR to force 12bit output?

Thank you very much.

Asmodian
3rd April 2018, 01:38
No, you should not have faster rendering with D3D11 than D3D9.

Yes, others have also reported that the 630 is too slow for good quality HDR to SDR. Have you tried changing madVR's HDR options?

madVR will not be able to force the output bit depth, the GPU has to be the one in control.

BetA13
3rd April 2018, 01:58
just a quick question...(yeah, i know kinda strange question but i want to make an icon for MadVR, so i need some input)

I just wanted to ask, what does teh "VR" stand for in MadVR?
I want to make an ICON for MadVR and teh Media Player using it, i thought it would have a nice touch to it, seeing it in the taskbar and teh player icon..

And to be honest, the VR reminds me to much of "Virtual Reality" so i wanted to know what it stands for.. its just an non related question, haha..But it would help ,me on the icon.

THX, and greetings...

Keep it up madshi and HAPPY EASTERN!!!

maxkolonko123
3rd April 2018, 02:06
I hope you get it working! I was getting irritated with it and decided my time was better spent watching a movie without dropped frames than any continued effort. I'm a bitstreaming fan but ultimately the audio is going to get decoded somewhere and IMO it's not worth the aggravation for such little gain. If I could have made it work in the time I gave it I'd have been happy. I may give it another shot after I finish my current project of setting up a NAS for all my media storage. I need to revisit my madvr settings, too, at some point.

Hopefully one day yeah :D

Asmodian
3rd April 2018, 02:18
I just wanted to ask, what does teh "VR" stand for in MadVR?


Video Renderer :)

Ver Greeneyes
3rd April 2018, 10:05
By the way, which madVR options can I use to reduce GPU memory usage? I assume the GPU queue size is relevant and the number of frames to be presented in advance, but what about "trade quality for performance" options? Does "store custom pixel shader results in 16bit buffer instead of 32bit" help a lot?

huhn
3rd April 2018, 10:24
if you are using a custom pixel shader maybe but it's most likely very little.

tyrindor
3rd April 2018, 12:11
New issue just popped up for me. Whenever I play a video and fullscreen it (exclusive fullscreen enabled), there's a ~3 second stutter, then it plays for half a second followed by another ~3 second stutter. Audio/Video is still playing in real time, as it just skips ahead after. Happens even on an SSD, and disabling exclusive fullscreen fixes it but then I can't get 3D/HDR correctly.

Only thing I can think of is I upgraded to Win10 Spring Creative Update which went RTM a few days ago.

ryrynz
3rd April 2018, 13:30
First thing I'd do is uninstall and reinstall graphics drivers, maybe try DDU as well if normal uninstall doesn't change anything.

tyrindor
3rd April 2018, 14:07
First thing I'd do is uninstall and reinstall graphics drivers, maybe try DDU as well if normal uninstall doesn't change anything.

Sadly, no go. Spring Update hits either today or next tuesday, so if it's caused by that we're gonna see posts soon. I don't believe I changed anything other than that.

clsid
3rd April 2018, 14:49
There have been plenty of people with stuttering issues on previous W10 versions as well.

Several tweaks that can help:
* Nvidia power settings -> Select "Adaptive"
* Right-click on video player .exe > Properties > Compatibility > Disable fullscreen optimizations
* Disable Game bar/DVR function in Windows
* Clear standby memory (https://www.reddit.com/r/Windows10/comments/7a0763/standby_memory_issue_causing_stutters_on_creators/)
* Experiment with he VSync settings in your driver
* More (https://forums.geforce.com/default/topic/1004600/geforce-drivers/all-games-stuttering-with-fps-drops-since-windows-10-creators-update/1/)

mogli
3rd April 2018, 16:11
madVR FSE works just fine for me with RS4. The first time it enters FSE the info center informs me that no messages will be displayed while "playing this game" which seems to cause a tiny additional delay when switching. However movies play just fine and stutter free after that.

SamuriHL
3rd April 2018, 17:31
Yea, I'm on the spring update, as well, and have no issues like that. But I will say that you REALLY should reinstall the graphics driver after a windows upgrade. I did have some issues before I did that.

mparade
3rd April 2018, 18:00
Hello,

Is option passthrough "HDR metadata to the display" working with 1080p sources as well? I converted my BD-s using a "8-bit bt.709 to 10-bit HDR" script but the reencoded videos rendered by madVR, according to my LG C6V, are not HDR videos and the colours are completely off, the movies are unwatchable. However, there is no problem with the UHD HDR videos reencoded, my TV automatically switches to HDR mode when they are being played.

Has anyone met such a problem so far?
Any help would be appreciated.

sneaker_ger
3rd April 2018, 18:07
It should work with any resolution. Show madvr OSD (ctrl+j) and upload a small sample of the file. My guess is you ran the source through the SDR->HDR script but didn't set any HDR flags in the encoded bitstream/container so madvr doesn't know the source is HDR. Or are the colors correct when you let madvr convert HDR->SDR? Then try to output at 4K resolution. Then your TV cannot know that the source is 1080p.

maxkolonko123
3rd April 2018, 18:20
So after few tests with my issue, still some dropped frames occur, no matter if its without reclock or with, no matter if i play movie with mpc-hc wasapi pcm, bitstream, still same problem. What is odd to me, no matter how i play my movie, i mean sound setting, custom display mode, no matter which mode i choose, for example EDID, CVT CRT, GTF etc I always end up on same number for frame drop/ repeats expected every 4.40min, doesnt matter if custom mode says 1day or 4hours always after going into FSE and cpl minutes of playing movie i get to same number, isn't this strange? that no matter what settings i choose it's always those 4.40-30min expected drop?

On the funny side, even after those drops happening i literally cant notice it while watching movie, before every single drop for me was like small jitter or so, now mowie play smooth just those drops are on osd in madvr. Maybe i should tweak settings in scalling algorithms?

Asmodian
3rd April 2018, 18:30
Are your rendering times good? If so don't mess with scaling options.

It sounds like you are not actually using the custom modes, this has happened to others as well. Does madVR's report of the refresh rate stay the same too? The decimal points should change as you tune a custom resolution. Getting the Nvidia drivers to actually switch to the custom mode can be tricky, try driver reinstalls with the start fresh option enabled... :(

mparade
3rd April 2018, 18:40
It should work with any resolution. Show madvr OSD (ctrl+j) and upload a small sample of the file. My guess is you ran the source through the SDR->HDR script but didn't set any HDR flags in the encoded bitstream/container so madvr doesn't know the source is HDR. Or are the colors correct when you let madvr convert HDR->SDR? Then try to output at 4K resolution. Then your TV cannot know that the source is 1080p.

Yes. I used SDR to HDR script and StaxRip automatically inserted all the necessary HDR infos on the x265 command line, supposedly. I am always upscaling 1080p to 2160p in madVR so my HDR TV receives 4K signal all the time.

I will come back with the required infos shortly.

Thank you very much for the help in advance!

maxkolonko123
3rd April 2018, 18:56
Are your rendering times good? If so don't mess with scaling options.

It sounds like you are not actually using the custom modes, this has happened to others as well. Does madVR's report of the refresh rate stay the same too? The decimal points should change as you tune a custom resolution. Getting the Nvidia drivers to actually switch to the custom mode can be tricky, try driver reinstalls with the start fresh option enabled... :(

In FSE :
Average rendering 26ish mms
Max stats rendering 30ish mms

I kinda dont get what you mean by decimal points change, here is the screenshot but in windowed mode due to taking screenshot https://imgur.com/a/jmCXx so maybe explain me on what numbers should i look.

I've added some more pictures to imgur from madvr custom mode settings, maybe you will notice if it's right or no.

After changing custom mode i did always restart my pc like it said there to do.

Warner306
3rd April 2018, 19:18
I've added some more pictures to imgur from madvr custom mode settings, maybe you will notice if it's right or no.

After changing custom mode i did always restart my pc like it said there to do.

It looks like you've entered the wrong display modes, as you're not upscaling to 3840 x 2160p.

The display modes should start with: 2160p23, 2160p24, 2160p25, 2160p50, 2160p59 and 2160p60.

maxkolonko123
3rd April 2018, 19:39
It looks like you've entered the wrong display modes, as you're not upscaling to 3840 x 2160p.

The display modes should start with: 2160p23, 2160p24, 2160p25, 2160p50, 2160p59 and 2160p60.

No no, its fine but when you do screenshot in mpc-hc it automatically switched off fullscreen mode and like you can see on picture it says windowed mode, so i think thats why you cant see any upscale going on, in fullscreen mode it's scale 0,0,1920x1380 -> 0,42,3840,2118

mparade
3rd April 2018, 19:42
upload a small sample of the file. My guess is you ran the source through the SDR->HDR script but didn't set any HDR flags in the encoded bitstream/container so madvr doesn't know the source is HDR.

Hello,

Sample uploaded here:

http://www.mammutmail.com/hu/download/7f2c9a2e6daf5f9a646a978629f54072

sneaker_ger
3rd April 2018, 19:57
You have set matrix coefficients and color primaries to BT.709 (1 & 1) and left transfer characteristics undefined (2). Usually for HDR those are set to bt2020nc (9), bt2020 (9) and smpte2084 (16) respectively. (I haven't checked the actual content of your sample, only the flags.)
http://x265.readthedocs.io/en/default/cli.html#vui-video-usability-information-options

maxkolonko123
3rd April 2018, 20:08
Hello,

Sample uploaded here:

http://www.mammutmail.com/hu/download/7f2c9a2e6daf5f9a646a978629f54072


Shows as a 10bit but doesnt switch my tv into HDR mode, like proper hdr movies are

mclingo
3rd April 2018, 20:21
found a bug with D3D11, on my system anyway. I have an issue with MADVR where when you play a 3D movie (1080p) and you stop it I lose HDMI handshake going from 3D 1080p back to 4k 2160p. It does this every time. The workaround is to disable MADVR refresh rate switching and use your movies players switching instead, i've had this working for ages and its been fine up until recently.

recently I switched from DXVA copy back to D3D11 decoding as I found it was about 20% faster than DXVA on my system, what I had forgotten to test was 3D though which I tested today. Whats happening now is the same as what happens in MADVR, when I stop a 3D movie I get HDMI loss which cant be gained back easily without resetting it, I use HDMION.

If I switch back to DXVA copyback the problem goes away, I think its interesting that now both MADVR refresh rate switching and now D3D11 with MPC or KODI DS refresh rate switching causes the same problem, HDMI loss coming from out of a 1080p 3D connection back to a 2160 2d desktop.

Its very possible its connected issues with FSE which is required on most systems for 3D playback.

Both issues happen with with AMD RX cards, i havent tested my NVIDA 1050 but this also had HDMI handshake issue coming out of 3D for me too.

Another workaround would be to run your PC desktop in 1080p but who wants to do that when you've got a 4k display, this also explains why most people dont see this, there are still fewer people with 4k displays than 1080p ones.

I'll post this on both MADVR and LAV forums as the issues seems to be connected now.

mparade
3rd April 2018, 20:23
You have set matrix coefficients and color primaries to BT.709 (1 & 1) and left transfer characteristics undefined (2). Usually for HDR those are set to bt2020nc (9), bt2020 (9) and smpte2084 (16) respectively. (I haven't checked the actual content of your sample, only the flags.)
http://x265.readthedocs.io/en/default/cli.html#vui-video-usability-information-options

Thank you very much for the help. All the flags are set by StaxRip automatically. I did not touch them not to make any mess. According to the author of the script:

# Convert Bluray Video (BT709) to 10bit 400nits (MaxFALL) High Dynamic Range Video.
# In some scenes, HDR output of this script saves as much as 50% bitrate in x265 CRF mode and doubles the quality in x265 2pass CBR mode.
# You must have a HDR compliant TV to play the output file.
# Script is 100% compliant with current HDR standards and has been tested extensively on HDR compliant TVs.
# Do NOT modify the script. Input and output are guaranteed to look 100% identical with default script settings. All x265 HDR switches are automatically set by Staxrip.
# Current UHD Bluray and HDR TV specifications only support exactly 400nits MaxFALL. Not more, not less. Standards will not change for many years.
# Do NOT change MaxFALL. Hardware players and TVs will not correct/scale it for you. White level and brightness will be off.
# MaxFALL and MaxCLL are both equal to 400nits. You can not independently set them.
# Do not change the gamma extraction to a value other than 2.2 specified in the script. It is NOT related to the gamma correction values used by the studios when mastering Bluray video. It is NOT related to the gamma settings of your monitor/TV either.
# We are extracting 2.2 gamma only because the exact same amount will be added back by SMPTE 2084. Not more, not less.
# SMPTE 2084 is a specialized HDR perceptual quantizer that already has built in gamma encoding that is exactly equivalent to a 2.2 pure gamma function.

mparade
3rd April 2018, 20:31
Shows as a 10bit but doesnt switch my tv into HDR mode

The same as here. Neither my LG TV nor madVR treats it as a hdr movie. I have to test it more thoroughly with x265 or leave it as is, in SDR.

sneaker_ger
3rd April 2018, 20:35
Last line of the script:
--colorprim bt709 --colormatrix bt709 --transfer smpte-st-2084
I assume that is the problem because the x265 command-line changed some time in the past. Now it must be "--transfer smpte2084" or simply "--transfer 16".

mparade
3rd April 2018, 20:38
I will test it and report back! Thank you very much!

DragonQ
3rd April 2018, 21:06
Is diffuse white set to 100?
Yes. I misspoke before about the image being washed out, what I meant was: if I set it the display's peak nits to 100 it looks closer to the SDR version of the film. If I set it to 200 nits, for example, the image is significantly darker.

Warner306
3rd April 2018, 22:04
Yes. I misspoke before about the image being washed out, what I meant was: if I set it the display's peak nits to 100 it looks closer to the SDR version of the film. If I set it to 200 nits, for example, the image is significantly darker.

That's normal behaviour. You can tweak it to your tastes. There is no exact formula for getting perfect HDR -> SDR or HDR -> HDR tone mapping. I don't think diffuse white would make it any better; it would probably make it worse.

tyrindor
3rd April 2018, 22:18
found a bug with D3D11, on my system anyway. I have an issue with MADVR where when you play a 3D movie (1080p) and you stop it I lose HDMI handshake going from 3D 1080p back to 4k 2160p. It does this every time. The workaround is to disable MADVR refresh rate switching and use your movies players switching instead, i've had this working for ages and its been fine up until recently.

recently I switched from DXVA copy back to D3D11 decoding as I found it was about 20% faster than DXVA on my system, what I had forgotten to test was 3D though which I tested today. Whats happening now is the same as what happens in MADVR, when I stop a 3D movie I get HDMI loss which cant be gained back easily without resetting it, I use HDMION.

If I switch back to DXVA copyback the problem goes away, I think its interesting that now both MADVR refresh rate switching and now D3D11 with MPC or KODI DS refresh rate switching causes the same problem, HDMI loss coming from out of a 1080p 3D connection back to a 2160 2d desktop.

Its very possible its connected issues with FSE which is required on most systems for 3D playback.

Both issues happen with with AMD RX cards, i havent tested my NVIDA 1050 but this also had HDMI handshake issue coming out of 3D for me too.

Another workaround would be to run your PC desktop in 1080p but who wants to do that when you've got a 4k display, this also explains why most people dont see this, there are still fewer people with 4k displays than 1080p ones.

I'll post this on both MADVR and LAV forums as the issues seems to be connected now.

Sounds like an issue i've been having lately on a Titan XP, complete HDMI loss after playback of HDR/3D sometimes. I'm using D3D11 as well. May just need to go back to the tried and true copy-back.

mclingo
3rd April 2018, 22:46
Sounds like an issue i've been having lately on a Titan XP, complete HDMI loss after playback of HDR/3D sometimes. I'm using D3D11 as well. May just need to go back to the tried and true copy-back.

I tried the last three AMD drivers, no difference, its defo an issue with D3D11, soon as i switched back to COPYBACK all my black screens stopped.

it still takes a few seconds to drop in and out of mode but it always comes back now.

brazen1
3rd April 2018, 23:13
Using D3D11 Native FSE for stereoscopic with NVidia. Using D3D11 Native windowed for HDR with NVidia. I get none of the bugs you guys are reporting. Desktop and KODI resolutions are both at 2160p and match refresh rates set in madVR for external players and in KODI for when videoplayer is used. Use fullscreen window in KODI is enabled fwiw. 2160p23, 2160p24, 2160p25, 2160p50, 2160p59, 2160p60 No idea why you set DSPlayer up completely the opposite but this may be why one problem leads to another which leads to another which leads to another? These problems are not video cards or madVR or LAV Filters imo.

tyrindor
3rd April 2018, 23:55
Using D3D11 Native FSE for stereoscopic with NVidia. Using D3D11 Native windowed for HDR with NVidia. I get none of the bugs you guys are reporting. Desktop and KODI resolutions are both at 2160p and match refresh rates set in madVR for external players and in KODI for when videoplayer is used. Use fullscreen window in KODI is enabled fwiw. 2160p23, 2160p24, 2160p25, 2160p50, 2160p59, 2160p60 No idea why you set DSPlayer up completely the opposite but this may be why one problem leads to another which leads to another which leads to another? These problems are not video cards or madVR or LAV Filters imo.

Just because someone has an issue and someone else doesn't, doesn't mean it's a user or setup error. I'm doing the same things as you just described, and still get signal loss after HDR/3D playback every now and then like him. I must power cycle my receiver to regain video.

HDMI is a fragile interface that can have handshaking issues for one person, and none for the other, even on identical hardware, cables, and software. Not even the same hardware is created equal, there can be batch exclusive issues of the same model numbers. Computers are way too complex to think "I don't have this issue, so there is no issue or they are doing something wrong".

brazen1
4th April 2018, 00:26
Think what you want. You are doing something different. Hence, the problems labeled bugs.

Asmodian
4th April 2018, 03:21
I have noticed that receivers are much more finicky. I suspect most differences are due to receiver and displays, not user or config errors.

Driver weirdness is real too, I have had reinstalling the same GPU drivers again solve issues way too many times.

BetA13
4th April 2018, 11:18
Video Renderer :)

:thanks:

i knew it, it was just way too late for me, my brain couldnt function anymore, haha..
Of course its Video Renderer...im so stupid..

Thanks.

maxkolonko123
4th April 2018, 14:24
I have noticed that receivers are much more finicky. I suspect most differences are due to receiver and displays, not user or config errors.

Driver weirdness is real too, I have had reinstalling the same GPU drivers again solve issues way too many times.

Yeah i think my next step will be clean reinstall of gpu drivers and see if this help with my issues, hopefully yeah. Do you know how i can check if my custom mode is actually in use?

Warner306
4th April 2018, 15:24
I was able to use a perfect pixel clock after reinstalling my drivers. Previously, the best I could do was one frame drop every 19 minutes.

I ran DDU and reinstalled the drivers (which was scary because the GPU was not detected and I had to look at Windows Update to see the drivers were downloading).

My stock clock improved from one frame drop every three minutes to one frame drop every 12 minutes. And, as stated, custom modes would now accept more modes.

So I think a lot of problems with custom modes comes down to improper driver installation.