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

Razoola
2nd March 2011, 17:46
Well, it doesn't matter, anyway, the final exclusive mode rendering path is coming soon and should fix the problem you're having.

Yippee, I am eargerly awaiting this.

cyberbeing
2nd March 2011, 19:02
On my 2.4GHz dual-core it uses at least twice as much CPU as EVR-CP: ~3200kbps H.264 hovers around 15-20% with EVR-CP, with madVR it's 35-40%.

Very strange, since I based that avg < 3% CPU stat on my 6 year old AMD X2 4800+ (939) 2.4Ghz dual-core. :rolleyes:

The only setting which potentially eats extra CPU cycles is Flush & Wait (loop). Something is very wrong with your PC, if you claim you are not using DXVA with EVR-CP and seeing madVR double CPU usage.

Please list your cpu, gpu, decoder, splitter, media player, and operating system.

fastplayer
2nd March 2011, 19:25
Very strange, since I based that avg < 3% CPU stat on my 6 year old AMD X2 4800+ (939) 2.4Ghz dual-core. :rolleyes:
I'm not sure what the :rolleyes: mean in this context...
Anyway, I've got essentially the same CPU as you: Athlon64 X2 3800+@2.4GHz, on Socket 939.

The only setting which potentially eats extra CPU cycles is Flush & Wait (loop). Something is very wrong with your PC, if you claim you are not using DXVA with EVR-CP and seeing madVR double CPU usage.

Please list your cpu, gpu, decoder, splitter, media player, and operating system.
It actually doesn't matter which combinations of decoders/splitters/media players/OSs I use, the effect is the same: madVR uses twice as much CPU as other renderers.
Here's the rest of my setup:
Win7 32-bit
HD4670, CAT 11.2
MPC-HC rev2956
Haali/LAV/MPC's internal Splitter
ffdshow rev3765/DivX AVC/MPC's internal decoder
madVR 0.42 (down-/upsampling methods seem to have next to zero impact on CPU usage)

djsolidsnake86
2nd March 2011, 21:13
seem that with last version some flv files aren't played correctly

madshi
2nd March 2011, 22:36
Disabled while in fullscreen mode.

I've found an issue I can duplicate on this machine using 0.42.
How about the garbage issue you reported before? Is that reproducable with v0.42?

Using MPC, if I expand to fullscreen and bring it back to normal window mode by double clicking on the window while watching a video I get Aero eventually changing modes in an endless loop.
You mean Aero constantly switches on/off? How often? Just a couple of times? Or all the time until you stop MPC?

When exclusive mode is disabled and when I have both options disable desktop composition and only in fullscreen mode ticked Aero still goes through a changing of modes for a couple of seconds
In what way is this different to the "endless loop"?

My question is, does madVR do much processing on the cpu at all?
madVR consumes a little bit more CPU than VMR/EVR because the video frames are cached in system RAM, while with VMR/EVR usually all decoded video frames are directly transported to GPU RAM. The madVR queues do consume a little bit more CPU, also the whole VSync handling consumes a bit of CPU, but it shouldn't really be very much.

The biggest improvement in terms of reducing frame drops with these scripts was to choose decoders that are multithreaded so thought it would be worth while to ask yourself if your cpu dependent code is already multithreaded or not or if it would even be of benefit.
madVR is as much multithreaded as makes sense.

Some users on avsforums are adament that to maximize quality (avisynth script wise), I shouldn't use madVR
Huh!? What is the reasoning they give? Why would madVR be inferior when using avisynth scripts? I don't really understand that.

seem that with last version some flv files aren't played correctly
Which OS? Which splitter? Which exact decoder? Which exact problem do you have? I need more details...

djsolidsnake86
2nd March 2011, 22:59
seven x64, ffdshow and madvr 0.42
screen is black and playback go on with audio
happen only with some flv files

pirlouy
2nd March 2011, 23:10
You forgot splitter...
I have NO problem here with MPC-HC, MPC-HC FLV splitter, ffdshow, madvr 0.42, Seven x64 with 15 .flv files I found on my HDD...

djsolidsnake86
2nd March 2011, 23:21
i don't have flv splitter in filters
very strange

mark0077
3rd March 2011, 01:42
"Huh!? What is the reasoning they give? Why would madVR be inferior when using avisynth scripts? I don't really understand that."

The reasoning being with the system under stress with CPU hungry avisynth scripts. Madvr will drop more frames than evr. If its not something that can be prevented then it's something they will need to deal with by reducing avisynth script CPU usage like I did until madvr doesn't drop frames.

dansrfe
3rd March 2011, 02:14
I can inverse telecine, resize and sometimes run smoothtweak on-the-fly in avisynth with madVR and no frames are ever dropped or delayed. My system never breaks a sweat. I've even mdegrain'd on-the-fly without any issues.

