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

Zed86
24th August 2011, 04:27
You can just overwrite the files. No uninstall/install needed in most cases. If you want to be sure you can click on uninstall before overwriting the files, and then on install after overwriting the files. In any case, no need to delete the old files.


No tearing. Better performance. More stability/reliability. If you have a perfect experience in windowed mode then of course it's worth a thought disabling the exclusive mode, because it comes with some user interface disadvantages.


madVR does not show an OSD when seeking, unless the media player asks for that. You may have to talk to the Potplayer developer about this.





Thanks for the responses madshi.

As for the OSD, I might not have been clear about the small grey OSD that pops up on top left corner of the screen while jumping a minute or 5 mins, I don't want it to be disabled completely,
I want to use Potplayer's own OSD time-stamp while jumping or seeking.. Is there a way to do this? why does it only show up in full screen and not windowed?!

- Also, I just noticed yesterday while trying to capture a frame I would get a blurred/corrupt image. This didn't happen when using EVR, so I'm guessing I need to configure something in madVR?

Thanks for your time, and keep it up.

emueyes
24th August 2011, 05:17
Hi all

Sorry to have such a newby question, but 473 pages is too much to go through and the question too generic to search for

running install.bat (as admin) pops up the usual dialog, and tells me the files haven't been copied anywhere

but then madVR shows up in MPC-HC greyed out

am using
Win7 x64 (no SP)
GTS250 card with 275.33 drivers
MPC-HC 1.5.3.3677 (this might be the problem, I suspect)

Thanks for any help, and I'll keep looking. I actually just discovered the LAV CUVID and ppls there reckon madVR is the best renderer to be using

namaiki
24th August 2011, 05:23
Try run install.bat not as admin.

emueyes
24th August 2011, 07:40
run install.bat as myself (admin privilege account) the same thing happens, madVR shows up greyed out in MPCs renderer list

