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

Thunderbolt8
7th October 2012, 10:41
about chroma upscaling, is this always involved when watching something, also when no up- or downscaling is done at all? just wondering why its name hasnt been changed to something like "picture upscaling" or similar as well.

noee
7th October 2012, 10:52
fyi, HD6570, Win7 Ult, playback on second monitor, SD=>1080

Jinc 3tap/no AR, GPU ~36%
Jinc 3tap/AR, GPU ~40%

Jinc 4tap/no AR, GPU ~51%
Jinc 4tap/AR, GPU ~57%

0 dropped, 0 glitches

One thing I noticed, not sure if it's related to recent madVR changes or not, but the OSD is now showing the monitor (LG HDTV) refresh rate at 24.00051Hz, dead on steady. Before the last few builds, it would never set below 24.00083Hz. This is HDMI with the HD6570=>Onkyo=>LG HDTV. Seems strange that the madVR "timer" changes would affect this.

Gonna try a low-end Llano laptop (6520G) next, see what it will do.

madshi
7th October 2012, 10:56
about chroma upscaling, is this always involved when watching something, also when no up- or downscaling is done at all? just wondering why its name hasnt been changed to something like "picture upscaling" or similar as well.
It's always involved, at least for normal movie sources. However, differences between different chroma upsampling algorithms are often only visible in specific scenes. Anyway. The reason why it wasn't renamed is because it has the correct name right now. Chroma upscaling only upscales the Chroma channel.

fyi, HD6570, Win7 Ult, playback on second monitor, SD=>1080

Jinc 3tap/no AR, GPU ~36%
Jinc 3tap/AR, GPU ~40%

Jinc 4tap/no AR, GPU ~51%
Jinc 4tap/AR, GPU ~57%

0 dropped, 0 glitches
Interesting. Seems I underestimated modern GPUs. I wouldn't have expected the 6570 to handle Jinc 4 that easily. Good news, I guess...

HitomiKun
7th October 2012, 11:07
madVR v0.84.0 now switches to 100 Hz for no valid reason on a 23.976 fps video... Recently I just use 120 Hz for 24 fps movies, but now it switches to 100 Hz instead (which I set for some European movies that run at 25 fps). I tried every sample I had, various movies / anime, same problem everywhere, always switching to 100 Hz, doesn't matter if it's 23.976, 24 or 25 fps.
Here's a log:

madVR - log.7z (https://dl.dropbox.com/u/48947610/madVR%20-%20log.7z)
^I've been running at 120 Hz from the start, but it switches to 100 Hz for no reason. Am I the only one getting problems here with a 120 Hz monitor? xD

Edit: MadVR mode change settings (https://dl.dropbox.com/u/48947610/MadVR%20settings.png) <- not sure if this helps, but I posted it anyways.

madshi
7th October 2012, 11:12
The log claims you've only one mode in the madVR settings: 1080p100. That's why madVR is always switching to that. Please double check. If your settings do have multiple modes in there, please send me your "settings.bin" file. Or if you don't have such a file, export "HKEY_CURRENT_USER\Software\madshi\madVR\Settings" and send me that.

HitomiKun
7th October 2012, 11:16
The log claims you've only one mode in the madVR settings: 1080p100. That's why madVR is always switching to that. Please double check. If your settings do have multiple modes in there, please send me your "settings.bin" file. Or if you don't have such a file, export "HKEY_CURRENT_USER\Software\madshi\madVR\Settings" and send me that.

So that means I gotta add 1080p120 Hz too? I thought MadVR calculates if it needs to change the mode to match the fps or not.

Ok. I added 1080p120 and everything works now. Sorry for the false alarm. ^^'

Hypernova
7th October 2012, 11:31
I can easily do 704x480 to 1920x1080 which uses 71-74% of my HD4000 with no dropped frames in windowed or exclusive mode.
My settings are as follows:

CPU queue size: 4
GPU queue size: 4

-Windowed mode-
Backbuffers: 8
GPU flushing set to flush & flush & wait, don't flush, don't flush.

-Exclusive mode-
Frames in advance: 3
GPU flushing set to flush, don't flush, don't flush, flush and wait.

Hope that helps a little but with you're dealing with a 0.92MP to 3.8MP upscale so whilst it's around 2x on x and y axis individually it's 4x the total detail.
Your GPU is dealing with 3x as many pixels than mine at the start and almost twice as many with the final result.
My upscale is 0.33MP to 2.07MP, the work required for your upscale could be around twice much as mine and therein likely lies your issue.

I see. That make sense. When you said 2x I was thinking 2x in one dimension so 720p->1440p is a "2x." When I switch to watching on the projector (1080p) then everything is great. It's kind of a pain to switch back and forth but giving up on Jinc altogether is a shame for me too. So I'm in a bind. Thank you for the answer though.

madshi
7th October 2012, 11:33
So that means I gotta add 1080p120 Hz too? I thought MadVR calculates if it needs to change the mode to match the fps or not.

Ok. I added 1080p120 and everything works now. Sorry for the false alarm. ^^'
madVR only changes to one of those modes you listed. It tries to find the best matching mode of those you listed. But if you only list one mode, madVR has no choice but to always switch to that.

ajp_anton
7th October 2012, 11:44
I would like to keep the size of the OSD as small as possible/reasonable for now.Just assign a keyboard shortcut to the scaling algorithm "toggle" action and then pressing it once will show you which algorithm is active without changing it. I'd really like to keep the OSD as small as possible for now.Another subsection for "user interface"? =)

namaiki
7th October 2012, 11:55
I can easily do 704x480 to 1920x1080 which uses 71-74% of my HD4000 with no dropped frames in windowed or exclusive mode.


Aaah! 704x480 ~24fps -> 1920x1080 eats up about 95% of my GeForce 330M. 720p -> 1080p reports as 99% usage, but mostly no dropped frames reported in OSD and looks smooth. I can overclock core from 475-> 620 to get it down to about 80% but Jinc is mostly usable.

edit: Oh, didn't notice that the HD4000 beats my card in 3DMark Vantage...

nlnl
7th October 2012, 12:05
What am I supposed to see in those logs? I'm not sure. I do see some frame drops in the logs, but it's always after something happened and the frame drops stop very quickly afterwards, going back to fluid playback. At least according to what I could see from a quick look at the logs.
madshi

Sorry, did not tell you.
When I do: Start, Seek, Switch Film -> Video -> Film ... (23->59->23), video stops or sometimes MPC-HC freezes.
Sometimes I can exit player but the process MPC is in memory.
Sometimes i can not and see black screen.

Edit:
Another log
https://dl.dropbox.com/u/43376972/madVR%20-%20log.7z

Hypernova
7th October 2012, 12:13
I just played around with overclocking HD 4000. Max overclock I can do is 1500 MHz and that brings the rendering time down to ~43ms. If I use tread quality options I can bring it down to ~40ms which will make the video smooth. But I don't want to do that.

So closed...

Blight
7th October 2012, 12:38
Madshi:
I encountered several issues:

FSE gets used even if FSE is disabled in the MadVR options (both FSE and Overlay are unchecked).
To duplicate, all you need to do is:
1. Make sure FSE is disabled in MadVR options.
2. Make sure "Adv. Options / Playback / Video - Video Covers entire display area" is enabled in Zoom Player.
3. Press Alt+Enter.

Secondly,
Possibly the same as nev's report... If I try running MadVR under the Delphi debugger, all I see is a black screen, seeking doesn't do anything and closing the player causes a MadVR crash:
https://dl.dropbox.com/u/104094858/madvr_debug_crash.rar

Lastly,
You mentioned that IQualProp interface will be active in the new version and I can't get it with QueryInterface, are you sure it's implemented?

P.S.
The "," char being used for a decimal point is country-specific, some countries (Germany I think) uses "," for a decimal point.
Windows actually has a native decimal point character regional setting somewhere.

cyberbeing
7th October 2012, 12:46
I don't think it has anything to do with the anti-ringing filter. Try it without, you'll see similar results. Jinc simply looks different because it's a circular resampler compared to rectangular Spline or Lanczos. Jinc does look softer in some situations, but on the positive side it has noticeably less aliasing than even Lanczos. I already mentioned in my v0.84 announcement post that Lanczos still may look better in some situations due to being sharper. If you test the algorithms with different material, you'll see the positive sides of Jinc, too, I'm sure. E.g. have a look at these pictures:

Lanczos 4 - anti-ringing (http://madshi.net/Lanczos4ar.png) | Jinc 4 - anti-ringing (http://madshi.net/Jinc4ar.png)

I think this test picture (enlarged 400%) shows quite nicely the characteristics of Lanczos and Jinc: Lanczos is able to pull out some details that Jinc is smoothing over. So some fonts look more detailed in the Lanczos upscale. However, Lanczos shows a lot of aliasing (although less than Spline) and some fonts look rather "digital". On the other hand, Jinc is a bit softer overall (much softer in some places, not much/any softer in other places), but the image looks more natural and organic/analog overall. So which is better? Lanczos or Jinc? I think it's a matter of taste. Personally, I think I prefer the look of Jinc.

Judging by that image comparison, Jinc4 has much more residual bright ringing around dark edges compared to Lanczos4. I can see this in my own tests that Jinc4 has more residual dark ringing than Lanczos4 as well. If that's nothing you can improve upon in the anti-ringing filter, you should probably update the graph representation. Judging by how Jinc4 anti-ringing seems to behave, maybe something like this (http://imageshack.us/a/img21/7734/jinc4antiringing.png) would be a more accurate representation.

The main positives I see of Jinc is lack of aliasing in a decently sharp algorithm. Residual ringing, general softness of fine detail, and slowness being the trade-offs. It's an interesting algorithm, maybe useful for doing extreme upscaling, but for general case I don't see it being to my tastes.

wOxxOm
7th October 2012, 12:55
MadVR's hotkeys don't work here at all when FFDShow video decoder is used in filter chain with its internal hotkey control is enabled, even though the hotkeys used are quite different, like Ctrl-Shift-Alt-D, which is intercepted by ffdshow as its Ctrl-Alt-D.

omarank
7th October 2012, 13:02
Error diffusion can't be done with GPU pixel shaders because error diffusion processes one pixel at a time, using the result of the previous pixel calculation for the next pixel. GPU pixel shaders more or less work on all pixels at the same time, which is the opposite of what error diffusion needs. *Maybe* it might be possible to do error diffusion using OpenCL/CUDA, but it will be difficult to do and likely not perform very well. For screenshots error diffusion is easy because madVR is doing the screenshot processing via CPU instead of GPU.

Is it not possible to use CPU for dithering and dither via error diffusion, as dithering is applied at the last step of processing? I am just wondering. I am very much satisfied with the existing method of dithering, though.

Then I don't know why it doesn't work with madVR. Might be a bug in madVR, but since it seems to work with newer Intel GPUs and all NVidia and AMD/ATI GPUs I don't really know how to fix this, without having access to hardware for testing purposes...

Is there anything I can do here which can help you diagnose the problem?

Plutotype
7th October 2012, 13:09
fyi, HD6570, Win7 Ult, playback on second monitor, SD=>1080

Jinc 3tap/no AR, GPU ~36%
Jinc 3tap/AR, GPU ~40%

Jinc 4tap/no AR, GPU ~51%
Jinc 4tap/AR, GPU ~57%

0 dropped, 0 glitches

One thing I noticed, not sure if it's related to recent madVR changes or not, but the OSD is now showing the monitor (LG HDTV) refresh rate at 24.00051Hz, dead on steady. Before the last few builds, it would never set below 24.00083Hz. This is HDMI with the HD6570=>Onkyo=>LG HDTV. Seems strange that the madVR "timer" changes would affect this.

Gonna try a low-end Llano laptop (6520G) next, see what it will do.

Thanks for this, my 5670 should be fine with Jinc 4 taps then.
EDIT: With Jinc@4taps, my HD5670 does not handle 1280x720 to 1920x1080 without dropping frames. GPU load peaks up to 50-60%, which leads to drop outs in madvr queues.

madshi
7th October 2012, 13:34
FSE gets used even if FSE is disabled in the MadVR options (both FSE and Overlay are unchecked).
To duplicate, all you need to do is:
1. Make sure FSE is disabled in MadVR options.
2. Make sure "Adv. Options / Playback / Video - Video Covers entire display area" is enabled in Zoom Player.
3. Press Alt+Enter.
This should be fixed in the next build.

Possibly the same as nev's report... If I try running MadVR under the Delphi debugger, all I see is a black screen, seeking doesn't do anything and closing the player causes a MadVR crash
Yes, looks similar to nev's report. Should hopefully be fixed in the next build, too.

You mentioned that IQualProp interface will be active in the new version and I can't get it with QueryInterface, are you sure it's implemented?
No, I meant the "IMadVRExclusiveModeCallback" interface is now implemented. The one you asked for which calls you whenever exclusive mode is entered/left. IQualProp is not implemented yet.

The "," char being used for a decimal point is country-specific, some countries (Germany I think) uses "," for a decimal point.
Windows actually has a native decimal point character regional setting somewhere.
Yes, I know. Here in Germany "," is the usual decimal separator. I've told Delphi to always use ".", though. And for some reason Delphi reverted my "." change whenever madVR used Overlay mode, in v0.83. I still don't understand how that happened. But the problem is fixed in v0.84.

Judging by that image comparison, Jinc4 has much more residual bright ringing around dark edges compared to Lanczos4. I can see this in my own tests that Jinc4 has more residual dark ringing than Lanczos4 as well.
Now that you mention that, I actually see it in the test image. Didn't notice it before, to be honest. I did notice, though, that the ringing at the left side of the parking meter was quite visible with Lanczos, but mostly gone with Jinc. I'll check if I can improve the Jinc anti-ringing to fix that bright ringing near dark edges.

MadVR's hotkeys don't work here at all when FFDShow video decoder is used in filter chain with its internal hotkey control is enabled, even though the hotkeys used are quite different, like Ctrl-Shift-Alt-D, which is intercepted by ffdshow as its Ctrl-Alt-D.
If ffdshow eats the keys before madVR gets access to them, there's not much I can do about it, unfortunately. It seems that ffdshow doesn't check for "Shift", and so eats keys regardless of whether "Shift" is pressed or not. You'll have to complain to the ffdshow devs about this.

Is it not possible to use CPU for dithering and dither via error diffusion, as dithering is applied at the last step of processing? I am just wondering.
Nope, not possible. Dithering is the last step of processing, and that is done on the GPU, not the CPU.

Is there anything I can do here which can help you diagnose the problem?
I don't know. Maybe it would be possible to diagnose and fix it somehow. But to be honest, it would probably cost me many hours, maybe days, and I've so many other things to do. I don't think I'm going to work on that, unless someone insists on sending me an old laptop with this hardware for testing.

robpdotcom
7th October 2012, 13:34
Also, could we get the disable/enable FSE mode as a toggle?

But it's already there!

Right now, you must assign one key to enable, and another to disable. I meant just have one shortcut to switch back and forth. Unless that is already there, and I'm missing it.

madshi
7th October 2012, 13:39
Why do you need a toggle? Aren't separate actions just as fine?

madshi
7th October 2012, 13:46
madVR v0.84.1 released

http://madshi.net/madVR.zip

* added Jinc 8-tap option
* added support for Jinc chroma upscaling
* added shortcut options for Nearest Neighbor scaling
* fixed: exclusive mode was used in ZoomPlayer even if it was disabled
* fixed: settings dialog showed blank page when starting with key shortcut page
* fixed: crash when creating & freeing madVR instance without playing a video

madshi
7th October 2012, 13:49
madshi

Sorry, did not tell you.
When I do: Start, Seek, Switch Film -> Video -> Film ... (23->59->23), video stops or sometimes MPC-HC freezes.
Sometimes I can exit player but the process MPC is in memory.
Sometimes i can not and see black screen.

Edit:
Another log
https://dl.dropbox.com/u/43376972/madVR%20-%20log.7z
The problem is that you just send a log and then say "sometimes this happens" and "sometimes that happens". But I've no idea which of the things that sometimes happen your log is supposed to show and at which runtime in the log. Please understand that these log files contains tens of thousands of lines of text and I can't just read every line to try to find the place where things went wrong etc. If you upload a log please let me know what you did exactly to create that log, which problem occurred exactly, what you did after the problem occurred etc. Only that way *maybe* I have a chance to find something in the log file.

If the media player freezes, please press Ctrl+Alt+Shift+Break to create a freeze report.

robpdotcom
7th October 2012, 13:51
Why do you need a toggle? Aren't separate actions just as fine?

I just thought one key made more sense, since you can't have it enabled and disabled at the same time.

Anyway, no big deal. I don't want to be a pain.

Superb
7th October 2012, 14:08
Freeze report when using "Save Thumbnails" in MPC-HC: http://www.sendspace.com/file/ol66yq

madVR changed settings:
Disabled decoding. Using LAV Video.
Enabled windowed overlay.
Set both display devices to "Digital Monitor / TV".
All other options are default.
MPC-HC 1.6.5.6069 (96c9d77) x86.
madVR v0.84.1.

ryrynz
7th October 2012, 14:13
Madshi, 0.84.1 doesn't hold the number of taps when I set anti-ringing on Jinc. I set Jinc to 8 taps leave the options, enable anti-ringing and it defaults to 4 taps.

Hard to see any real difference with Jinc 8 taps without zooming in greatly, would be overkill me thinks.

Blight
7th October 2012, 14:40
Madshi:
v0.84.1 no longer shows the black screen and crash when running under a debugger. Thanks.

madshi
7th October 2012, 14:41
Freeze report when using "Save Thumbnails" in MPC-HC: http://www.sendspace.com/file/ol66yq

madVR changed settings:
Disabled decoding. Using LAV Video.
Enabled windowed overlay.
Set both display devices to "Digital Monitor / TV".
All other options are default.
MPC-HC 1.6.5.6069 (96c9d77) x86.
madVR v0.84.1.
On a quick check I don't see anything wrong in that freeze report. Doesn't seem to me that madVR is frozen. Maybe MPC-HC itself is frozen? Don't know for sure. Can you reproduce the problem? If so, how exactly?

Madshi, 0.84.1 doesn't hold the number of taps when I set anti-ringing on Jinc. I set Jinc to 8 taps leave the options, enable anti-ringing and it defaults to 4 taps.
Will be fixed in the next build.

Hard to see any real difference with Jinc 8 taps without zooming in greatly, would be overkill me thinks.
Agreed.

madshi
7th October 2012, 14:42
v0.84.1 no longer shows the black screen and crash when running under a debugger.
Glad to hear that. Hope the FSE problem is fixed, too?

nlnl
7th October 2012, 14:45
The problem is that you just send a log and then say "sometimes this happens" and "sometimes that happens". But I've no idea which of the things that sometimes happen your log is supposed to show and at which runtime in the log. Please understand that these log files contains tens of thousands of lines of text and I can't just read every line to try to find the place where things went wrong etc. If you upload a log please let me know what you did exactly to create that log, which problem occurred exactly, what you did after the problem occurred etc. Only that way *maybe* I have a chance to find something in the log file.

If the media player freezes, please press Ctrl+Alt+Shift+Break to create a freeze report.
OK. I get it.
1) Start playing file, then seek, then switch Film-Video-Film (23-59-23), video stops, press ALT-X, exit MPC, kill MPC process.
Log attached.
2) Start playing te same file, then seek, then switch Film-Video-Film (23-59-23), black screen, press Ctrl+Alt+Shift+Break, press ALT-X, exit MPC, kill MPC process.
Freez report attached.

Thanks for patience :)
https://dl.dropbox.com/u/43376972/madvr%20freez%20and%20log.7z