mark0077
3rd March 2011, 03:13
Resize and degrain? :D read my posts above i said when the system is under stress, not when the system "never breaks a sweat" talk about the complete opposite!! I guess your not using mvtools with 16 8 and 4 blksizes then. Try that on 1080p in real time. Why do people always come and say x works for me or it always runs fine here when other people clearly say something doesn't for them. In any case does it matter what external filter one uses. The point is madvr will drop more frames than evr when the machine is on the limit. Either we must reduce the processing done outside of madvr to compensAte or madvr reduces it's processing. It seems this isn't possible so theres nothing left to discuss. It's no piece of softwares fault just a fact.

fairchild
3rd March 2011, 05:05
I think mark is referring to a frame doubling script such as this. (turns 30fps into 60fps, 24fps into 48fps etc.) I tried it once and it definitely stresses the CPU to the limit. It definitely gives the video a unique look and it's definitely a desired taste. (it kinda gives the "soap opera" effect)

SetMtmode(2,10)
source=ffdshow_source()
source=changefps(source,source,true)
# assume progressive PAL 25 fps or NTSC Film 23.976 source
backward_vec = source.MVAnalyse(blksize=16, isb = true, chroma=false, pel=1, searchparam=1, idx=1)
# we use explicit idx for more fast processing
forward_vec = source.MVAnalyse(blksize=16, isb = false, chroma=false, pel=1, searchparam=1, idx=1)
source.MVFlowFps(backward_vec, forward_vec, num=2*FramerateNumerator(source), \
den=FramerateDenominator(source), mask=0, idx=1)
distributor()

dansrfe
3rd March 2011, 05:07
Ah for 1080p post-processing...Well, that's a different story. Get a more powerful cpu or overclock I guess. I won't deny that I can't post-process with heavy filters on a 1080p stream but I think that's mainly due to the fact that I'm on a C2D vs. a oc'd quad, i7, or even hexacore.

ryrynz
3rd March 2011, 08:42
How about the garbage issue you reported before? Is that reproducable with v0.42?

I haven't managed to reproduced it yet.

You mean Aero constantly switches on/off? How often? Just a couple of times? Or all the time until you stop MPC?

Yes, Aero switches on and off. This continues until I close MPC, also the video display turns black and doesn't change.


In what way is this different to the "endless loop"?

The whole screen turns black for a moment and then MPC and any other windows that are open redraw themselves, this occurs over a couple of seconds.

cyberbeing
3rd March 2011, 09:14
I'm not sure what the :rolleyes: mean in this context...
Anyway, I've got essentially the same CPU as you: Athlon64 X2 3800+@2.4GHz, on Socket 939.
Just that I'm skeptical, since I can't reproduce the problem on a system not all that different than yours.
Your problem appears unique to only you, since no one else in this thread appears to be have high CPU issues with madVR.

It actually doesn't matter which combinations of decoders/splitters/media players/OSs I use, the effect is the same: madVR uses twice as much CPU as other renderers.
Here's the rest of my setup:
Win7 32-bit
HD4670, CAT 11.2
MPC-HC rev2956
Haali/LAV/MPC's internal Splitter
ffdshow rev3765/DivX AVC/MPC's internal decoder
madVR 0.42 (down-/upsampling methods seem to have next to zero impact on CPU usage)
Out of curiosity, have you installed Win7 SP1?

The following are my suggestions for troubleshooting, please do all of them:

Uninstall FFDshow and DivX decoders.
Uninstall Haali, LAV, and DivX splitters.
Uninstall madVR and delete the settings.bin
Open MPC-HC and disable ALL internal filters.
Restart your computer.

Install Haali as your only splitter.
Install FFDshow as your only decoder.
Install madVR.
Playback a MKV with MPC-HC and madVR.
Open madVR settings. Set all resizers to Bilinear, Disable Fullscreen Exclusive, and set all Windowed Mode Tweaks to Don't Flush.
Close MPC-HC
Playback a MKV with MPC-HC and madVR once again.
Does the problem still exist?