running as a standard user tells me that registering the directshow filters failed :(

Zed86
24th August 2011, 07:45
run install.bat as myself (admin privilege account) the same thing happens, madVR shows up greyed out in MPCs renderer list

running as a standard user tells me that registering the directshow filters failed :(

Just login as admin, then LEFT click on intall.bat. without right-click then run as admin. Just one left click will do, and it's normal for it to say that it did't copy any files because it doesn't need to, it says that so you won't move or delete that folder, always keep it in the same path/directory. Try again

namaiki
24th August 2011, 07:47
emueyes, are you using MPC-HC 32-bit?

madshi
24th August 2011, 08:25
I've recently noticed the same thing.

I am a Nvidia user with a refresh rate of 60hz playing 23.976fps content.
Try "use separate device for presentation". That often helps. If not, try some of the "not recommended" exclusive mode tweak settings.

LAV Videos current RGB converter will not modify levels (at least its not supposed to, it might be a bug if it is). If input is limited-range YUV, its supposed to output limited range RGB.

The new RGB converter i'm planning will offer an option for you to force TV or PC levels, but default to the same logic as its now, not doing any level conversions (which i think is the best way to interface with madVR)
Sounds good to me. Once you implement this, could you please also tell madVR which levels you convert to (DXVA_ExtendedFormat)? For that you'd only have to set the NominalRange part of the structure. You could leave the other fields empty, until you add full support for all those values.

So, I watched the GPU clock with GPU-Z and it seemed constant at 796 MHz (don't know why it isn't 800 as shown in catalyst though...) all the time. So I guess it isn't downthrottling.

Could the GPU memory size be a problem? Or what else?

Its also suspicious to me that the GPU usage graph (in process explorer) never goes above ~15% if the GPU would lack the power wouldn't it be much higher?
Have you tried reinstalling the GPU drivers? I'm not sure where the problem is coming from. Don't know what else to suggest.

Why is there (can be) tearing in windowed mode, compared to exclusive? Also does exclusive means what it implies, that other programs can't use the GPU at all?
In windowed mode the OS copies the rendered frames to screen. If the copy is done while the VSync is in the middle of the screen, you'll get tearing. In exclusive mode the rendered frames are not copied to screen, they're swapped via VSync interrupt. So tearing can't occur.

In exclusive mode other programs may eventually still be able to use the GPU, but they can't show anything visible.

You say 400000 means 25p or 50i. Is madVR able to make the difference between progressive and interlaced content?
madVR shows "frames per second" not "fields per second". The current madVR version can't do deinterlacing, so it expects progressive content from you.

Told you how. The sample is limited range. When ffdshow or LAVV output converted full range RGB madVR still thinks it is limited range, and it double expands. Other videos work fine.
Ok, I can reproduce the problem. Looks like a simple bug which should be easy to fix (without breaking anything else) for ffdshow. LAV Video is a different topic. Accordingly to nevcairiel's posts LAV Video does currently not do what it's supposed to do, so I consider that a bug in LAV Video. This problem should be fixed in a future LAV Video version.

Yep, that is a different issue, should have separated it. Want a fraps sample?
Yes, please. Thanks.

If you know that, and that's the key here, then offer option(s) so we can bypass the limitations.
There already is an option, see my previous post.

RGB is like the holy grail, it bypasses all the postprocessing and crap drivers do
It does not, unfortunately. Even if you feed RGB to EVR/VMR/Haali, the GPU might still screw up the levels. E.g. set ATI to "RGB Limited" and the GPU will stretch 0-255 to 16-235 behind your back. Or use NVidia with an "SD" or "HD" standard resolution, and you have the same problem. With NVidia you have to create a custom resolution to work around the problem.

Besides, we here are not average users. I can't believe you offer options to configure a lot of uber minor things and you are so frontal against something so simple as levels, which are one of the most common problems out there.
I want to make things easy for the average user. Which means that ultimately madVR will get a display setup wizard which will guide the user through setup of every newly detected display (PC levels vs. video levels etc). Once that is done, madVR will make sure that the required levels are actually output to the display. This can only work if madVR can automatically detect what levels upstream filters are sending to madVR. I believe I should be able to make the autodetection work in 99.9% of all cases. Without autodetection, the user would have to manually tweak all the decoder filters etc to make sure that RGB is converted to the right levels. Furthermore, if the user moves the media player from his computer type LCD monitor to the secondary projector, suddenly he'd have to switch RGB levels, which I consider a usability catastrophe.

I had some issue reading very high bitrate files in MPC-HC. I had several frame drops. I tried different filters and could not make it work.
Which queue is at which state in the madVR OSD (Ctrl+J) when you get the frame drops?

Moreover, for all files, I get lots of frame drops when I go back to windowed mode. Moving the windows fixes the issue. Any clue how to fix this in the settings. Maybe different flushing strategy?
Same question as above.

As for the OSD, I might not have been clear about the small grey OSD that pops up on top left corner of the screen while jumping a minute or 5 mins, I don't want it to be disabled completely,
I want to use Potplayer's own OSD time-stamp while jumping or seeking.. Is there a way to do this?
Basically you've repeated your question. So I'll repeat my answer: ;)

madVR does not show an OSD when seeking, unless the media player asks for that. You may have to talk to the Potplayer developer about this.

Also, I just noticed yesterday while trying to capture a frame I would get a blurred/corrupt image. This didn't happen when using EVR, so I'm guessing I need to configure something in madVR?
Can you reproduce that? If so, please upload a screenshot with madVR vs. EVR.

Zed86
24th August 2011, 08:42
Basically you've repeated your question. So I'll repeat my answer: ;)

madVR does not show an OSD when seeking, unless the media player asks for that. You may have to talk to the Potplayer developer about this.


Can you reproduce that? If so, please upload a screenshot with madVR vs. EVR.

Here ya go.

http://img279.imagevenue.com/loc66/th_170765191_Monk.S05E07.avi_000304.142_122_66lo.jpg (http://img279.imagevenue.com/img.php?image=170765191_Monk.S05E07.avi_000304.142_122_66lo.jpg) http://img232.imagevenue.com/loc125/th_170767438_Monk.S05E07.avi_000304.309_122_125lo.jpg (http://img232.imagevenue.com/img.php?image=170767438_Monk.S05E07.avi_000304.309_122_125lo.jpg)



Oh and as for the OSD, last time ;),
I want it to display it as EVR or Haali or even VMR9,
(the same font, color, size..) madVR is the only one to show it's own OSD and I wanna know, if possible, how to revert to the original blue Potplayer OSD. I know I can let Potplayer not show it, but I need it, just not the black one lol