Edit:
Sorry, I did the following:
Start playing file, then seek, then switch Film-Video-Film (23-59-23), black screen, press Ctrl+Alt+Shift+Break, press ALT-X, exit MPC, kill MPC process.
Freez and log report attached (log and freeze reports for the same playback)

mzso
7th October 2012, 15:04
Nope, not possible. Dithering is the last step of processing, and that is done on the GPU, not the CPU.

Isn't it just infeasible because of the need to pass the data back and forth between the two processors? Because that might just change next year. Just wondering....

jokerb47
7th October 2012, 15:14
* fixed: KMPlayer + madVR decoders + "delay playback start" was always paused
:thanks:madshi. Now it's fine with KMPlayer.
I have a question about internal decoder. Is there a way to use it with J.River? It doesn't allow to choose madVR as decoder.

leeperry
7th October 2012, 15:37
I don't get any picture with 0.84.1, everything is fine with 0.84 :o

I'm feeding 0-255 RGB32 and I've got "force full range input" enabled. I can seek and PotP works fine, but all I get is a black screen with the latest versions of Pot, LAV Splitter, Reclock and ffdshow and a 8800GS on XPSP3 with the old rendering path. 0.84 works perfectly.

Lemme know if you want a log of 0.84 & 0.84.1 in order to compare them? :thanks:

Gser
7th October 2012, 15:42
With 0.84.1 Jinc 8 drops frames like crazy no matter if its luma, chroma, anti-ringing or linear light. Win7 x64, ati 5870.

mzso
7th October 2012, 15:43
Is it possible that I'm getting GPU memory leaks with Potplayer+madVR? Because looking at the graphs it seems like most of the memory isn't freed when I stop playback only after a I close the player.

nevcairiel
7th October 2012, 15:44
With 0.84.1 Jinc 8 drops frames like crazy no matter if its luma, chroma, anti-ringing or linear light. Win7 x64, ati 5870.

Jinc8 was not available before. :p
madshi even said that Jinc8 will be *very* demanding, and he was not sure if any GPU can properly run it in real-time.

iSunrise
7th October 2012, 15:51
Bug report for 0.84.1

Trying to assign a keyboard shortcut on any action like Ctrl+Alt+Shift+# results in an error dialog:

http://www.abload.de/img/errorzqp83.png

SamKook
7th October 2012, 16:45
A 320x240 video in FSE 1366x768(I only have a 720p TV) only uses about 50% of the GPU with Jinc 8 taps on my 560Ti so there still plenty of room for crazy settings. It gives around 16.1 ms of rendering time.

pie1394
7th October 2012, 16:58
Jinc scaler is indeed quite GPU power demanding.