If so, download Process Explorer (http://download.sysinternals.com/Files/ProcessExplorer.zip), run as administrator, double click on MPC-HC in Process Explorer while playing an MKV in madVR, click on the Threads tab, and take a screenshot of the Threads tab (PrtScn & paste in MS Paint) when you are seeing High CPU usage. Take a screenshot of your entire Process Explorer window during high CPU usage. Navigate the menu View -> System Information and take a screenshot of the System Information window during high CPU usage. Post all three screenshots here. Hopefully that should give some insight to the cause. I'm somewhat suspecting it's a LAV or DivX MKV splitter issue. Last week when I tried LAV splitter with madVR, they didn't get along at all. If madVR.ax is really to blame, it should show with high CPU use in the Threads tab screenshot. In which case, there may be a bug of some sort which madshi needs to fix.

fastplayer
3rd March 2011, 10:52
Your problem appears unique to only you, since no one else in this thread appears to be have high CPU issues with madVR.
Probably or because no one else has ProcMon/Task Manager opened at all times...
As for your troubleshooting tips, thanks, been there done that:
- This is not a codecpack-infested machine.
- Although it's not an apple-vs-apple comparison, madVR performed in XPSP3 the same as it does now in Win7 SP1.
- Most importantly: I'm perfectly happy with madVR :)

madshi
3rd March 2011, 11:08
seven x64, ffdshow and madvr 0.42
screen is black and playback go on with audio
happen only with some flv files

i don't have flv splitter in filters
very strange
Hmmm... So you probably have the internal FLV splitter disabled in MPC-HC? What happens if you enable it, does the problem then go away?

Can anybody reproduce any problems with FLV files in Windows 7? There were 2 different people reporting problems now, so it should be credible.

The reasoning being with the system under stress with CPU hungry avisynth scripts. Madvr will drop more frames than evr. If its not something that can be prevented then it's something they will need to deal with by reducing avisynth script CPU usage like I did until madvr doesn't drop frames.
Ok, makes sense.

Yes, Aero switches on and off. This continues until I close MPC, also the video display turns black and doesn't change.

The whole screen turns black for a moment and then MPC and any other windows that are open redraw themselves, this occurs over a couple of seconds.
Ok, I'll see if I can reproduce that. Can anybody else?

ryrynz
3rd March 2011, 11:46
Ok, I'll see if I can reproduce that. Can anybody else?

http://forum.doom9.org/showthread.php?p=1481794#post1481794

My post linked above gives a bit more info on those two issues for anyone trying to reproduce them.

djsolidsnake86
3rd March 2011, 17:02
tried also with flv splitter, same problem

dansrfe
3rd March 2011, 20:03
Interestingly enough I can reproduce problems with the internal flv splitter, ffdshow and madVR. :( This is almost for all FLV files I have now. I thought it was a corrupt file or something but it doesn't happen with EVR-CP.

cyberbeing
3rd March 2011, 20:56
Probably or because no one else has ProcMon/Task Manager opened at all times...
As for your troubleshooting tips, thanks, been there done that:
- This is not a codecpack-infested machine.
- Although it's not an apple-vs-apple comparison, madVR performed in XPSP3 the same as it does now in Win7 SP1.
- Most importantly: I'm perfectly happy with madVR :)
It has nothing to do with a codecpack-infested machine. It has to do with reducing the test case variables. Since madVR doesn't use +20% CPU on a X2 4800+, it shouldn't be any different on a X2 3800+. Even if madVR.ax has low CPU use, something else on your PC must have high CPU when using madVR. Decoder? Splitter? GPU driver? Windows Kernel? Hardware Interrupts? DPC? Anti-Virus? Some other random driver? There are numerous possibilities, and taking the Process Explorer screenshots I described should clearly identify what is eating the extra CPU cycles. Yet you seem to be happy with abnormally high CPU usage, and have no desire to find the cause, so I'll just drop it.

mark0077
3rd March 2011, 21:20
madshi, I know you looked into this before, but am unsure if you checked it recently. When starting a movie with madVR, I usually get between 4 and 20~ frame drops, randomly falling somewhere in between these. If the very start of the movie, ie the first second, actually contains some content, obviously we will see a noticible judder effect.

Is this something madVR can control, ie can it wait internally for a period of time for whatever causes the frame drops (buffers filling maybe?) to be completed before beginning the rendering process.. Obviously this would be very low priority but just aiming for perfection it would be great to start a clip and see 0 frame drops in the first second or two.

Luv
3rd March 2011, 21:38
cyberbeing,can you test these:

http://forum.doom9.org/showpost.php?p=927671&postcount=3

beyonce.at.the.bbc.1080mbaff.sample.ts 1080 "i" (50mb)
BBC.HD.Robin.Hood.S01E03.H.264.1080MBAFF.AC3.5.1-BBC.sample.ts 1080 "p" (100mb)

I have a x2 4200+ and they use 7% cpu with DXVA (WMR9)

beyonce.at.the.bbc.1080mbaff.sample.ts 1080 "i"
ZP+Coreavc2.0+madVR 0.36: ~56% cpu with deinterlacing

BBC.HD.Robin.Hood.S01E03.H.264.1080MBAFF.AC3.5.1-BBC.sample.ts 1080 "p"
~64% cpu

cyberbeing
3rd March 2011, 23:35
I don't have a GPU which supports H264 hardware decoding.

beyonce.at.the.bbc.1080mbaff.sample.ts
MPC-HC + FFDshow (ffmpeg-mt + cubic interpolation deinterlacing) + Haali + madVR 0.42: ~58% CPU
MPC-HC + FFDshow (ffmpeg-mt + cubic interpolation deinterlacing) + Haali + VMR9: ~56% CPU

BBC.HD.Robin.Hood.S01E03.H.264.1080MBAFF.AC3.5.1-BBC.sample.ts
MPC-HC + FFDshow (ffmpeg-mt) + Haali + madVR 0.42: ~54% CPU
MPC-HC + FFDshow (ffmpeg-mt) + Haali + VMR9: ~52% CPU

Edit: Luv, since you read my post but didn't respond, what exactly were you curious about? Just interested in how my CPU/setup compared to yours?

bjd
4th March 2011, 12:22
Don't know if anyone can point me in the right direction, but I have very frustrating issue with an XP where I start to experience serious delayed frames with MadVR after about 40 minutes of playback no matter what the source material is.

For the 40 minutes or so playback is superb, a maybe 1 or 2 dropped/delayed frames at the start of playback and that's it, but after the system has been running a while, frames start to get delayed at an alarming rate (5 a second).

A reboot always sorts it out. I have checked the GPU/CPU/Memory use with various tools and they all seem minimal, but it is like a driver somewhere on the PC goes skew whiff after a while.

The PC is XP SP3, Athlon x64 Dual 5000+, 2gb RAM, 2gb Geforce 430, multiple hard disks running on an NForce 630/7025 based motherboard. Playback is always on Mpc-Hc.

I am going to do some more investigating this weekend, but any pointers as to what in general causes the delayed frames might give me a headstart.

mark0077
4th March 2011, 12:58
Bjd are you usIng reclock? I had issues before when using it when it didn't and still doesn't detect my monitors refresh correctly and started changing the media playback speed in weird ways. Just something to check.

bjd
4th March 2011, 13:22
I do use ReClock in bit exact mode by slaving reference clock to audio, but i still get the issue of delayed frames if I fall back to the the XP default direct sound, so I have discounted ReClock as the culprit.

Luv
4th March 2011, 13:28
I don't have a GPU which supports H264 hardware decoding.

beyonce.at.the.bbc.1080mbaff.sample.ts
MPC-HC + FFDshow (ffmpeg-mt + cubic interpolation deinterlacing) + Haali + madVR 0.42: ~58% CPU
MPC-HC + FFDshow (ffmpeg-mt + cubic interpolation deinterlacing) + Haali + VMR9: ~56% CPU

BBC.HD.Robin.Hood.S01E03.H.264.1080MBAFF.AC3.5.1-BBC.sample.ts
MPC-HC + FFDshow (ffmpeg-mt) + Haali + madVR 0.42: ~54% CPU
MPC-HC + FFDshow (ffmpeg-mt) + Haali + VMR9: ~52% CPU

Edit: Luv, since you read my post but didn't respond, what exactly were you curious about? Just interested in how my CPU/setup compared to yours?

Thanks for you swiftness,cyberbeing ! :)
Yeah,I just wanted to make sure nothing was borked on my rig.Since your cpu is about 9% more powerful than mine,your numbers make sense (At least for .264 1080p but for .264 1080i,ouch ! Seems that Coreavc outperforms very noticeably your actuel decoder.)
Still,I don't understand how you managed to evaluate the madVR cpu usage.You were speaking about a 3% but I might have completely misunderstood your post...

pankov
4th March 2011, 18:14
now that I have access to my forum account and I can post I'm glad to report that all GUI draw issues with ZoomPlayer are fixed with v0.42
:)
now if only I can find what's causing the access violation when going to the next file I'll be one more step closer to the home theater nirvana
;)