Thanks.

madshi
24th August 2011, 08:49
Here ya go.
Weird. Do you actually see the corrupted image on screen in PotPlayer? Or does the corruption only occur if you try to capture? How do you capture? Using PotPlayer's internal capture functionality? Or pressing Ctrl+Print? Or some other way?

Oh and as for the OSD, last time ;),
I want it to display it as EVR or Haali or even VMR9,
(the same font, color, size..) madVR is the only one to show it's own OSD and I wanna know, if possible, how to revert to the original blue Potplayer OSD. I know I can let Potplayer not show it, but I need it, just not the black one lol
I don't have any control over what kind of OSD PotPlayer shows. I don't show my own OSD when a seek is done. But PotPlayer might invoke madVR's OSD, there's an API for that, I don't know if PotPlayer is doing that. You will have to talk to the PotPlayer developer. There's nothing I can do here.

emueyes
24th August 2011, 08:51
emueyes, are you using MPC-HC 32-bit?

I'm running 64bit MPC-HC.

Also tried just running the batch file, with the same result.


Is madVR 32bit only? I guess I should have looked first before making a silly mistake like that. The Arcsoft drives were also 32bit, but gave a slightly different message.

namaiki
24th August 2011, 08:54
madVR is 32-bit only.

Zed86
24th August 2011, 08:59
Weird. Do you actually see the corrupted image on screen in PotPlayer? Or does the corruption only occur if you try to capture? How do you capture? Using PotPlayer's internal capture functionality? Or pressing Ctrl+Print? Or some other way?


I don't have any control over what kind of OSD PotPlayer shows. I don't show my own OSD when a seek is done. But PotPlayer might invoke madVR's OSD, there's an API for that, I don't know if PotPlayer is doing that. You will have to talk to the PotPlayer developer. There's nothing I can do here.

- No, it only looks like that in the output folder after capture or when a I open the photo file of course. The frame looks fine within Potplayer.
I use the Potplayer internal frame capture.


- But PotPlayer might invoke madVR's OSD, there's an API for that, I don't know if PotPlayer is doing that.

Ok that makes sense, I assume that Potplayer is invoking/forcing madVR to produce an OSD.
Btw, excuse my ignorance, but what do you mean by API?

Thanks..

jimwhite
24th August 2011, 09:07
Btw, excuse my ignorance, but what do you mean by API?

Thanks..

Google is your friend...

madshi
24th August 2011, 09:51
- No, it only looks like that in the output folder after capture or when a I open the photo file of course. The frame looks fine within Potplayer.
I use the Potplayer internal frame capture.
Then it's most probably a bug in PotPlayer.

Zed86
24th August 2011, 10:37
Then it's most probably a bug in PotPlayer.


I tried to capture a frame from different video files using MPC-HC, once with EVR CP and once with madVR. EVR would produce a jpeg file tha's saved on my desktop,
however, madVR would not, and instead I would get this error message from MPC-HC "GetDIB failed, hr = 80004005"
and that's it I click ok and continue playing the file! Why is that you think?

namaiki
24th August 2011, 10:47
I tried to capture a frame from different video files using MPC-HC, once with EVR CP and once with madVR. EVR would produce a jpeg file tha's saved on my desktop,
however, madVR would not, and instead I would get this error message from MPC-HC "GetDIB failed, hr = 80004005"
and that's it I click ok and continue playing the file! Why is that you think?

I believe it's because MPC-HC hasn't implemented "Save image" function with madVR yet.

madshi
24th August 2011, 12:36
madVR does not support screen capture yet. You can work around that by pressing the "Print" key in windowed mode. I've no idea what PotPlayer does to make screen capture work with madVR, and I don't really care much, because (as I said) it's not supported by madVR yet.

mzso
24th August 2011, 13:33
Have you tried reinstalling the GPU drivers? I'm not sure where the problem is coming from. Don't know what else to suggest.

OK then. Thanks! Actually I just updated the drivers. Anyway I'll just keep experimenting.