With the following configuration, it takes 32ms to render a video frame for 1280x720 --> 1920x1080 upscaling by madVR.

If Luma upscaling is changed to Lanczos3 w/o Anti-Ring, it just takes 17ms or less.



OS: Win7 x64 SP1
CPU: E8400@3.6 GHz
RAM: 8GB
GPU: MSI Lightning GTX260+ 1792MB (216 cuda core)

[madvr 0.84]
Chroma: Lanczos3 + Anti-Ring
Luma: Jinc3 + Anti-Ring
Other options: Q8, FSE
Gamma correction: off

noee
7th October 2012, 17:15
Fwiw, low-end Llano A6-3400M/6520G (stock speeds) SD=>1600x900 (laptop monitor), FSE, jrMC18/LAV/VideoClock ON:

Jinc3 w/AR: GPU ~49%
Jinc3 no AR: GPU ~44%

Jinc4 w/AR: GPU ~97% (drops frame about every 5 secs)
Jinc4 no AR: GPU ~95% (drops frame about every 10 secs)

Edit:

SD=>1080p upscale results

Jinc3 w/AR: GPU ~83%
Jinc3 no AR: GPU ~81%

Jinc4: GPU 100% (drops frames like crazy, not watchable)

6233638
7th October 2012, 17:47
Oh well, I remember. The point is: I'm afraid of making the settings dialog too complex. It's already frightening to new users as it is right now. Maybe some time in the future...It seems to me that while madVR is still under active development, it might be beneficial to allow control over the anti-ringing, bicubic parameters etc. While I'm sure it's complicated, and you have done a good job tuning the filters, it might not hurt to have a few other sets of eyes look over it, and see if it can be improved in any way.