soulkeeper
4th March 2011, 18:27
I've recently installed madvr after reading for it's excellent pq (congratulations @madshi)!!
I updated today to 0.42,using mpc-hc and ffdshowand i'm going to do some tests...the resizing is done to 1280*720 in ffdshow because i use an avisynth script to interpolate 23.976->59.94....
Are there any benefits of using exclusive modein madvr?does it "bypasses" any "dirty" processes that may occur in the os during the playback?
i realize that aero is disabled when in fullscreen exclusive mode but there is an option to leave it enabled when we are not in exclusive...

Till now i used evr cp,D3d fullscreen mode and full floating point processing enabled in mpc-hc options with aero enabled...so i'd prefer to start my tests with aero enabled..

Can i do that when in exclusive mode?

Thanks!

pankov
4th March 2011, 18:39
And now back to some other issues I found in the latest versions:

1. If I disable the switch to disable Aero (so I have Aero always on) I get DirectVobSub's icon (green arrow) leftovers in the system tray. So I guess ZoomPlayer is not destroying the filters correctly, right? Strangely if I use the default madVR setting (which is "when in fullscreen") I don't get the leftover icons.
Should I try to talk to Blight (the author of ZoomPlayer) about this now that he's back and working on it again?

2. If I restore ZoomPlayer (go out of fullscreen an back to windowed) while in Exclusive mode I get an error about Direct3D device failed
madVR reports:
- resetting Direct3D device failed (88760868)
- creating Direct3D device failed (88760868)

Rebuilding the graph (restarting playback) doesn't help. I have to close the player and then I can start the movie again.