In windowed mode the OS copies the rendered frames to screen. If the copy is done while the VSync is in the middle of the screen, you'll get tearing. In exclusive mode the rendered frames are not copied to screen, they're swapped via VSync interrupt. So tearing can't occur.

Thanks for the info!

STaRGaZeR
24th August 2011, 13:46
@madshi: It seems it's a lost cause. Nevermind, as I've found the combination of EVR+Reclock to be as good as madVR in the vsync department, doesn't have any RGB issues, cuts the CPU consumption when playing in half, down to 0% when paused, and makes my CPU consume 10W less (20W for 1080p60 content) for the exact same visual quality. Sorry if I bothered you with all this RGB stuff.

cyberbeing
24th August 2011, 16:55
Thinking about what STaRGaZeR has been saying, maybe it wouldn't be a bad idea to release a separate stripped down version of madVR for people who just want a basic renderer or have crappy GPUs.

Remove the settings dialog completely, remove 3dlut/gamma/gamut correction, modify required shader operations for speed, remove built-in decoders, remove refresh-rate changer, have three resizer presets Fast (bilinear) + Soft (softcubic) + Normal (bicubic), assume RGB is always fullrange while auto-detecting YUV range, always output PC->PC and TV->PC levels by default, have selected resizer and overrides toggled by keyboard shortcuts, and call it madVR_lite.

As much as this goes against your goal for madVR, I could see how madVR not being a drop-in replacement for EVR/VMR9 or Haali could turn people off from using it. Some people don't care about color accuracy or customization, and just want a low system-requirements renderer which is reliable and works as expected without user intervention. Since madVR_lite and madVR would target two different subsets of users, I don't see why they couldn't co-exist.

Of course, you could also just modify the entire madVR shader chain so the 3DLUT does 0-255 -> 0-255 instead of 16-235 -> 16-235 to overcome all these input levels limitations. That way you could safely default to RGB being pc-range as is normal. Is there some merit in processing the video in 16-235 vs converting to 0-255 and then processing? Since you see no problem of converting 0-255 to 16-235 for processing and then back to 0-255, I assume not.

madshi
24th August 2011, 17:20
maybe it wouldn't be a bad idea to release a separate stripped down version of madVR for people who just want a basic renderer or have crappy GPUs.
No such thing coming. Not anytime soon, probably not ever.

Of course, you could also just modify the entire madVR shader chain so the 3DLUT does 0-255 -> 0-255 instead of 16-235 -> 16-235 to overcome all these input levels limitations. That way you could safely default to RGB being pc-range as is normal.
"Input levels limitations"? Not sure what you mean with that. And I don't consider RGB being PC range as "normal" in the video playback world. It's just one of two options. If you e.g. switch CoreAVC to RGB output, it will output 16-235 as default, for limited range h264 content. Also you can configure ffdshow to output either 0-255 or 16-235. nevcairiel has similar plans for LAV Video. And he will output 16-235 by default, too, for RGB. So if I changed madVR to always consider RGB 0-255, that would be a very very bad solution. That's also not what STaRGaZeR wants. He wants madVR to passthrough RGB untouched, without *any* processing at all. So basically he wants ffdshow to decide whether the display needs video or PC levels, rendering the madVR display management superfluous.

Is there some merit in processing the video in 16-235 vs converting to 0-255 and then processing?
Yes, processing in 0-255 means BTB and WTW are lost.

Zed86
24th August 2011, 17:27
madVR does not support screen capture yet. You can work around that by pressing the "Print" key in windowed mode. I've no idea what PotPlayer does to make screen capture work with madVR, and I don't really care much, because (as I said) it's not supported by madVR yet.

OK so why did you say it's a bug in Potplayer?
since it's not supported anyway even in other players?

madshi
24th August 2011, 17:34
It was PotPlayer who created that corrupted image, was it not? So who's fault can it be, if not PotPlayer's? There's no way for PotPlayer to make madVR do a screen capture, so it can't be madVR's fault.

STaRGaZeR
24th August 2011, 18:27
If you e.g. switch CoreAVC to RGB output, it will output 16-235 as default, for limited range h264 content.

