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

flossy_cake
15th January 2023, 10:48
it most likely just ignores the flag and changes the frame time from 33 to 42 and also signals if the frame is interlaced or not.

Yes, nevcairiel said here (https://forum.doom9.org/showthread.php?p=1977836#post1977836) that is decided by the renderer.

But, I still don't understand how that works since repeat fields are for instructing DVD players to convert soft telecine to hard telecine at runtime, and so there should be constant 3:2 combing artefacts if MadVR does that, but there isn't. So how is the playback still in sync then? Is repeat field the same as variable frame rate?

huhn
15th January 2023, 16:30
yes kind of. have very limited VFR.

we just don't live in a time anymore where you need to follow the spec because your end device are not fixed 59p and need 59i or 59p as input.

sorry it is really trivial if you ignore repeat flags in a soft telecine file you just end up with 23p you will not run async it's not that complicate.

flossy_cake
16th January 2023, 02:32
sorry it is really trivial if you ignore repeat flags in a soft telecine file you just end up with 23p you will not run async it's not that complicate.

For a 'clean' source, yes. But so many NTSC DVDs are 'dirty' and has all these edits done in the 29.97i domain, like the intro sequences, overlayed credits and orphan fields on scene changes. Sometimes the fps changes to 29.97 just for those sequences, other times it stays at 23.976 but those frames are combed - they are flagged as interlaced in MPC video renderer debug screen with "i" next to the frame counter. My sony DVD player will deinterlace only those frames, and leave the rest as progressive. In Avisynth the frame property _FieldBased changes from "progressive" to "tff/bff" just for those frames (this is only available with LwLibAvVideo source filter - DirectShowSource and FFMS2 don't set the _FieldBased property at all).

I tried to tolerate the combed frames for those sequences but they are bothersome to me. NVidia/AMD deint is "video mode" and lose half res on movement, so I didn't want that either. For now I'm using Avisynth TFM & TDecimate to soft telecine -> hard telecine -> IVTC & deint those interlaced frames. If I leave it as soft telecine and just deint only the _FieldBased=progressive frames, then I end up with repeat frame on orphaned field scene splices which is noticeable to me (this happens because the top field of that frame is used for deinterlacing, and that top field contains same image as previous IVTC'd frame).

The last of those 3 videos is tricky as it uses 3:3:2:3:2 cadence which is actually 22.976p after IVTC. For that I tried using Avisynth AssumeFPS(24000, 1001, true) to speed it up to 23.976 kind of like PAL speedup and then pitch correct the audio with TimeStretch(pitch=((23000.0/1001.0)/(24000.0/1001.0))*100) which worked for most of the episode, but then there would be certain sequences that change to some other weird cadence like 2:2:3:2 which become stuttery.

cjfournier
17th January 2023, 02:00
Having a weird issue I believe others have seen, but haven't yet found any comments pointing to solution: Currently using an AMD R9 390 w/ driver 22.6.1 (have tried several drivers, issue is the same across all) on an Optoma projector with active shutter glasses; When playing 3D in full screen (windowed mode is fine), the video starts fine but begins to "drift".

What's weird is that video looks normal through the right lens, but closing the right eye has the left side cycling through a set of static images. However, when something is brought to the foreground, like a properties window or progress bar, the video catches up and all looks normal. I believe I've toggled through just about every madVR option, but nothing seems to influence the behaviour. The same was described by another user over on the Jriver forum, but there was no mention of what card was used (guessing AMD, like me.)

Band-aid is to keep a properties window open, but shoved off to the lower corner.

Is this a known condition, and is there a proper fix?

Sunspark
17th January 2023, 04:46
I have never used this hardware, but I wonder what happens when you try other renderers like Microsoft Movies & TV app, VLC, etc.

thighhighs
17th January 2023, 05:53
Hello. Is the anti-bloating filter useful for SSIM1D?
I'm talking about "real" downscaling 2160 blu-ray -> 1080. I see opposite results when downsizing 2160 blu-ray and hi-res images (~2160 or more). For images 1D100 + AB25% works well: better sharpness compared to Bicubic150, and better overall look compared to SSIM1D no-AB. But for 2160 video Bicubic150 is starting to look better: it more sharp compared to SSIM1D100+25%AB. I don't understand what's going on anymore :confused:

ryrynz
17th January 2023, 07:40
Hello. Is the anti-bloating filter useful for SSIM1D?

Nothing to be confused about, you decide this for yourself based on what you see with your own eyes, don't get hung up on it.
Bicubic is a very popular downscaling algorithm and you can see why.

thighhighs
17th January 2023, 09:18
ryrynz
I would like to know what other users think about 1D. I think 25% AB sometimes helps for video 2160 -> 1080, but comes at a high price.
By the way, as far as I remember your posts, you really like SSIM2D. What combination of SSIM2D/AB are you using? This algorithm I also used and would like to know more opinions. Especially from those who actually use it.

flossy_cake
17th January 2023, 14:38
Take some comparison screenshots on the same frame then zoom in like 400% nearest neighbour to see what's going on with the pixels. I find the debloat has quite a softening effect when used with the sharpeners.

In an earlier post I was raving about how much I liked AdaptiveSharpen and LumaSharpen but after looking at lots of SD content over the past few months I'm now preferring the sharpen-crispen-thin-enhance combo (with hard upper limit of 1.0 for the last 2 otherwise they are too artefacty for my liking).

kopija
17th January 2023, 17:19
Greetings,
I intended to buy a Freesync monitor thinking that would remove need for smoothmotion/resolution autochange/custom resolution workarounds for eliminating judder.
But now I feel like I stepped into a minefield after doing some research.
First, Madshi saying MadVR does not support Freesync, then numerous posts saying it works.
It also supposedly works with major video players, (including Windows Movie Player!)
I really like Madvr black bar removal feature.
Is there any way to make Madvr work with Freesync?
I originally intended to buy 1080p 75Hz Freesync monitor, thinking that it would auto-switch to 72/60/50Hz and eliminate need for abovementioned workarounds.
Can Freesync do that? Are there any known downsides in such a scenario?
I know that 144Hz monitor running fixed 120Hz would be ideal for 24/30p, but it is out of my price range.
Thanks

thighhighs
17th January 2023, 18:08
Take some comparison screenshots on the same frame then zoom in like 400% nearest neighbour to see what's going on with the pixels.I'm not sure, I would like to know the opinion of others. For tests, I prefer to look from a normal distance. This is the only way I noticed how dramatically SSIM2D changes the overall look. Also, this is the only way I've noticed that 1D100 makes film grain more visible to my eyes. Even when the Bicubic150 and 2D are sharper, they don't have this problem, only the SSIM1D100 + no-AB has this problem.
I find the debloat has quite a softening effect when used with the sharpeners.The same goes for downscaling. AB can help or just reduce the sharpness...
A small example. SSIM2D100 + AB100 looks good in most cases and is much better than Bicubic150 or 1D. But in some cases it looks blurry.
https://imgsli.com/MTQ3OTU5
In this scene from The Hobbit, Bicubic150 is preferable to my eyes. That's why I don't like the combination of 2D with AB above 75%.
What do others think? What combination of SSIM1D/2D and AB are you using? Is any AB required for SSIM1D? What do you think?

Sunspark
17th January 2023, 22:05
kopija: You should see if your monitor can do 23.976/24/25 refresh rates. Mine is able to on the HDMI input. If it is able to, then you never need to use smooth motion, etc.

ryrynz
18th January 2023, 01:28
What do others think? What combination of SSIM1D/2D and AB are you using? Is any AB required for SSIM1D? What do you think?

I don't downscale any more as I have a 4K set, but 2D was quite superior to 1D. After my initial review of AB I decided I didn't find it useful, better imo to just reduce the sharpness of the display, but it all depends.

flossy_cake
18th January 2023, 02:08
1D100 makes film grain more visible to my eyes.

The "enhance detail" sharpener kind of enhances that too, along with texture details like wood grain will look more detailed. But the downside is it also enhances compression artefacts, so I don't use a value more than about 0.5 for compressy SD and about 1.0 for a very high quality DVD remux.

I'm quite happy with Lanczos for scaling and then using sharpeners if the source is soft. To me that makes more sense to do the sharpening separately as it gives me more control over the type of sharpening for the source (using profiles for convenience). Whereas I'm not sure how 1D100 might react with certain source types so I'd have to do a lot of trial and error.

I'm not really seeing much meaningful difference in your Hobbit comparison. Small differences, but nothing that would cause me to pick one over the other. Maybe I need to look under better lighting.


Greetings,
I intended to buy a Freesync monitor thinking that would remove need for smoothmotion/resolution autochange/custom resolution workarounds for eliminating judder.
But now I feel like I stepped into a minefield after doing some research.
First, Madshi saying MadVR does not support Freesync, then numerous posts saying it works.
It also supposedly works with major video players, (including Windows Movie Player!)
I really like Madvr black bar removal feature.
Is there any way to make Madvr work with Freesync?
I originally intended to buy 1080p 75Hz Freesync monitor, thinking that it would auto-switch to 72/60/50Hz and eliminate need for abovementioned workarounds.
Can Freesync do that? Are there any known downsides in such a scenario?
I know that 144Hz monitor running fixed 120Hz would be ideal for 24/30p, but it is out of my price range.
Thanks

I discussed that with Madshi some years ago and was begging him to officially support it when I first got my gsync monitor. As far as I'm aware there were no lines of code in MadVR written to facilitate gsync/freesync, but I was able to get it working in full screen mode on my Acer XB271HU (monitor's own gsync fps overlay in top right corner would match the content fps). But it had nothing to do with MadVR settings, it was entirely up to the DirectX version, being in the right full screen mode, and selecting the right NVidia Control Panel settings to make it work. I wouldn't rely on it working correctly or anything, but it probably would work in a certain configuration as long as the driver knows you are in full screen graphics mode or whatever the driver requires for freesync/gsync to become active.

huhn
18th January 2023, 06:17
I tried to tolerate the combed frames for those sequences but they are bothersome to me. NVidia/AMD deint is "video mode" and lose half res on movement, so I didn't want that either

but they are full res when working. that's why they are so good mixed content not perfect at all but good.Greetings,
I intended to buy a Freesync monitor thinking that would remove need for smoothmotion/resolution autochange/custom resolution workarounds for eliminating judder.
But now I feel like I stepped into a minefield after doing some research.
First, Madshi saying MadVR does not support Freesync, then numerous posts saying it works.
It also supposedly works with major video players, (including Windows Movie Player!)
I really like Madvr black bar removal feature.
Is there any way to make Madvr work with Freesync?
I originally intended to buy 1080p 75Hz Freesync monitor, thinking that it would auto-switch to 72/60/50Hz and eliminate need for abovementioned workarounds.
Can Freesync do that? Are there any known downsides in such a scenario?
I know that 144Hz monitor running fixed 120Hz would be ideal for 24/30p, but it is out of my price range.
Thanks
video is different from games.
you don't want to show the frame as fast as possible you want to show it for a very exact time .

is it possibile to make VRR work for video yes absolutely but that's unlikely to happen with madVR taking current development.
even HDMI has VFR for video now.

BTW.75 hz freesync devices are a pretty much fake usually having a range of 48-75 hz to make freesync work making it useless. low end devices are not rarely utterly broken too.
even freesync on LG OLED TVS is objectively broken and they are not cheap.

Sunspark
18th January 2023, 07:58
flossy, I have an mkv that is a bt.601/pal/50 fps from a dvd. It's poor quality and the original source is from decades ago.

Resolution is 720x576. I decided to set the display resolution to 720x576 and just let the monitor upscale the image to the screen dimensions which is the same process I follow for 1080p and it works well as madvr is only handling the chroma in that case.

However, what I am seeing here is that there still needs to be some image scaling in the x dimension because of the whole square vs rectangular pixel aspect ratio. If I select square, it will turn off madvr scaling but it will squish in the sides a little. If I leave it on default/4:3 it will look more normal, but then x dimension scaling comes into play..

What image upscaling algo are you using in the situation where you are only scaling in X and only for the pixel not a different resolution? Catmull-rom looks ok, and looking at the formula the b value is 0, so it's probably a good choice.. wonder if there's a better choice?

PS. Have you tried your bt.601/PAL DVDs in VLC? I'm looking at the mkv in VLC and the colours and gamma are different from how madvr is doing it--richer and not as washed out. Interesting.. twiddling about with the VLC renderer choices, selecting opengl or d3d9 makes it washed out, but selecting d3d11 or auto makes it darker and richer like how they should look.

kopija
18th January 2023, 08:01
BTW.75 hz freesync devices are a pretty much fake usually having a range of 48-75 hz to make freesync work making it useless. low end devices are not rarely utterly broken too.
even freesync on LG OLED TVS is objectively broken and they are not cheap.

So the best way to go about judder elimination issue would be to buy monitor with 48-75Hz range and use "switch to matching display mode" in madVR for 24/25/30fps?

Also, there is this new thing called VESA MediaSync (https://www.anandtech.com/show/17367/vesa-launches-variable-refresh-display-perf-standards-adaptivesync-mediasync/2). It claims its main purpose is elimination of 3:2 pulldown.
Gimmick or gamechanger?

nevcairiel
18th January 2023, 10:00
MediaSync is not a new feature, just a standard set of tests that displays can be certified against, which is far more lenient then the gaming tests.

That does not change the situation that video presentation APIs on Windows are not designed to work with what we need for video - exact presentation at a pre-determined time.

huhn
18th January 2023, 11:13
sleep time the render call and pray that it works :-)

So the best way to go about judder elimination issue would be to buy monitor with 48-75Hz range and use "switch to matching display mode" in madVR for 24/25/30fps?

Also, there is this new thing called VESA MediaSync (https://www.anandtech.com/show/17367/vesa-launches-variable-refresh-display-perf-standards-adaptivesync-mediasync/2). It claims its main purpose is elimination of 3:2 pulldown.
Gimmick or gamechanger?

LG OLED are freesync premium and gsync certified.
so you can get the claim on most devices.

flossy_cake
18th January 2023, 11:19
flossy, I have an mkv that is a bt.601/pal/50 fps from a dvd. It's poor quality and the original source is from decades ago.

Resolution is 720x576. I decided to set the display resolution to 720x576 and just let the monitor upscale the image to the screen dimensions which is the same process I follow for 1080p and it works well as madvr is only handling the chroma in that case.

However, what I am seeing here is that there still needs to be some image scaling in the x dimension because of the whole square vs rectangular pixel aspect ratio. If I select square, it will turn off madvr scaling but it will squish in the sides a little. If I leave it on default/4:3 it will look more normal, but then x dimension scaling comes into play..

What image upscaling algo are you using in the situation where you are only scaling in X and only for the pixel not a different resolution? Catmull-rom looks ok, and looking at the formula the b value is 0, so it's probably a good choice.. wonder if there's a better choice?

PS. Have you tried your bt.601/PAL DVDs in VLC? I'm looking at the mkv in VLC and the colours and gamma are different from how madvr is doing it--richer and not as washed out. Interesting.. twiddling about with the VLC renderer choices, selecting opengl or d3d9 makes it washed out, but selecting d3d11 or auto makes it darker and richer like how they should look.


Can you send the file so I can check it out? I need to see what MadVR chooses for aspect ratio, matrix, primaries & limited range on its debug screen. It will also say whether it's guessing or getting that info from upstream decoder.

If it's a straight MPEG2 remux of a 4:3 DVD then debug screen should say 4:3, BT.601, EBU/PAL, limited range. If it was transcoded by someone else, then whatever software they used could have fudged something, depends how they encoded it.

I reckon it might be slightly safer to output square pixels over HDMI as I know the math MadVR uses is good on that. SD signals over HDMI have been dodgy for me in the past. If the show is 4:3 then you don't want to be pillarboxing that in the middle of 576p as the active pixel area will be only 540 wide which is lower than the source. The chroma shouldn't have issues as long as the final output to TV is 4:4:4 and therefore avoiding multiple 4:2:0 -> 4:4:4 conversions.

I'm satisfied with Lanczos scaling for everything, except chroma I use bicubic old because it happens to smooth out chroma artefacts in any sources which have such issues. But in a double blind test on a normal quality source I can't really tell any diff. If I pause on a scene & Ctrl+Alt+Shift+F12 to Cb/Cr channel and flick between chroma algos on SD source then yeah I can really see a lot of diff.

Sunspark
18th January 2023, 22:19
The reason I have done the png screenshots like this is because for whatever reason, if I take a screenshot with vlc it has the gamma/colour different than when it's in the player so they couldn't be used. This is just to show the difference in the players during playback side-by-side.

Usually I use overlay mode, but switched to windowed so I could capture the image.

Average rendering time can be ignored, it's only high because it's paused.

https://dl.dropboxusercontent.com/s/binlyveqfd9grbh/1-intro.png

https://dl.dropboxusercontent.com/s/84z8rhwbemydp6m/2-light.png

https://dl.dropboxusercontent.com/s/fkna5v4bz3kijyc/3-dark.png

flossy_cake
19th January 2023, 03:50
Yes I see what you mean - VLC is rendering with a higher gamma it seems.

Check what settings you've got under MadVR's "devices > monitor > color & gamma"

I'm not familiar with VLC but maybe it assumes by default that monitor gamma is 2.2 and SDR content is mastered at 2.4, therefore applying a +0.2 gamma shift by default - are there any settings in VLC which relate to this?

If I take your madvr screenshot and darken gamma by 0.2 in photoshop it appears quite close to the VLC one (animated png):

https://i2.lensdump.com/i/RxO2yr.png

So basically if your monitor's gamma is 2.4 then VLC is too dark (it will be giving you about 2.6).

If your monitor's gamma is 2.2 then VLC is roughly correct, but only on the assumption that most content - especially of that era of television - would have been mastered on 2.4 monitor.

VLC's behaviour can be reproduced with madvr's color & gamma settings if you desire. Just keep in mind that room lighting affects perceived gamma due to "simultaneous contrast" effect - in a daylit room 2.2 can look similar to 2.4 in a dim surround.

x7007
19th January 2023, 04:52
remind me again how do we get Dolby Vision? which player and codec do I need?

Sunspark
19th January 2023, 05:18
Yes I see what you mean - VLC is rendering with a higher gamma it seems.

More than that.. the colours themselves are different.. if you look at the red and blue in the first row, I guess similar to the same issue you had with Family Guy, except it doesn't have the blue cast. Unless the different shade of red, etc. is due only to gamma? Might be it, more below.

Check what settings you've got under MadVR's "devices > monitor > color & gamma"

Everything is at 0, and enable gamma processing is unchecked.

I'm not familiar with VLC but maybe it assumes by default that monitor gamma is 2.2 and SDR content is mastered at 2.4, therefore applying a +0.2 gamma shift by default - are there any settings in VLC which relate to this?

No idea, but what I have observed is that there is a choice of different renderers in VLC.. d3d11, d3d9, opengl, etc. d3d9 & opengl renderers do the washed-out effect but the d3d11 one doesn't. Not sure why there is a difference in presentation with d3d11.

So basically if your monitor's gamma is 2.4 then VLC is too dark (it will be giving you about 2.6).

It's actually set to "Mac Gamma" in the monitor settings instead of PC because I found PC to be too dark. Probably would be better if it was calibrated, but Mac Gamma 1.8 (maybe up to 2.0?, not sure how accurate it is) looks better generally especially during the day.

If your monitor's gamma is 2.2 then VLC is roughly correct, but only on the assumption that most content - especially of that era of television - would have been mastered on 2.4 monitor.

Well, that is interesting to contemplate.. since you were talking about bt.601 etc. recently.. so the question then becomes, why doesn't madvr adjust? Unless it's simply just that public releases stopped before it could be addressed?

VLC's behaviour can be reproduced with madvr's color & gamma settings if you desire. Just keep in mind that room lighting affects perceived gamma due to "simultaneous contrast" effect - in a daylit room 2.2 can look similar to 2.4 in a dim surround.

I turned on enable gamma processing to see, and 2.6/pure power curve looks pretty similar, but could stand to be a bit darker still, 2.7 or more perhaps but it doesn't go past 2.6 as an option.

I know what you mean about adjusting room light affecting perception, I do that all the time to make the picture have more depth, but the thing is, adjusting the lighting isn't going to at-all fix the washed out gamma issue.. if the room has all the lights off, or turned up high, it's still going to be washed, I'm still going to see the macro-blocks on dark scenes, etc. So it actually does need to be right when it is processed.

I don't know what the issue is, if it's the file, if it's madvr, or if it's something else like vlc's d3d11 renderer being bugged and just happened to coincide with being correct for this file? But one thing I do know, this odd gamma issue with bt.601 doesn't happen really with bt.709. Just now I threw up a different file and compared them (with enable gamma turned off). On a scene that I paused, the madvr rendering had slightly better rendering in the darker ground shadow areas, but vlc's d3d11 had slightly better rendering in the highlight areas (clouds), but overall, it wasn't doing the great difference that it was with the bt.601 file.

MPCVR renderer does the same thing with the bt.601/pal file like madvr, washed out gamma.

PS. I haven't watched it yet, but the images were from a 1978 British series by Terry Nation called Blake's 7. "Blake's 7's narrative concerns the exploits of political dissident Roj Blake, who leads a small group of rebels against the forces of the totalitarian Terran Federation that rules the Earth and many colonised planets. The Federation uses mass surveillance, brainwashing and drug pacification to control its citizens."

flossy_cake
19th January 2023, 05:51
More than that.. the colours themselves are different.. if you look at the red and blue in the first row, I guess similar to the same issue you had with Family Guy, except it doesn't have the blue cast. Unless the different shade of red, etc. is due only to gamma? Might be it, more below.

Yep, applying gamma exponent to RGB channels changes the hue and saturation as well. Here's madvr with +0.2 gamma on RGB channels vs VLC:

https://i1.lensdump.com/i/RxH5z7.png

The amount of red in the cyan section is still quite different though - RGB (79,155,181) vs (73,154,182).

The red sections behind it are identical though. Maybe something to do with gamut conversion...



Everything is at 0, and enable gamma processing is unchecked.

So you haven't told madvr that your monitor's gamut is BT.709 ? If not, then gamut will be wrong (assuming your monitor is BT.709). VLC may be assuming monitor is 709 gamut by default.

Sunspark
19th January 2023, 06:43
So you haven't told madvr that your monitor's gamut is BT.709 ? If not, then gamut will be wrong (assuming your monitor is BT.709). VLC may be assuming 709 gamut by default.

I was working on the assumption that if it was on "disable calibration controls" it's supposed to assume BT.709/2.2 and do everything from there in terms of making changes regarding bt.601 content, etc. Played around with it, if I tell it already calibrated to BT.709 the picture doesn't change whether I set it to 1.8 or 2.6 and seems to be the case still whether on or off.

However, turning on only enable gamma processing changes things.

So if I tell it it's calibrated to bt.709/1.8 and set 2.40/pure in enable processing, it looks basically the same between the two players actually!

So, is my understanding correct, that one needs to manually enter in the processing # based on the content? To use 2.4 for bt.601 and to change that to any number between 1.8 and 2.2 for bt.709 content? It would have been nice if it was automatic just based on the "calibrated to" setting..

thighhighs
19th January 2023, 07:01
I would like to know what other users think about 1D. I think 25% AB sometimes helps for video 2160 -> 1080After taking a closer look at SSIM1D100 + AB25% vs SSIM1D75 no-AB (video source), I changed my mind. AB blurs too much. So it's better to use SSIM1D without any AB.

flossy_cake
19th January 2023, 09:30
I was working on the assumption that if it was on "disable calibration controls" it's supposed to assume BT.709/2.2 and do everything from there in terms of making changes regarding bt.601 content, etc. Played around with it, if I tell it already calibrated to BT.709 the picture doesn't change whether I set it to 1.8 or 2.6 and seems to be the case still whether on or off.

However, turning on only enable gamma processing changes things.

So if I tell it it's calibrated to bt.709/1.8 and set 2.40/pure in enable processing, it looks basically the same between the two players actually!

So, is my understanding correct, that one needs to manually enter in the processing # based on the content? To use 2.4 for bt.601 and to change that to any number between 1.8 and 2.2 for bt.709 content? It would have been nice if it was automatic just based on the "calibrated to" setting..

As far as I can tell, in relation to SDR content only, if you don't tell MadVR anything about your monitor in the "this display is already calibrated" section, MadVR won't assume anything about your monitor, and therefore won't modify the colour at all to suit your monitor, and you'll get incorrect colour if the video content uses a different gamut than your monitor's gamut, which is the case when watching SD 601 gamut content on a typical HD 709 gamut monitor or TV. That's what the Family Guy screenshots here (https://forum.doom9.org/showthread.php?p=1980738#post1980738) are showing.

Also in the "this display is already calibrated" section, there is "this display is calibrated to the following transfer function / gamma". This appears to be used by MadVR as part of its gamut conversion formula only. For SDR content it barely affects the midtones (as you have noticed). It's not a gamma control, I think it's just one of the coefficients used in the gamut conversion formula, as far as I can tell.

Separately to this in the other "color & gamma" section is the "desired display gamma / transfer function". This is a real gamma control and does change the entire gamma curve to the value you choose. To do such a conversion requires knowing what your monitor gamma is to begin with. If you haven't told MadVR what your monitor gamma is in the previous section (which happens if you select "disable calibration controls for this display") it assumes your monitor is 2.2. So if you chose 2.4 it would do a +0.2 adjustment. Otherwise, if for example you already told MadVR your monitor is 2.4 in the other section, selecting 2.4 results in no change in colour.

We shouldn't need per-content settings since MadVR automatically gets the source gamut from upstream, and even if upstream doesn't have it, MadVR guesses correctly based on things like resolution and framerate of the video ("best guess" on debug screen) and I've never seen it get it wrong.

So if your monitor has 2.2 gamma and 709 gamut, and you want to get accurate gamut conversion for SD 601 gamut content, and additionally emulate what VLC appears to be doing:

1. calibration > this display is already calibrated > BT.709 & pure power curve 2.2 (informing MadVR your monitor characteristics)
2. color & gamma > enable gamma processing > pure power curve 2.4 (emulating VLC behaviour of assuming SDR content was mastered at 2.4 gamma by applying a +0.2 gamma shift)

The downside to 2 is that it will cause MadVR's HDR->SDR conversion to be 0.2 gamma darker than it should be. To avoid this I only set 1 and not 2, and calibrate my monitor to 2.4 for night and 2.2 for day in the video card gamma table which is system-wide.

After taking a closer look at SSIM1D100 + AB25% vs SSIM1D75 no-AB (video source), I changed my mind. AB blurs too much.

Yeah that's why I stopped using it as well.

Anti ringing seems ok and has a subtle effect when used in conjunction with sharpening filters, but doesn't seem to be effective at removing ringing in the source, eg. S01E01 of The Sopranos Bluray has some ringing that I wanted to get rid of and it couldn't help there at all.

Sunspark
19th January 2023, 10:35
Anti ringing seems ok and has a subtle effect when used in conjunction with sharpening filters, but doesn't seem to be effective at removing ringing in the source, eg. S01E01 of The Sopranos Bluray has some ringing that I wanted to get rid of and it couldn't help there at all.

I vaguely remember madshi saying that the anti-ringing only applies to new ringing created by scaling done by the algorithm and not the original material itself. Makes sense to me, probably easier to write a calculation to compare before and after and see if it made new ringing on edges than to only have 1 image and decide whether it has elements that need to be removed.

Asmodian
19th January 2023, 15:04
probably easier to write a calculation to compare before and after and see if it made new ringing on edges than to only have 1 image and decide whether it has elements that need to be removed.

I don't think it looks for ringing at all, it always runs another algorithm after scaling which makes aliasing a little worse while also making ringing better. It is based on the known amount of ringing added by the scaling algorithm, not an analysis of the image after scaling.

thighhighs
21st January 2023, 17:57
Still testing SSIM algorithms on my videos. This time SSIM2D. I usually use SSIM2D100 + AB100%, somethimes it looks too soft. 75% AB makes it sharper, but when I started using this combination, I noticed that it was actually worse. 2D100 + AB75% looks unnatural on the edges. I made an example, but it's hard to see in the pictures. I hope you can see if you pay attention to the tower of this building. https://imgsli.com/MTQ5MTA5/0/1
Anyway, the only combination that works well for me is SSIM2D100 + AB100%. With other combinations, the result is a strange look.
So, I can't say that SSIM2D is the king.

flossy_cake
22nd January 2023, 06:00
I generally don't feel a need to sharpen native HD sources, but maybe that's because of my small screen size & long viewing distance (51" @ 3.3m).

thighhighs
22nd January 2023, 19:16
Personally, I prefer sharp algorithms for downscaling. Both SSIM or Bicubic150. Other algorithms are far behind. Lanczos is also sharp and I liked it before.

ryrynz
22nd January 2023, 21:06
So, I can't say that SSIM2D is the king.

I'll say it then. It slaps 1D [emoji106]

thighhighs
23rd January 2023, 10:25
Ok :D
I want to say more about the 2D + AB vs no AB. 2D makes a noticeable fatness, I don't like it. It looks like a sharpening filter. So the AB filter is useful, i think.
To back up my words, I made an example. I wanted an example where you can not only notice the difference, but where you can see that the image looks bad. I think this scene fits. It can also be seen that as a result, 2D100AB100 is better than 1D here -> https://slow.pics/c/g7oulciR
edit: Conclusion. As a result of my testing, I decided never to use AB for 1D. And 2D100 + AB100 is not a bad idea, I did not find a better combination.

huhn
23rd January 2023, 14:01
sorry but where do you even look at this source is already super soft it.

no matter how i look at it the difference is superficial in this image. downscale something sharp where ssim can even try to preserve something.

flossy_cake
23rd January 2023, 15:40
It can also be seen that as a result, 2D100AB100 is better than 1D here -> https://slow.pics/c/g7oulciR

I'm really struggling to see a difference... is this some kind of placebo test you are running on us or something :devil:

thighhighs
23rd January 2023, 16:32
Cars, man between cars, rooftops, T. rex, "cartoon" tree on the left, bottom of the image... Is your screen 2160? Or 1080? I believed that it should be noticeable.

I have no idea for another comparison.
In my example, starting at 2D50, the image doesn't look right at all to me. 75 is actually slightly better, but sharper overall. That's why just lowering the strength won't help much.

huhn
What do you think about the SSIM2D? I remember your posts about Biсubiс150, but not about SSIM2D.

ryrynz
23rd January 2023, 20:59
Personal use case.. If you sharpen a thing that already has a lack of detail on edges you can get some obvious sharpening in places. In saying that, I see no oversharpening at all on 2D without AB. Just choose what looks good to you and call it a day.

thighhighs
24th January 2023, 01:20
Just choose what looks good to you and call it a day.Yes, I have decided everything for myself. I just wanted to back up what I said with an example.
Personal use case.. If you sharpen a thing that already has a lack of detail on edges you can get some obvious sharpening in places. In saying that, I see no oversharpening at all on 2D without AB.This is important. Because if there is no negative effect, AB will not look useful (why reduce the sharpness?). I guess a lot of people like 2D as a sharpening filter. Instead, I would like an improvement over 1D, no more. Combining with AB is the best way.

Mb these will be better... I compare only 100, others will only create confusion
Here 2DAB100 has an advantage over 1D. 2D100 is oversharp -> https://slow.pics/c/Wh67f9nQ
Here AB does not allow swelling. Close to 1D but you can find different pixels -> https://imgsli.com/MTQ5ODIw/0/1

flossy_cake
24th January 2023, 03:32
Cars, man between cars, rooftops, T. rex, "cartoon" tree on the left, bottom of the image... Is your screen 2160? Or 1080? I believed that it should be noticeable.

The resolution of my screen shouldn't really matter (2560x1440) as long as I'm at 1:1 pixel mapping. I've tried moving closer/further from the screen, still can't see any appreciable difference.

I *can* just see a small difference in the white hair on your next screenshot. I would call that a JND (just noticeable difference) but only in A-B comparison - no way I'd pick it in a double blind or if the actor's head is moving.

thighhighs
24th January 2023, 10:23
I *can* just see a small difference in the white hair on your next screenshot. I would call that a JND (just noticeable difference) but only in A-B comparison - no way I'd pick it in a double blind or if the actor's head is moving.You didn't say anything about the picture with the wizard in the forest. Take a look at it if you're interested. https://slow.pics/c/zGHO2QKB
The same effect can be seen on the skin (nose, for example).

flossy_cake
24th January 2023, 13:28
You didn't say anything about the picture with the wizard in the forest. Take a look at it if you're interested. https://slow.pics/c/zGHO2QKB


Ok, I think I know what's going on now. My PC monitor has very little or no sharpening of its own, so the difference is way smaller on PC monitor. Whereas on my TV the difference is more noticeable, I'm guessing because my TV has its own sharpening (I have it set conservatively though - 20/100 on Samsung TV video processor scale, which is the default for "Movie" picture mode).

Sunspark
24th January 2023, 21:45
This forest picture is ridiculous. Even at 400% magnification, the only change I noticed was the black on the rim around the wizard's hat changing in thickness which could just simply be a rendering artifact and maybe, an incredibly subtle fraction of a fraction change in texture of stuff. The fact that I say maybe is how indistinguishable it is.

Don't shave hairs this finely. The power consumption isn't worth it at all especially if you can't see any changes.

ryrynz
24th January 2023, 23:52
I don't downscale any more as I have a 4K set, but 2D was quite superior to 1D. After my initial review of AB I decided I didn't find it useful, better imo to just reduce the sharpness of the display, but it all depends.That's exactly why I wrote the above. I was going to say it again but I edited it out of the post as I was repeating myself. Your display sharpness should be balanced with any other image processing you're doing.

thighhighs
25th January 2023, 02:18
This forest picture is ridiculous. Even at 400% magnification, the only change I noticed was the black on the rim around the wizard's hat changing in thickness which could just simply be a rendering artifact and maybe, an incredibly subtle fraction of a fraction change in texture of stuff. The fact that I say maybe is how indistinguishable it is.

Don't shave hairs this finely. The power consumption isn't worth it at all especially if you can't see any changes.Just to clarify: and nothing else at all? The fact that there are 3 different algorithms does not bother you?
I don't downscale any more as I have a 4K set, but 2D was quite superior to 1D. After my initial review of AB I decided I didn't find it useful, better imo to just reduce the sharpness of the display, but it all depends.AB changes the result of the algorithm.
For the screen I using the "source as is" setting. But it's not 0. If it does anything, I don't expect much. To "fix" the 2D100, I need to gimped the screen so that I can't see anything at all :D And even then I could see AB/no AB.
Why configure the screen based to SSIM2D at all? If the special patterns are ok, everything is fine.

ryrynz
25th January 2023, 05:28
Stick with whatever works for you, your content and display, that's all that matters.. The differences are close to insignificant.

Magik Mark
25th January 2023, 07:57
Hi!

Would u consider rtx 3000 series with or without LHR? Does it make any difference?

thighhighs
25th January 2023, 12:20
Stick with whatever works for you, your content and display, that's all that matters.. The differences are close to insignificant.But that's not what you meant before. You said (again) the SSIM2D can't look weird, it's just that my screen isn't set up properly or something.
I understand that you liked it and everything looked great for you. So AB doesn't make sense. I can accept it.
This is the only algorithm in madVR with this level of sharpness. This is insane changes. But if you don't see sharpening artifacts, you don't think the result looks weird. There is something similar with NGU Sharp. As you know NGU Sharp has an cartoon-look problem. Does it has sharpening artifacts or does it just look weird? Is this really a problem? Do all users notice this when they watch their videos? Or does it just look great to them? That's all I wanted to say.

flossy_cake
25th January 2023, 15:15
What about MadVR's suite of sharpening enhancements in processing -> image enhancements? Do you not like it? I find it gives me more control - I can choose the exact type and the amount of sharpening I want. Has saved many DVDs from looking soft and blurry.