Here is the log
http://www.mediafire.com/file/k3ft0n7b1ve4664/madVR%20-%20log%20-%20D3D%20failed.rar
(madshi, this one is from v0.42. you can also use the one that I sent you a few days ago)
This never happens with v0.31 but I saw the same error with other 0.37+ versions but I thought I did something wrong then - now I can repeat the problem every time ... at least I did it 6 times in a row. I also noticed that this only happens if I start the playback in fullscreen mode. If I go from windowed to fullscreen and then back to windowed everything is OK.
Am I the only one getting this error? Can it be connected with the access violation problem which I have?

mark0077
4th March 2011, 20:37
Hi madshi, I have a clip which to my surprise won't play with madVR. Audio plays but video and mpc-hc itself seems to become unresponsive. Plays fine with evr.. Here is madVR pin info. Do you need a sample or is pin info enough for you to recognize what might be wrong...

Filter : madVR - CLSID : {E1A8B82A-32CE-4B0D-BE0D-AA68C772E423}

- Connected to:

CLSID: {04FE9017-F873-410E-871E-AB91661A4EF7}
Filter: ffdshow Video Decoder
Pin: Out

- Connection media type:

Video: YV12 1024x304 (480:209) 23.98fps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_YV12 {32315659-0000-0010-8000-00AA00389B71}
formattype: FORMAT_VideoInfo2 {F72A76A0-EB0A-11D0-ACE4-0000C0CC16BA}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 466944
cbFormat: 112

VIDEOINFOHEADER:
rcSource: (0,0)-(576,304)
rcTarget: (0,0)-(576,304)
dwBitRate: 0
dwBitErrorRate: 0
AvgTimePerFrame: 417083

VIDEOINFOHEADER2:
dwInterlaceFlags: 0x00000000
dwCopyProtectFlags: 0x00000000
dwPictAspectRatioX: 480
dwPictAspectRatioY: 209
dwControlFlags: 0x00000000
dwReserved2: 0x00000000

BITMAPINFOHEADER:
biSize: 40
biWidth: 1024
biHeight: 304
biPlanes: 1
biBitCount: 12
biCompression: YV12
biSizeImage: 466944
biXPelsPerMeter: 0
biYPelsPerMeter: 0
biClrUsed: 0
biClrImportant: 0