That's incorrect. This (http://img59.imageshack.us/img59/1162/core32evr.png) is how CoreAVC 2.5.5 outputting RGB32 with default settings looks. Compare it to the shots in post #9451 (http://forum.doom9.org/showpost.php?p=1521326&postcount=9451). It outputs full range RGB for both limited range and full range H.264. And of course it gets double expanded in madVR.

nevcairiel
24th August 2011, 18:40
CoreAVCs RGB converter does not honor its own settings anyway.. The output-levels option only has an effect for YUV output, RGB is always full-range.

BetaBoy
24th August 2011, 19:26
STaRGaZeR... nevcairiel... I've asked the guys to look into it.

Zed86
24th August 2011, 19:27
It was PotPlayer who created that corrupted image, was it not? So who's fault can it be, if not PotPlayer's? There's no way for PotPlayer to make madVR do a screen capture, so it can't be madVR's fault.


Would any other player be able to do a frame capture while using madVR? if yes please let me know as I might use it.
But if not then it is a "missing" function of madVR, which pretty much means it's madVR fault to begin with.
Now if it is able to produce a frame capture with any other player, then yeah it would be Potplayer's fault.

madshi
24th August 2011, 19:42
But if not then it is a "missing" function of madVR, which pretty much means it's madVR fault to begin with.
Bah. If you require a feature complete product then go away and come back once madVR has reached v1.0. It has been discussed multiple times in this thread that madVR does not yet support screen capture. There's a reason why the madVR version number still starts with a "0".

That's incorrect. It outputs full range RGB for both limited range and full range H.264. And of course it gets double expanded in madVR.
Ooops, it seems I only tested the CoreAVC output level switch with YUV output, not with RGB output. Anyway, what happens if the user has a display which needs TV levels when he's using CoreAVC with RGB output for decoding? He'll get incorrect levels with all renderers, not just with madVR.

IMHO decoders should tell which levels they're outputting. Microsoft has introduced the DXVA_ExtendedFormat information structure exactly for this purpose, and madVR supports it. Unfortunately decoders don't seem to fill this structure yet. Hopefully that will change in the near future. At least nevcairiel has it on his to do list.

STaRGaZeR... nevcairiel... I've asked the guys to look into it... but iirc it has already been addressed in CoreAVC 3.0.
Thanks for the heads up!! :)

BetaBoy
24th August 2011, 19:52
Thx for the DXVA info.

Zed86
24th August 2011, 19:54
Bah. If you require a feature complete product then go away and come back once madVR has reached v1.0. It has been discussed multiple times in this thread that madVR does not yet support screen capture. There's a reason why the madVR version number still starts with a "0".

I know it isn't complete yet. But you could've just said that madVR does not yet support screen capture instead of saying that it was a bug in Potplayer, (how is that a bug exactly if there's no capture at the first place),
which was confusing and made me go and download MPC-HC thinking that it would solve the issue. Anyway, good luck with your work and will be waiting for v1.0.

mzso
24th August 2011, 19:56
I know it isn't complete yet. But you could've just said that madVR does not yet support screen capture instead of saying that it was a bug in Potplayer, (how is that a bug exactly if there's no capture at the first place),
which was confusing and made me go and download MPC-HC thinking that it would solve the issue. Anyway, good luck with your work and will be waiting for v1.0.

But it is a bug in potplayer, because it produces a corrupted image.

pankov
24th August 2011, 19:59
Zed86,
the developers of PotPlayer are aware that madVR doesn't support frame capture yet so they have implemented some kind of hack to try and get that frame but obviously it still doesn't work. So actually it's a bug in their player. The correct way to do this is just show a message that this functionality is not supported yet but they didn't do it - so after all it's their fault that the capture is corrupted.

BetaBoy
24th August 2011, 20:01
CoreAVCs RGB converter does not honor its own settings anyway.. The output-levels option only has an effect for YUV output, RGB is always full-range.

We are not understanding the issue here.

"It outputs full range RGB for both limited range and full range H.264." <- this is what CoreAVC does, which is the correct way it should be handled.

But please help us to better understand the issue and define 'limited range' RGB Vs. 'full range'... and what you mean by it.

nevcairiel
24th August 2011, 20:04
IMHO decoders should tell which levels they're outputting. Microsoft has introduced the DXVA_ExtendedFormat information structure exactly for this purpose, and madVR supports it. Unfortunately decoders don't seem to fill this structure yet. Hopefully that will change in the near future. At least nevcairiel has it on his to do list.

I can confirm that setting NominalRange in that structure makes madVR output proper levels. :)

"It outputs full range RGB for both limited range and full range H.264." <- this is what CoreAVC does, which is the correct way it should be handled.
You have an option for PC (full range) or TV (limited range) level output. But your RGB output is always PC level.

If you think that's the correct way to handle RGB conversion - what specifys that? Not criticizing, just wondering how you come to the conclusion that it should always be full-range. Maybe there is something we're missing? :)