Perhaps the solution is to have a "basic" and "advanced" UI.

SamuriHL
7th October 2012, 17:51
Jinc8 was not available before. :p
madshi even said that Jinc8 will be *very* demanding, and he was not sure if any GPU can properly run it in real-time.

We gotta try it though. ;) I mean, if the 3770k and the 680 can't handle it, well, then it's not a very useful option. LOL! :D

vomanci
7th October 2012, 17:57
Tested Jinc in image upscaling 720x480 -> 1920x1080 with 8800gt OC 700/1800 (from 600/1800) using FSE (using chroma and image downscaling Lanczos3, other setting the default ones) :

Jinc3 w/AR: GPU 50% rendering 19.75 ms
Jinc4 w/AR: GPU 85% rendering 29.50 ms
Jinc8 w/AR: GPU: 100% rendering 105ms (not playable)

Lanczos3 w/AR: GPU: 13% rendering 6ms
Lanczos4 w/AR: GPU: 20% rendering 6.65ms
Lanczos8 w/AR: GPU: 23% rendering 9.90ms

While Jinc is perfectly usable, i can't see any difference (in my tests). Not like i'm zooming while playing a movie, i tested in real usage. I remained at Lanczos3 mostly because i underclock my videocard to 300/450 and i still have low gpu usage and rendering times.

Good work with this renderer, realy nice.

vivan
7th October 2012, 18:00
Since 0.84.1 4:4:4 input is broken (green screen).

Superb
7th October 2012, 18:02
On a quick check I don't see anything wrong in that freeze report. Doesn't seem to me that madVR is frozen. Maybe MPC-HC itself is frozen? Don't know for sure. Can you reproduce the problem? If so, how exactly?The freeze happens every time (when using the "Save Thumbnails" functionality). I might go over MPC-HC's code to find the point of freeze (if it's there).
Does "Save Thumbnails" work on your machine?

Budtz
7th October 2012, 18:55
Tested Jinc in image upscaling 720x480 -> 1920x1080 with 8800gt OC 700/1800 (from 600/1800) using FSE (using chroma and image downscaling Lanczos3, other setting the default ones) :

Jinc3 w/AR: GPU 50% rendering 19.75 ms
Jinc4 w/AR: GPU 85% rendering 29.50 ms
Jinc8 w/AR: GPU: 100% rendering 105ms (not playable)

Lanczos3 w/AR: GPU: 13% rendering 6ms
Lanczos4 w/AR: GPU: 20% rendering 6.65ms
Lanczos8 w/AR: GPU: 23% rendering 9.90ms

While Jinc is perfectly usable, i can't see any difference (in my tests). Not like i'm zooming while playing a movie, i tested in real usage. I remained at Lanczos3 mostly because i underclock my videocard to 300/450 and i still have low gpu usage and rendering times.

Good work with this renderer, realy nice.

Yes descussions regarding this often revolve around zooming in. I cant much see the point in differences that cant be seen when just normally watching a movie. Is there any real-world difference between Jinc and the others? I am only waching 720p or 1080P content on a 40 inch tv from 2011. Would it even be possible for the human eye to see a differnce on such a setup?

madshi
7th October 2012, 18:59
OK. I get it.
1) Start playing file, then seek, then switch Film-Video-Film (23-59-23), video stops, press ALT-X, exit MPC, kill MPC process.
Log attached.
2) Start playing te same file, then seek, then switch Film-Video-Film (23-59-23), black screen, press Ctrl+Alt+Shift+Break, press ALT-X, exit MPC, kill MPC process.
Freez report attached.

Thanks for patience :)
https://dl.dropbox.com/u/43376972/madvr%20freez%20and%20log.7z

Edit:
Sorry, I did the following:
Start playing file, then seek, then switch Film-Video-Film (23-59-23), black screen, press Ctrl+Alt+Shift+Break, press ALT-X, exit MPC, kill MPC process.
Freez and log report attached (log and freeze reports for the same playback)
Hmmmm... I've looked at the freeze report and the log and it seems that the cause of the problem is that asking the GPU VSync position stops working for some reason. I'm not sure why. Which GPU, which drivers and which OS are you using? Have you tried updating to the latest drivers?

Isn't it just infeasible because of the need to pass the data back and forth between the two processors? Because that might just change next year. Just wondering....
Yes, that's the main reason. But why would that change next year?

I have a question about internal decoder. Is there a way to use it with J.River? It doesn't allow to choose madVR as decoder.
I'm not sure. It'd be better to ask the J.River guys about this.

I don't get any picture with 0.84.1, everything is fine with 0.84 :o
Since 0.84.1 4:4:4 input is broken (green screen).
Ouch. Just wrote "=" instead of "==" at one place. Sometimes I hate C++. Such stupid bugs could never happen in Delphi.

With 0.84.1 Jinc 8 drops frames like crazy no matter if its luma, chroma, anti-ringing or linear light. Win7 x64, ati 5870.
I kinda expected that. Simple solution: Don't use Jinc 8! I've added it on request, but I don't recommend using it.

Is it possible that I'm getting GPU memory leaks with Potplayer+madVR? Because looking at the graphs it seems like most of the memory isn't freed when I stop playback only after a I close the player.
I think PotPlayer keeps madVR running even when you stop playback, because PotPlayer draws some of its GUI through madVR sometimes (depending on PotPlayer configuration). If you think there might be a leak, the first thing would be to double check with other media players. If the same problem occurs with e.g. MPC-HC then it might be a bug in madVR. Otherwise it might either be intentional behaviour of PotPlayer, or it might be a bug in PotPlayer.

Trying to assign a keyboard shortcut on any action like Ctrl+Alt+Shift+# results in an error dialog
Oh well. I'm currently supporting key shortcuts only for common keys like chars, numbers, or most of the special keys like arrows, tab, enter, home etc. The problem with keys like "#" is that the same key could behave different with a different language setting or a different keyboard layout. So for now I'm sorry to say, but you gotta stick to the keys that are supported. I'll probably add support for all keys in a future version.

It seems to me that while madVR is still under active development, it might be beneficial to allow control over the anti-ringing, bicubic parameters etc. While I'm sure it's complicated, and you have done a good job tuning the filters, it might not hurt to have a few other sets of eyes look over it, and see if it can be improved in any way.

Perhaps the solution is to have a "basic" and "advanced" UI.
Any other wishes which would consume multiple days of my time? ;) No thanks. I'd really like to implement all the missing features first before doing stuff like basic/advanced UI switches or other fancy stuff like that. There will be a time for fine tuning, cosmetical stuff and user interface polishing, but it is not now.

The freeze happens every time (when using the "Save Thumbnails" functionality). I might go over MPC-HC's code to find the point of freeze (if it's there).
Does "Save Thumbnails" work on your machine?
Oh well, just tried that for the first time, and yes, I can reproduce the freeze here. However, it seems that madVR continues to run just fine. Well, playback stops, but try pressing Ctrl+J to show/hide the debug OSD, it still works and the debug OSD is updated regularly. That indicates that the madVR private threads still run just fine. The freeze seems to be somewhere inside of MPC-HC. I think it's likely a bug in MPC-HC, but I can't say for sure. Maybe if you upload a freeze report from this situation, created with an MPC-HC debug build (with PDB files), I might be able to comment on where MPC-HC is stuck and why.

madshi
7th October 2012, 19:06
Yes descussions regarding this often revolve around zooming in. I cant much see the point in differences that cant be seen when just normally watching a movie. Is there any real-world difference between Jinc and the others? I am only waching 720p or 1080P content on a 40 inch tv from 2011. Would it even be possible for the human eye to see a differnce on such a setup?
It all depends on multiple things:

(1) Scaling factor: The bigger the scaling factor the bigger the visible difference between various scaling algorithms. Upscaling from 720p to 1080p is not a very high scaling factor, so the differences will be much smaller compared to DVD -> 1080p upscaling.

(2) Viewing angle. A 40 inch TV isn't very big. It might take a front projection setup to see differences with real-world material when upscaling 720p to 1080p. Or at least you'd have to sit very near to that 40 inch TV.

(3) Some people are much more sensitive to specific artifacts than others. E.g. some people see DLP rainbows very easily, others not at all. Some people are terribly bothered by ringing artifacts, others are not. Some people are terribly bothered by aliasing artifacts, others are not. Etc etc.

Blight
7th October 2012, 19:06
madshi:
Yes, FSE being used while unchecked in the madvr options is no longer an issue.

madshi
7th October 2012, 19:16
madVR v0.84.2 released

http://madshi.net/madVR.zip

* fixed: 4:4:4/RGB videos -> green or black screen (introduced in v0.84.1)
* fixed: Jinc8 was not always properly remembered

nlnl
7th October 2012, 19:35
Hmmmm... I've looked at the freeze report and the log and it seems that the cause of the problem is that asking the GPU VSync position stops working for some reason. I'm not sure why. Which GPU, which drivers and which OS are you using? Have you tried updating to the latest drivers?


ATI 5750, 12.8, W7. Yes, I have updated.
Thanks!