pbFormat:
0000: 00 00 00 00 00 00 00 00 40 02 00 00 30 01 00 00 ........@...0...
0010: 00 00 00 00 00 00 00 00 40 02 00 00 30 01 00 00 ........@...0...
0020: 00 00 00 00 00 00 00 00 3b 5d 06 00 00 00 00 00 ........;]......
0030: 00 00 00 00 00 00 00 00 e0 01 00 00 d1 00 00 00 ........à...Ñ...
0040: 00 00 00 00 00 00 00 00 28 00 00 00 00 04 00 00 ........(.......
0050: 30 01 00 00 01 00 0c 00 59 56 31 32 00 20 07 00 0.......YV12. ..
0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

cyberbeing
5th March 2011, 02:00
Still,I don't understand how you managed to evaluate the madVR cpu usage.You were speaking about a 3% but I might have completely misunderstood your post...
Using Process Explorer to view the theads of MPC-HC.
http://img203.imageshack.us/img203/9747/theads.png
Usually madVR.ax is completely idle, apparently using no CPU whatsoever. Every couple minutes madVR.ax will use ~2-5% CPU for no more than 2 seconds, but that may be caused by my use of Flush & Wait (Loop). Other than that, there may be 1% CPU being used by madVR.ax in the splitter.ax (Haali Splitter) thread stack. From that I estimated less than 3% average CPU usage by madVR.

JamPS
5th March 2011, 03:49
I'm having problems with dual gfx cards and 4 display setup, when I start mpc-hc with some video, the screens constantly blink until I pause and then resume after some sec. Windows 7 reports that some Aero(?) mode has been changed.
EVR works fine.

1st gfx: Radeon HD 6850
2nd gfx: Radeon HD 4850

No crossfire(obviously).

dansrfe
5th March 2011, 23:01
I just reverted back to v0.41 for the time being.

madshi
5th March 2011, 23:41
tried also with flv splitter, same problem
Hmmmmm... How can I reproduce this problem? It seems to work just fine for me! :( Can you upload a log for me? Perhaps that helps...

madshi, I know you looked into this before, but am unsure if you checked it recently. When starting a movie with madVR, I usually get between 4 and 20~ frame drops, randomly falling somewhere in between these. If the very start of the movie, ie the first second, actually contains some content, obviously we will see a noticible judder effect.

Is this something madVR can control, ie can it wait internally for a period of time for whatever causes the frame drops (buffers filling maybe?) to be completed before beginning the rendering process.. Obviously this would be very low priority but just aiming for perfection it would be great to start a clip and see 0 frame drops in the first second or two.

Interestingly enough I can reproduce problems with the internal flv splitter, ffdshow and madVR. :( This is almost for all FLV files I have now. I thought it was a corrupt file or something but it doesn't happen with EVR-CP.
Which OS? Can you try different splitters and different decoders? Maybe that helps us figuring out which setup exactly is causing the problems. On my PC FLV files work just fine.

Don't know if anyone can point me in the right direction, but I have very frustrating issue with an XP where I start to experience serious delayed frames with MadVR after about 40 minutes of playback no matter what the source material is.

For the 40 minutes or so playback is superb, a maybe 1 or 2 dropped/delayed frames at the start of playback and that's it, but after the system has been running a while, frames start to get delayed at an alarming rate (5 a second).

A reboot always sorts it out. I have checked the GPU/CPU/Memory use with various tools and they all seem minimal, but it is like a driver somewhere on the PC goes skew whiff after a while.

The PC is XP SP3, Athlon x64 Dual 5000+, 2gb RAM, 2gb Geforce 430, multiple hard disks running on an NForce 630/7025 based motherboard. Playback is always on Mpc-Hc.

I am going to do some more investigating this weekend, but any pointers as to what in general causes the delayed frames might give me a headstart.
Hmmmm... Do you have to reboot? Or does restarting the media player also help? My first guess would be that either your GPU driver has some kind of memory leak, resulting in problems after a while. Or that your GPU clocks down after a while and fails to clock up again. Can you try locking your GPU clocks and voltages at a fixed value, just as a test? You should be able to do that with one of the tweaker tools, I think.

the resizing is done to 1280*720 in ffdshow because i use an avisynth script to interpolate 23.976->59.94....
Can't you interpolate first and then let madVR resize?

Are there any benefits of using exclusive modein madvr?does it "bypasses" any "dirty" processes that may occur in the os during the playback?
The main benefit of the exclusive mode is to guarantee that there's no tearing, and maybe to squeeze out a bit more performance.

i realize that aero is disabled when in fullscreen exclusive mode but there is an option to leave it enabled when we are not in exclusive...

Till now i used evr cp,D3d fullscreen mode and full floating point processing enabled in mpc-hc options with aero enabled...so i'd prefer to start my tests with aero enabled..

Can i do that when in exclusive mode?
Sure. If you uncheck the "disable desktop composition" option in the madVR settings dialog, Aero should stay enabled all the time.

1. If I disable the switch to disable Aero (so I have Aero always on) I get DirectVobSub's icon (green arrow) leftovers in the system tray. So I guess ZoomPlayer is not destroying the filters correctly, right? Strangely if I use the default madVR setting (which is "when in fullscreen") I don't get the leftover icons.
Should I try to talk to Blight (the author of ZoomPlayer) about this now that he's back and working on it again?
I'm not sure about who's at fault here. Can't imagine it has anything to do with madVR, but I don't really know. Don't know what to tell you. I guess the leftovers go automatically away if you move the mouse cursor over them?

2. If I restore ZoomPlayer (go out of fullscreen an back to windowed) while in Exclusive mode I get an error about Direct3D device failed
madVR reports:
- resetting Direct3D device failed (88760868)
- creating Direct3D device failed (88760868)

Rebuilding the graph (restarting playback) doesn't help. I have to close the player and then I can start the movie again.

Here is the log
http://www.mediafire.com/file/k3ft0n7b1ve4664/madVR%20-%20log%20-%20D3D%20failed.rar
(madshi, this one is from v0.42. you can also use the one that I sent you a few days ago)
This never happens with v0.31 but I saw the same error with other 0.37+ versions but I thought I did something wrong then - now I can repeat the problem every time ... at least I did it 6 times in a row. I also noticed that this only happens if I start the playback in fullscreen mode. If I go from windowed to fullscreen and then back to windowed everything is OK.
Am I the only one getting this error? Can it be connected with the access violation problem which I have?
Will have a look at that.

Hi madshi, I have a clip which to my surprise won't play with madVR. Audio plays but video and mpc-hc itself seems to become unresponsive. Plays fine with evr.. Here is madVR pin info. Do you need a sample or is pin info enough for you to recognize what might be wrong...
Need a sample. And info about OS, splitter and decoder.

I'm having problems with dual gfx cards and 4 display setup, when I start mpc-hc with some video, the screens constantly blink until I pause and then resume after some sec. Windows 7 reports that some Aero(?) mode has been changed.
EVR works fine.

1st gfx: Radeon HD 6850
2nd gfx: Radeon HD 4850

No crossfire(obviously).
That's weird! Can I have a log, please? Let the blinking run for a couple of seconds, then press pause and resume and let it continue to run for a couple of seconds. Then close MPC-HC.

(In order to create a log, rename "madVR [debug].ax" to "madVR.ax", then restart MPC-HC. After that madVR will write a log file to your desktop. Please *zip* the log file.

I just reverted back to v0.41 for the time being.
Why?

dansrfe
6th March 2011, 01:24
Because we're all having problems with the internal flv splitter. I was also having problems with the avi splitter too. Basically no video or it hangs and then the audio works fine. All I did was revert back to 0.41 with all other conditions constant and everything works as expected to. Something doesn't fit as per this incident.

fairchild
6th March 2011, 03:17
I'm also having issues with certain FLV files. They will hang the media player and just have the audio going while there is a black screen with no image. I verified that if I switch the renderer to any of the following, the files play fine: EVR-CP or Haali or VMR9 Renderless or Video Renderer. The following filters are being used: ffdshow video decoder (3768 ICL 12), ffdshow audio decoder (3768 ICL 12), reclock audio renderer (1.8.7.3), FLV Source (splitter), PotPlayer (1.5 build 26978).

I also tested by rolling back to 0.41 as dansrfe mentioned, and the FLV's that hang the media player and only play audio begin to work again.

I'm sticking with 0.42 though since this is a minor inconvenience for me, as I don't exclusively watch FLV's and they are usually poor quality to begin with so I will just switch renderer's as a workaround till it's corrected.

soulkeeper
6th March 2011, 11:35
Can't you interpolate first and then let madVR resize?

No i can't..with the script i'm using ,i'm getting about 90% cpu util. with my Q9400@3.5Ghz if i don't resize before using avisynth..


The main benefit of the exclusive mode is to guarantee that there's no tearing, and maybe to squeeze out a bit more performance.

Very nice!!


Sure. If you uncheck the "disable desktop composition" option in the madVR settings dialog, Aero should stay enabled all the time.

I've already unchecked that,but i thought that aero is still disabled in exclusive because when pressing ctl+j to see the stats i don't see the composition rate..(you've wrote in a previous post that when we don't see the composition rate then aero is disabled...

madshi
6th March 2011, 18:05
If I restore ZoomPlayer (go out of fullscreen an back to windowed) while in Exclusive mode I get an error about Direct3D device failed
madVR reports:
- resetting Direct3D device failed (88760868)
- creating Direct3D device failed (88760868)

Rebuilding the graph (restarting playback) doesn't help. I have to close the player and then I can start the movie again.

Here is the log
http://www.mediafire.com/file/k3ft0n7b1ve4664/madVR%20-%20log%20-%20D3D%20failed.rar
(madshi, this one is from v0.42. you can also use the one that I sent you a few days ago)
This never happens with v0.31 but I saw the same error with other 0.37+ versions but I thought I did something wrong then - now I can repeat the problem every time ... at least I did it 6 times in a row. I also noticed that this only happens if I start the playback in fullscreen mode. If I go from windowed to fullscreen and then back to windowed everything is OK.
Am I the only one getting this error? Can it be connected with the access violation problem which I have?
I can't reproduce that on my XPSP3 PC. Can anybody else?

Anyway, this should be fixed with the final exclusive mode rendering path, I think. Unless the problem also occurs if you disable exclusive mode?

madshi
6th March 2011, 18:21
I've found an issue I can duplicate on this machine using 0.42.

Using MPC, if I expand to fullscreen and bring it back to normal window mode by double clicking on the window while watching a video I get Aero eventually changing modes in an endless loop.
I've can replicate this problem usually within twenty seconds by constantly double clicking.
This is with exclusive mode is disabled and desktop composition disabled in fullscreen.

I've noticed the resizing pixelation and stretching I mentioned earlier during fullscreen resize does not occur when exclusive mode is disabled.

When exclusive mode is disabled and when I have both options disable desktop composition and only in fullscreen mode ticked Aero still goes through a changing of modes (enabling and disabling) for a couple of seconds and the video playback lags for a bit as this happens, using Windows 7 x64 with HD4890 & Cat 11.2.
I think this should be fixed in the next build.

madshi
6th March 2011, 18:23
No i can't..with the script i'm using ,i'm getting about 90% cpu util. with my Q9400@3.5Ghz if i don't resize before using avisynth..
Ah, you're *down*sizing, right? Then it makes sense. I originally thought you were upsizing.

I've already unchecked that,but i thought that aero is still disabled in exclusive because when pressing ctl+j to see the stats i don't see the composition rate..(you've wrote in a previous post that when we don't see the composition rate then aero is disabled...
Please try again with the next build. Might have been a bug.

pankov
6th March 2011, 19:19
I'm not sure about who's at fault here. Can't imagine it has anything to do with madVR, but I don't really know. Don't know what to tell you. I guess the leftovers go automatically away if you move the mouse cursor over them?

Yes, they disappear when I hover over them with the mouse.
Can anybody help me configure MPC-HC to use DirectVobSub? I've added it to the External Filters list as "prefered" and it's present in the graph but it doesn't load the subtitles automatically. Should I use the "autoloading version"? I've managed to replicate the same DS graph except this. I'd like to test if it's ZP's problem or it's something general on my PC.

I can't reproduce that on my XPSP3 PC. Can anybody else?

Anyway, this should be fixed with the final exclusive mode rendering path, I think. Unless the problem also occurs if you disable exclusive mode?
I noticed that a few times you've mentioned you are testing on XPSP3. I'm not sure if you do this only to reproduce my error reports or in general but I personally use Windows 7 Ultimate 32bit with Service Pack 1. And I can reproduce this problem on both of my PCs - one with i5-750 + AMD HD5750 and the other one with C2D6420 + NV9400 integrated.
btw if I remember correctly you're using nV9400 also, right?
Can you share with us which scaling algorithm you use on such low end GPU?

madshi
6th March 2011, 19:57
I noticed that a few times you've mentioned you are testing on XPSP3. I'm not sure if you do this only to reproduce my error reports or in general but I personally use Windows 7 Ultimate 32bit with Service Pack 1. And I can reproduce this problem on both of my PCs - one with i5-750 + AMD HD5750 and the other one with C2D6420 + NV9400 integrated.
My development PC is XPSP3, so that's where I do most testing. I do test Aero etc stuff on my win7 x64 HTPC, but that's more painful because it's not my development PC. Anyway, as I said, I expect the problem you reported to be fixed with the final exclusive mode rendering path, so I don't think it's worth it investigating it now.

btw if I remember correctly you're using nV9400 also, right?
Can you share with us which scaling algorithm you use on such low end GPU?
I'm trying to avoid scaling. Luckily, my projector is 1080p and 99% of my content is 1080p.

madshi
6th March 2011, 20:00
madVR v0.43 released

http://madshi.net/madVR.zip

* restored some v0.36 behaviour for exclusive -> windowed switch (XP only)
* fixed FLV problem (introduced with v0.42)
* fixed bug which resulted in Aero en/disabling happening incorrectly
I was originally planning to implement the final exclusive mode rendering path this weekend (and last, and the one before that). But these steady bug reports and bug fixes consume all my time, so I don't get to implement anything new, sadly. Maybe I should ignore bug reports for a while, so that I can finally get around to do something new?

pirlouy
6th March 2011, 20:07
Yeah ! Ignore bugs reports until I have ! :D

pankov
6th March 2011, 20:27
I'm trying to avoid scaling. Luckily, my projector is 1080p and 99% of my content is 1080p.
Lucky you :)
I too have a 1080p and a 1080p TV but I do watch a lot of 720p TV shows so that was the reason why I was asking.

My development PC is XPSP3, so that's where I do most testing. I do test Aero etc stuff on my win7 x64 HTPC, but that's more painful because it's not my development PC. Anyway, as I said, I expect the problem you reported to be fixed with the final exclusive mode rendering path, so I don't think it's worth it investigating it now.

madVR v0.43 released

http://madshi.net/madVR.zip

* restored some v0.36 behaviour for exclusive -> windowed switch (XP only)
* fixed FLV problem (introduced with v0.42)
* fixed bug which resulted in Aero en/disabling happening incorrectly
I was originally planning to implement the final exclusive mode rendering path this weekend (and last, and the one before that). But these steady bug reports and bug fixes consume all my time, so I don't get to implement anything new, sadly. Maybe I should ignore bug reports for a while, so that I can finally get around to do something new?

I totally understand your dilemma and I'll support you whatever you decide. I'll stop reporting problems until the new rendering path is ready.

leeperry
6th March 2011, 20:44
Oh well. Ok, I've changed some things back to the way v0.36 behaved - but only for Windows XP. I think the behaviour in XP was always fine. Most of the changes for improved exclusive -> windowed switching are now Vista (and newer) exclusive. Hope that you'll be back to v0.36 standards with the next build.
Yes, that seems to have done the trick! no more hiccups, no more zombie frames :thanks:

* settings dialog now remembers the page you've been on
That's a nice little time saver, but it still takes around 3 secs to get the properties dialog to show up, and it very often fails: http://thumbnails35.imagebam.com/12247/9e0577122464821.jpg (http://www.imagebam.com/image/9e0577122464821)

I'm not sure what network protocol you're using, but I've updated the "madHcCtrl.exe" MD5 in my firewall and it still very often fails like this. I run a stripped to the bone XPSP3, only TCP-IP's active...and I don't allow 127.0.0.1 loopback(due to possible attacks) either. I never need to get into those menus anyway...the only reason I might need to would be selecting LUT's for different colorspaces, but I'm sure you'd set up hotkeys for that http://forum-images.hardware.fr/images/perso/icon12.gif

madshi
6th March 2011, 21:50
it still takes around 3 secs to get the properties dialog to show up
Not sure why.

and it very often fails
Can you please do this:

(1) Replace madHcCtrl.exe with this file:

http://madshi.net/madHcCtrl.zip

(2) Open the settings dialog. At this moment there should appear a new file on your desktop, named "reply.dat".

(3) If the settings show up ok, rename "reply.dat" to "success.dat".

(4) If you get the "madVR instance didn't reply properly" message, rename "reply.dat" to "failure.dat".

Once you got both "success.dat" and "failure.dat", zip them up and mail them both to me. Maybe I can figure out what went wrong.

Please do NOT change any settings while doing all this.

leeperry
6th March 2011, 22:07
Can you please do this [..] zip them up and mail them both to me.
done, it failed the two first times then it worked(after a 3 secs wait).