madshi
24th August 2011, 20:27
I can confirm that setting NominalRange in that structure makes madVR output proper levels. :)
Nice! :) I hadn't actually tested this yet, due to lack of decoders providing this type of information.

We are not understanding the issue here.

"It outputs full range RGB for both limited range and full range H.264." <- this is what CoreAVC does, which is the correct way it should be handled.

But please help us to better understand the issue and define 'limited range' RGB Vs. 'full range'... and what you mean by it.
RGB can have black at 0. Or it can have black at 16. Computer type monitors usually expect black to be RGB 0,0,0. While TVs and projectors usually expect black to be RGB 16,16,16. ffdshow allows the user to choose whether black is RGB 0,0,0 or RGB 16,16,16. Since CoreAVC has a switch for output levels, it would make a lot of sense (at least IMHO) if that switch would apply to RGB, too.

Or let's talk practical effects: If an end user switches CoreAVC to RGB output, currently you always output black as 0,0,0. However, if the end user has a TV or projector which expects black to be at 16,16,16, he'll lose shadow detail when using EVR, VMR or the Haali Video Renderer, because all those renderers pass RGB through untouched to the display.

BetaBoy
24th August 2011, 20:39
madshi... thank you for the details, its appreciated.

cyberbeing
24th August 2011, 20:42
Microsoft has introduced the DXVA_ExtendedFormat information structure exactly for this purpose, and madVR supports it.
The patent for that looks like it was filed two months after madVR was born (coincidence?), and approved just recently:
http://www.patentlens.net/patentlens/patents.html?patnums=US_7929754

A bit worrying, since it sounds like OpenMediaFormat (http://sourceforge.net/projects/openmediaformat/) would be in violation of that patent if madVR ever started using it...

nevcairiel
24th August 2011, 20:45
We're in europe, we don't care about the USes idea of software patents. :D
Besides, why would MS sue you for using their openly documented structure, in their DirectShow environment, on their OS? o.O

vivan
24th August 2011, 20:46
Your GPU and CPU should be plenty fast enough to do 60fps without any problems.Yes, CPU and GPU load are less then 10%.
And with other renderers (overlay, EVR, Haali) everything is ok.
So bottleneck is somewhere in the GPU and not in the raw computing power... And it is related to chroma upsampling (YV12, NV12, YUY2, UYVY -> RGB32 conversion).
Tested b/w video - 0 framedrops.

And another strange thing - in exclusive mode even presentation queue is full (3-4/4).
Number of dropped frame is about the same (1000-1200 out from 9240) at any resolution (from native 1024x576 to desktop 1920x1080) and mode (windowed/exclusive).

Which decoder are you using?internal and ffdshow.

Please make sure you have antialiasing, anisotropic filtering etc turned off or set to application preference.everything is set to "use application settings"

kerimcem
24th August 2011, 20:53
madvr external filter(lav,dscaler ) problem dvd vob files..(pc and notebook)
deinterlacing problem =http://imageshack.us/photo/my-images/853/ekrntsw.jpg/
ı am back mpeg2 internal codec :(
my english is poor sorry..thanks :)
good work..

Xaurus
24th August 2011, 20:56
I may be way off track here or misunderstanding something, but why is so many people talking about the lack of screen capture with madvr?
I have no problems taking screenshots in exclusive mode (mpc-hc).

Example (uncompressed png, 6 MB):
Click here (http://home.halden.net/mordor/game_of_thrones.png)

cyberbeing
24th August 2011, 21:20
We're in europe, we don't care about the USes idea of software patents. :D
Besides, why would MS sue you for using their openly documented structure, in their DirectShow environment, on their OS? o.O
Who knows, legal departments can be funny sometimes in who they choose to sue. Using the non-Microsoft madVR (instead of EVR/VMR), with a non-Microsoft OpenMediaFormat (instead of DXVA_ExtendedFormat), while using Microsoft components to compete against Microsoft in a way that violates the claims of the patent could be justified enough, if they ever felt threatened by madVR's presence or popularity. Luckily it appears the European Patent application is EP_1625509 is not yet approved. This is why software patents suck...

nand chan
24th August 2011, 21:35
Who knows, legal departments can be funny sometimes in who they choose to sue. Using the non-Microsoft madVR (instead of EVR/VMR), with a non-Microsoft OpenMediaFormat (instead of DXVA_ExtendedFormat), while using Microsoft components to compete against Microsoft in a way that violates the claims of the patent could be justified enough, if they ever felt threatened by madVR's presence or popularity. Luckily it appears the European Patent application is EP_1625509 is not yet approved. This is why software patents suck...

I don't see why they would see a reason to be threatened by madVR. It's the best renderer, and it's windows-only. What's not to love?

If anything, madVR would be causing people /to use/ Windows (over eg. mplayer2 on FOSS operating systems)

fairchild
24th August 2011, 21:44
Nevermind, as I've found the combination of EVR+Reclock to be as good as madVR in the vsync department, doesn't have any RGB issues, cuts the CPU consumption when playing in half, down to 0% when paused, and makes my CPU consume 10W less (20W for 1080p60 content) for the exact same visual quality. Sorry if I bothered you with all this RGB stuff.

I don't know about you, but nothing ever matches the smoothness of MadVR on my system. Sometimes Aero will cause the composition rate to change to 30Hz which causes massive problems. (I notice this when I look at the stats with MadVR) If the composition rate is 30Hz instead of what it should be which is 60Hz, then the video gets mega choppy. When using FSE with MadVR it fixes this issue and the videos are smooth as they should be.

When this issue happens and I'm using EVR choppy video makes me :mad:

I've tried a multitude of options in MPC-HC/PotPlayer such as disable desktop composition (Aero) and D3D fullscreen to remove the tearing from disabling desktop composition, but the video is still not smooth. MadVR > all

e-t172
24th August 2011, 22:33
The patent for that looks like it was filed two months after madVR was born (coincidence?), and approved just recently:
http://www.patentlens.net/patentlens/patents.html?patnums=US_7929754

A bit worrying, since it sounds like OpenMediaFormat (http://sourceforge.net/projects/openmediaformat/) would be in violation of that patent if madVR ever started using it...

Ahah. Considering the current state of the software patents landscape, I wouldn't be surprised if madVR already violated hundreds of software patents in itself without even knowing it. Nowadays, an independent developer has no choice but to ignore software patents: if he doesn't, then he can't make any software whatsoever.

Anyway, the developers live in Europe, where software patents are legally invalid, so we don't have to worry about anything.

STaRGaZeR
24th August 2011, 22:53
Ooops, it seems I only tested the CoreAVC output level switch with YUV output, not with RGB output. Anyway, what happens if the user has a display which needs TV levels when he's using CoreAVC with RGB output for decoding? He'll get incorrect levels with all renderers, not just with madVR.

There are these little circular spots where you can click called options, that let you configure it the way you want ;)

If they don't work the way they should, well that's another issue.

We are not understanding the issue here.

"It outputs full range RGB for both limited range and full range H.264." <- this is what CoreAVC does, which is the correct way it should be handled.

But please help us to better understand the issue and define 'limited range' RGB Vs. 'full range'... and what you mean by it.

madshi thinks that what the decoder should do is if the input is limited range, output it as limited range. If the source is full range, output is as full range. And then let the renderer do its job and convert that if necessary.

The problem madshi doesn't seem to fully understand is that all renderers except madVR don't do any conversions to RGB, so if you want proper image with them you have to give them the image fully converted, ready to be displayed. And 99.9% of users out there have a PC monitor expecting full range RGB, so that is what all known decoders (including CoreAVC) that output RGB do by default, except the future LAV Video if nevcairiel uses the default he said he was going to use. There is no correct or incorrect, but doing what the majority has been using for ages is the wise decision IMHO. Some filters offer options to control the conversion, like CoreAVC, but others don't, so changing this established behavior will just break things like it is doing now in madVR. All the correctness you may have in your software is useless if the final result is bad.

BTW, nevcairiel is correct. The default is what it is, but the options for changing it don't work. You should fix that.


I don't know about you, but nothing ever matches the smoothness of MadVR on my system. Sometimes Aero will cause the composition rate to change to 30Hz which causes massive problems. (I notice this when I look at the stats with MadVR) If the composition rate is 30Hz instead of what it should be which is 60Hz, then the video gets mega choppy. When using FSE with MadVR it fixes this issue and the videos are smooth as they should be.

When this issue happens and I'm using EVR choppy video makes me :mad:

I've tried a multitude of options in MPC-HC/PotPlayer such as disable desktop composition (Aero) and D3D fullscreen to remove the tearing from disabling desktop composition, but the video is still not smooth. MadVR > all

EVR sucks at vsync and general smoothness, but that part is provided by Reclock and it works just fine here. My monitor is configured to 119.88Hz, not sure if the high rate affects stuff or not. But if madshi fixes his stuff I'll go back to madVR, that's for sure.

jimwhite
24th August 2011, 23:13
The problem madshi doesn't seem to fully understand is that all renderers except madVR don't do any conversions to RGB, so if you want proper image with them you have to give them the image fully converted, ready to be displayed. And 99.9% of users out there have a PC monitor expecting full range RGB, so that is what all known decoders (including CoreAVC) that output RGB do by default, except the future LAV Video if nevcairiel uses the default he said he was going to use.

That is a HUGELY gross overestimate :eek:... more and more "HTPC's" every day are hooked up to Largescreen TV's of the LCD/PLASMA persuasion which expect VIDEO (limited) levels.... :p

6233638
25th August 2011, 01:57
The problem madshi doesn't seem to fully understand is that all renderers except madVR don't do any conversions to RGB, so if you want proper image with them you have to give them the image fully converted, ready to be displayed. And 99.9% of users out there have a PC monitor expecting full range RGB, so that is what all known decoders (including CoreAVC) that output RGB do by default, except the future LAV Video if nevcairiel uses the default he said he was going to use. There is no correct or incorrect, but doing what the majority has been using for ages is the wise decision IMHO. Some filters offer options to control the conversion, like CoreAVC, but others don't, so changing this established behavior will just break things like it is doing now in madVR. All the correctness you may have in your software is useless if the final result is bad.I don't think you understand the purpose of madVR.

The whole entire point of starting madVR was to do the best job of converting videos from 4:2:0 YUV to 4:4:4 RGB by doing the best chroma (and luma) upsampling possible.

I don't understand why you would want to send it RGB at all, when the main point of madVR is that it does an amazing job of the conversion to RGB, unlike pretty much everything else. (take a look at the second post in this topic)

Where are you getting RGB encoded/full range source material from, or what is your reason for not wanting to send YV12/NV12 to madVR?
If anything, madVR would be causing people /to use/ Windows (over eg. mplayer2 on FOSS operating systems)It's actually the reason my main computer is a Windows PC and not a Mac now, no joke.

I would probably just be using a Mac and a stand-alone Blu-ray player if it weren't for madVR. (combined with ReClock for DVD)

nand chan
25th August 2011, 02:55
I'm reposting this here to raise awareness of the issue,

have you considered a “reset video device CLUT during playback“ feature for madVR? It's a hassle to always run a manual script to reset them before playback (and reload afterwards).

leeperry
25th August 2011, 03:18
have you considered a “reset video device CLUT during playback“ feature for madVR? It's a hassle to always run a manual script to reset them before playback (and reload afterwards).
You could always use Overlay, as it's immune to CLUT's by design(or lack thereof)http://forum-images.hardware.fr/images/perso/3/ostro%20gaud.gif

This said, now that your LUT app allows to merge ARGYLLCMS calibration files together w/ yCMS/cr3dlut 3DLUT's, this feature would be more than welcome! It would finally allow the use of all-in-one 3DLUT's providing both calibration and gamut mapping at once :devil: