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

yesgrey
4th May 2010, 12:48
In that time, you told me that you have your output at 16-245 to be safe. Are you still thinking the same way?
Ye, but only because my projector gamma curve is very bad near the top. I'll continue to set it like that to avoid the bad portion of my gamma curve, and not because there is significant data above 235...

About cr3dlut, there should be news within this week...

cyberlolo
4th May 2010, 12:53
Ye, but only because my projector gamma curve is very bad near the top. I'll continue to set it like that to avoid the bad portion of my gamma curve, and not because there is significant data above 235...

About cr3dlut, there should be news within this week...

Ok, so your advice now is to set output at 16-235 (in case we don't have your gamma curve problem) instead of 16-254?

Thanks about your c3dlut news. We'll be waiting.

yesgrey
4th May 2010, 13:09
Ok, so your advice now is to set output at 16-235 (in case we don't have your gamma curve problem) instead of 16-254?
For Blu-ray and DVD yes, it might be preferable when using a display without big flaws in the gamma curve. Another option would be giving a slight margin, like 16-237, just to be safe.;)
But let's follow the discussion in the thread I've pointed you to.

SacredCultivator
4th May 2010, 13:16
@madshi: Woops I meant similar to cyberbeing >< about the animorphic source not being displayed right for XviD.

I've sent you a PM of a sample.

iSunrise
4th May 2010, 14:13
Quick feedback re: madVR 0.12

1) High CPU load on pause on one core when switching to full-screen after pausing (and back) (i7 920). For this to happen (I can replicate this every time) I either start playing the file in windowed-mode and pausing, then going into fullscreen, or by playing the file in fullscreen, pausing and then going to windowed-mode. This will not happen, if you just stay either at window-mode or fullscreen and pause/unpause the movie.

2) DVD: Macrovision Fail is still there, like with Haali. Iīm on Vista x64 and this will show up everytime the MS DVD Navigator (system default) is invoked. All system renderers, like e.x. EVR work fine. madVR works perfectly, however, if you just select the VOBs by hand (Open file... instead of Open DVD...).

3) Very good news, however, is that I did not have any crashes happen when skipping while playing a movie, like with 0.11. I also didnīt have a crash happening when I just wanted to close the player itself after playing a file, this happened very rarely, but I find it important enough to mention it.

@leeperry (KMP user) and madshi
What I find a bit annoying is that when using madVR with KMP, I canīt get any OSD information from KMP to display. That probably has something to do with an interference from madVRīs own OSD, which works perfectly when hitting CTRL+J. If Iīm using EVR or Haali, KMPīs OSD works as it should (and Haali also has his own OSD which works in combo with KMPīs). So there must be a fundamental difference about how madVR draws itīs OSD, when you compare it to Haaliīs method. Is it possible to change this?

namaiki
4th May 2010, 14:19
i can replicate this every time by playing the file in fullscreen, pausing and then going to windowed-mode

oh brilliant! You caught it!

pie1394
4th May 2010, 15:23
Quote:
Originally Posted by Grmpf
I still got the tearing problem with 23.976/24.000hz (50.000/59.940hz are fine).

I'll turn Aero off and check whether I can reproduce the tearing here.



Actually I also have the same result under Windows 7. It only works fine when the refresh rate is changed to 60 Hz. With EVR Sync renderer, it works fine at 24 Hz under Win7.

After some tests, it shows ver 0.12 has improved a lot about the seeking problem on ver 0.10 ~ 0.11. Has verified it under WinXP x64 and Win7. It just takes a little bit longer time to make the seeking responsed. With ver0.9, it is almost no delay on most video seeking just like other video renderers.


Do you consider adding the following features now?
1. NV12 + DXVA support
2. OSD pin

The reasons come from my recent experience under Win7. Have tried the Win7 platform for several months, and I have found nVidia's PureVideo MPEG2 / H.264 DXVA acceleration in MS DTV Video decoder, MPC-HC H.264 DXVA decoder + MPC-HC EVR Sync mode perform quite well on various HD contents.

It is the only platform that I can have the same or better experience of Pure Video MPEG2 decoder quality under WinXP. nVidia GTX260+ Pixel Adaptive Deinterlacer + frame rate doubler / post-processings are very good in handling interlaced DVD / HDTV contents.

Steveo08
4th May 2010, 15:33
@madshi

ok here is the second log file and this time i zipped it :-)



http://rapidshare.com/files/383448980/log2.zip.html

namaiki
4th May 2010, 15:47
madshi: could you please make a test build of madvr without the power of 2 textures check? doesn't matter if it crashes, but I'd simply love to try run MadVR on my Intel GPU.

leeperry
4th May 2010, 15:55
@leeperry (KMP user) and madshi
What I find a bit annoying is that when using madVR with KMP, I canīt get any OSD information from KMP to display.
I think it's due to the subs pin...KMP uses it for its own subs engine(far more refined and user configurable that anything else) and for its OSD/media infos.

iSunrise
4th May 2010, 16:29
I think it's due to the subs pin...KMP uses it for its own subs engine(far more refined and user configurable that anything else) and for its OSD/media infos.
Ah, now that explains it! Thanks leeperry.

Steveo08
4th May 2010, 18:49
@madshi



sounds great! :)

namaiki
4th May 2010, 18:53
Won't help. Already tried on my old ATI laptop which also doesn't support power of 2 textures. I need to change code to make this work.

I see. :thanks: for the reply. :D

JarrettH
4th May 2010, 20:37
I read the ReadMe for 3dlut a bit...so this should be used? It's a benefit for lower cpu usage and picture quality correct? Do I need a large amount of GPU memory? Does it erase and recreate this offline data for every video watched? :thanks:

Razoola
4th May 2010, 20:38
I have had problems getting madVR working with the latest nvidia graphics drivers and I can confirm v012 still has the same problem on my system as previous madvr version.

win7 ultimate x64
197.45 nvidia drivers
gtx295 and gt240 in system (making three gpus in system)

Problem I see is player freeze trying to play video.

To get 012 working I have to go back to nvidia drivers 191.07 which was the same situation as v011 of madVR.

Just to add Im using x86 build of MPC-HC

I have just seen you have supplied a debug build, here is a log of your 2nd build on my pc to see if its the same issue as Steveo08 (I have different gpu's). http://unibios.free.fr/log.rar

cyberbeing
4th May 2010, 22:55
Well I've noticed a problem new to madVR 0.12.

At random, after ~5-10 minutes, madVR suddenly begins dropping a couple frames every few seconds. Yet if I reopen the video or seek, I can usually get through the entire video without any dropped frames. Nothing unusual is happening with the render and present times, and the decode/backbuffer/render queues are remaining full when it drops frames.

On that note, the CTRL+J statistics must be leaving out some important statistic which could cause frames to drop independently of those which are already shown.

In any case, it appears there is something wrong with the 0.12 VSync code, which is occasionally causing it to lose VSync after a period of time and never fully recover. I never had that problem with 0.11.
My refresh rate is 96.0005 Hz and I use MPC-HC + Reclock on WinXP x86 with a 7800GTX 512.

That's bad news, because such kind of problems are hard to find. Are you using Aero?

Is it possible that your GPU is running on max all the time? v0.12 seems to be slightly more GPU hungry compared to v0.11. Could that explain the problem? (Not the missing information in the OSD, though.) Or is there plenty of power left in your GPU?
No Aero on Windows XP. If it matters madVR (0.11 & 0.12) usually reports my display refresh fluctuating between 96.00050 - 96.00060 Hz.

I wouldn't say plenty of spare GPU, but there is enough.

madVR 0.12
GPU Render + Present times = 32ms
Frame Interval (24fps) = 41.71ms
GPU-Z: 35% GPU Load

madVR 0.11
GPU-Z: 45% GPU Load

Each frame is ready to display 10ms before a frame is needed. Oddly enough, GPU-Z is reporting 10% less GPU usage in 0.12.

I'll stress that the problem is somewhat random. Sometimes I can get through a video without any dropped frames. Other times, after 5-10 minutes it starts dropping 1-3 frames every 15 seconds or so. That 5-10 minutes number is important because there are no dropped frames until 5-10 minutes have passed, if the issue even occurs.

The v0.12 dropping logic works slightly differently to v0.11. The concept of "delayed frames" doesn't exist in v0.12.

Could this have something to do with it? So instead of delaying frames to get back in sync, it instead just drops frames in a failed attempt to get back in sync???

Would you like me to try the capture the problem in a debug log or does it not log any information which would be helpful?

flanger216
4th May 2010, 23:00
Just clarifying, but were you one of the people who was experiencing issues before?

Yeah, madVR would crash on load. Now it works perfectly, even @ 24hz.

Mark_A_W
4th May 2010, 23:05
No Aero on Windows XP. If it matters madVR (0.11 & 0.12) usually reports my display refresh fluctuating between 96.00050 - 96.00060 Hz.



cyberbeing, can you try 95.904hz?

Your refresh rate is actually wrong.

(If you use Reclock 96.000 is close enough, but without it you will get dropped/repeated frames).

cyberbeing
5th May 2010, 00:51
cyberbeing, can you try 95.904hz?

Your refresh rate is actually wrong.

(If you use Reclock 96.000 is close enough, but without it you will get dropped/repeated frames).
When using Reclock it isn't really 'wrong', just sub-optimal (i.e. why change the frame rate if you don't have to). Since I always use Reclock, 96.000 Hz shouldn't be an issue since it just sets the fps to a multiple of your refresh rate (96.000/4 = 24.000). Unless the problem is that madVR doesn't display 24.000 fps when Reclock tells it to (which madshi would need to fix), there shouldn't be any problem.

Feature Request: Have the CTRL+J stats show achieved FPS.

The real reason why I use 96.000 Hz is for simplicities sake, since with a bit of fiddling I was able to get the NVIDIA control panel to set it as a custom resolution. I've had no such luck getting the NVIDIA control panel to set a custom resolution with exactly 95.904 Hz refresh, so I would be forced to use Powerstrip.

In any case I'll try 95.904 Hz with Powerstrip (fluctuates around 95.90415 Hz) and see if the problem still happens.

On that note, madshi, have you added any VSync code in madVR 0.12 for non-fps-multiple refresh rates yet? I remember you saying a long time ago it was on your to-do list.

Mark_A_W
5th May 2010, 00:59
Sorry, I was a bit unclear.

96.000hz + Reclock = all good (sub optimal perhaps...perhaps super optimal = you are back to the film rate).

96.000hz no Reclock = potential issue with repeated frames.


Not sure you'll have much luck with Powerstrip and an Nvidia card (or a 5 series ATi...grrr).

leeperry
5th May 2010, 01:04
On that note, madshi, have you added any VSync code in madVR 0.12 for non-fps-multiple refresh rates yet? I remember you saying a long time ago it was on your to-do list.
I have to admit that "non-fps-multiple refresh rates" look amazingly smooth in the latest build...I often find myself checking the actual refresh rate in Reclock(that doesn't do any "adaptation" due to the rates mismatch) :p

Mark_A_W
5th May 2010, 01:20
I have to admit that "non-fps-multiple refresh rates" look amazingly smooth in the latest build...I often find myself checking the actual refresh rate in Reclock :p


With or without Reclock Mr Scratch?


On my system, Reclock causes chaos unless the refresh rate is a multiple of the source fps.

cyberbeing
5th May 2010, 02:54
Bad news, the problem still happens with Reclock + 95.90415 Hz refresh rate. The dropped frames are more infrequent though (1-3 ever couple minutes again beginning after ~10 minutes). I never had issues with dropped frames in madVR 0.11.

madshi, how were you determining that 0.12 was slower? If something is slower, it's not being displayed by the CTRL+J statistics on my machine. Maybe the "slowness" is caused by madVR constantly waiting on something, which would explain the 10% less GPU utilization in 0.12? If the GPU isn't given enough work, GPU utilization would obviously be lower.

To help troubleshot the issue, could you compile a madVR 0.11 build with more detailed stats like 0.12? What about a madVR 0.12 debug build which outputs to log some extremely detailed execution statistics for every portion of the code which other parts of the code would be forced to wait on until finished?

ajp_anton
5th May 2010, 04:01
I remember you saying MadVR + DXVA is not (and will not be) possible. Is this still true?

Razoola
5th May 2010, 04:30
Well I've noticed a problem new to madVR 0.12.

At random, after ~5-10 minutes, madVR suddenly begins dropping a couple frames every few seconds. Yet if I reopen the video or seek, I can usually get through the entire video without any dropped frames. Nothing unusual is happening with the render and present times, and the decode/backbuffer/render queues are remaining full when it drops frames.

On that note, the CTRL+J statistics must be leaving out some important statistic which could cause frames to drop independently of those which are already shown.

In any case, it appears there is something wrong with the 0.12 VSync code, which is occasionally causing it to lose VSync after a period of time and never fully recover. I never had that problem with 0.11. My refresh rate is 96.0005 Hz and I use MPC-HC + Reclock on WinXP x86 with a 7800GTX 512.

I used to have a problem like this (long ago). The cause turned out to be the OS starting its file indexing service (or other type service) as it though the PC was not in use. Try watching something again but every few minutes give the mouse a wiggle and see if the issue stops. If it does you can then look into what your OS is starting to do.

JarrettH
5th May 2010, 04:54
Is there something I need to change in the output of ffdshow when I use 3dlut? My experience so far is that it makes my video stutter or lag. When I leave it off it's fine.

namaiki
5th May 2010, 04:56
Is there something I need to change in the output of ffdshow when I use 3dlut? My experience so far is that it makes my video stutter or lag. When I leave it off it's fine.

What's your video card? Maybe it's not fast enough to process 3dlut.

Mark_A_W
5th May 2010, 05:04
Is there something I need to change in the output of ffdshow when I use 3dlut? My experience so far is that it makes my video stutter or lag. When I leave it off it's fine.



Same here.

I assume it's because my 2600XT is not up to the task.

JarrettH
5th May 2010, 06:21
A 7600GT 256mb, 196.21 drivers

Perhaps :p

namaiki
5th May 2010, 06:27
ooh I forgot. you can check GPU usage/load with the latest GPU-z. check it.

Also, make sure that you're not running out of video ram.
ie. I can't run madvr and coreavc with cuda acceleraton at the same time, or vram is at 230MB and there is immense lag. but if I make the media player window smaller or disable cuda, acceleration vram goes down to ~170 and playback is smooth.

Mark_A_W
5th May 2010, 07:17
At this point in time is there any real advantage to running a stock 3D lut?

Once we can customise them, there is a real point, and I will buy a new card. But now?

cyberbeing
5th May 2010, 10:11
Render time usually falls between 20-25ms when resizing 1280x720 to 1600x900 with Spline36 Luma / Mitchell-Netravali Chroma and Present time somewhere between 8.5-9.5ms.

I never paid that close attention to delayed, only dropped. If I have time later today I'll check it out and report back. I'll try to get you some logs of 0.12 dropping frames as well.

Are you absolutely positive that the Render Queue staying permanently on 7/8 isn't related to my dropped frame woes? I'm asking again is because one thing I do remember is that madVR 0.11 would get delayed frames whenever the Render Queue dropped from 8/8 to 7/8 for a split second (which usually only happened when resizing 1080p and never 720p). In other words, if madVR 0.11 was staying permanently on 7/8 Render Queue, it would have caused guaranteed delayed frames, yet 0.12 only knows how to drop. It sounds extremely suspect to me.

I'm a bit curious why in 0.12 you are preferring to drop frames instead of keeping the delay+drop logic in 0.11. Does the drop only method bring some sort of benefit? It seems like it would just make things worse, causing a noticeable stutter whenever a frame drops, compared to a delayed frame where you would be hard pressed to notice a stutter at higher refresh rates since the frame is still displayed (at the next vsync?).

The part about the OSD causing stuttering on the 9400 makes me a little worried (stuttering=dropped frames?), since the dropped frames in 0.12 are at times very minor and hard to detect without the OSD being shown.

tetsuo55
5th May 2010, 10:27
Casimir (from the MPC HC crew) has sent me some code which might make DXVA possible with madVR. I'm not really sure yet how well it will work and if there will be any compromises in quality. E.g. it's quite possible that when using DXVA decoding, I also have to use the chroma upsampling and color space conversion of the GPU, instead of being able to do these things myself. Not really sure yet, though...The implementation he sent to you works exactly the same like a software decoder as far as the renderer is concerned.

madshi
5th May 2010, 11:14
Are you absolutely positive that the Render Queue staying permanently on 7/8 isn't related to my dropped frame woes? I'm asking again is because one thing I do remember is that madVR 0.11 would get delayed frames whenever the Render Queue dropped from 8/8 to 7/8 for a split second (which usually only happened when resizing 1080p and never 720p). In other words, if madVR 0.11 was staying permanently on 7/8 Render Queue, it would have caused guaranteed delayed frames
The queue being 8 frames long is a arbitrary decision on my side. I could make it 7 or 9 frames long and there wouldn't be any noticeable different. So the queue being 7/8 instead of 8/8 really doesn't matter much. Furthermore: The OSD only shows the state of the queues at one exact moment every second, while the queues are likely to fluctuate quite a bit during that second of runtime. The queue *can't* be always full, because in that moment when a new frame is shown, the old frame gets deleted and due to this deletion the queue must automatically go to 7/8. Then the new frame coming from the decoder is rendered and the queue goes back up to 8/8. Depending on when the OSD grabs the current queue state, it can be 7/8 or 8/8. I don't think that has anything important to say.

I'm a bit curious why in 0.12 you are preferring to drop frames instead of keeping the delay+drop logic in 0.11. Does the drop only method bring some sort of benefit? It seems like it would just make things worse, causing a noticeable stutter whenever a frame drops, compared to a delayed frame where you would be hard pressed to notice a stutter at higher refresh rates since the frame is still displayed (at the next vsync?).
Well, to be honest, I concentrated on situations where display refresh rate and movie frame rate are identical, because I think that's the future of playback setups. But I have to admit, with high refresh rates such as yours, delayed frames would be much better than dropped frames. So maybe I should restore the old logic.

The part about the OSD causing stuttering on the 9400 makes me a little worried (stuttering=dropped frames?), since the dropped frames in 0.12 are at times very minor and hard to detect without the OSD being shown.
The OSD only causes stuttering because my 9400 is basically too slow for madVR, anyway. Your GPU seems to be much faster, so the OSD should be no problem for you. It's not the OSD in itself which is causing the stuttering for me, it's just the small added burden on the GPU.

The implementation he sent to you works exactly the same like a software decoder as far as the renderer is concerned.
Unfortunately it's not exactly the same:

(1) With a software decoder the decoded frame ends up in system RAM and I can reformat it in any way I like before uploading the data to the GPU. For your information: madVR splits the luma and chroma channels and stores them into separate textures. The textures claim to contain RGB data (although in reality they contain YCbCr data). So the GPU is not doing any damage to them when my pixel shader reads them.

(2) With DXVA the decoded frame ends up as an NV12 surface in GPU RAM. Now the problem is that pixel shaders can only read textures and not surfaces. And textures don't support NV12. I could directly copy the NV12 surface to a YCbCr texture on the GPU. But if a pixel shader reads a pixel from a YCbCr texture, the pixel is converted to 4:4:4 RGB on the fly behind the back of the pixel shader. The pixel shader never gets to see the original YCbCr data. I could directly copy the NV12 surface to an RGB texture, but doing so will make the GPU do chroma upsampling and YCbCr -> RGB conversion. I don't see any way to access the raw NV12 data from within my pixel shaders, without transfering the data to system RAM first. And as you probably know, transfering data from GPU RAM to system RAM is painfully slow... :(

leeperry
5th May 2010, 12:00
in a future version madVR may also be able to do the primaries conversion via shader code.
oh, great news! using the PS gamut mapping script is dead easy, it will improve the ease of use for newbies/lower the GPU load and loading time...and tbh, I'm not quite convinced that a 16bit 3DLUT is not *way* overkill for an 8bit 16-235 SMPTE-C source :o

I can compare real world test patterns as much as I want, the PS script does a perfect job doing the 3D lut thingie *to my eyes*. I guess it'll be a different story on xvYCC material.

iSunrise
5th May 2010, 12:42
Iīve just played back some blu-rays with 29.976 fps, several videos with 29.970fps, 25.000 fps and one with 60fps on a 60Hz display refresh (Eizo CG243W) and I must say I really like 0.12.

Apart from the 60fps one, every other movie/video played back without any dropped frames at all. Skipping is also quite fast (this may be dependent/limited by the res of the video, the GPU performance and your disk access time, e.x.) and happens without dropped frames. I donīt have reclock installed, btw. and Iīm using the nvidia quadro 197.54 drivers for my GTX260.

The 60fps video behaves completely different though, but I think thatīs (in part) due the refresh rate being higher than my actual display refresh. While Iīve configured 60Hz in the nvidia control panel, my actual refresh is more like 59.9 (thatīs what my monitor shows), so Iīm guessing itīs closer to 59.94Hz and not exactly 60Hz. While with 0.11 I can see "major" stutters and dropped frames along the whole video (~5:30 minutes) and about 10-15 dropped frames every 5-10 secs, 0.12 plays the video _very_ smooth, but still with a dropped frame almost every 10-20 secs, which I wouldnīt have noticed, but because the OSD is there and shows me "another frame just got dropped", I indeed can see that thereīs a lag happening. With the OSD off, however, Iīm under the impression that playback is perfectly smooth.

namaiki
5th May 2010, 12:47
Regarding the 60fps video: That's exactly what Reclock is for.

In the same way, my setup stutters, or jerks once a second because of 29.970fps and ~60Hz monitor without Reclock.

Mark_A_W
5th May 2010, 12:57
Render time usually falls between 20-25ms when resizing 1280x720 to 1600x900 with Spline36 Luma / Mitchell-Netravali Chroma and Present time somewhere between 8.5-9.5ms.

I never paid that close attention to delayed, only dropped. If I have time later today I'll check it out and report back. I'll try to get you some logs of 0.12 dropping frames as well.

Are you absolutely positive that the Render Queue staying permanently on 7/8 isn't related to my dropped frame woes? I'm asking again is because one thing I do remember is that madVR 0.11 would get delayed frames whenever the Render Queue dropped from 8/8 to 7/8 for a split second (which usually only happened when resizing 1080p and never 720p). In other words, if madVR 0.11 was staying permanently on 7/8 Render Queue, it would have caused guaranteed delayed frames, yet 0.12 only knows how to drop. It sounds extremely suspect to me.

I'm a bit curious why in 0.12 you are preferring to drop frames instead of keeping the delay+drop logic in 0.11. Does the drop only method bring some sort of benefit? It seems like it would just make things worse, causing a noticeable stutter whenever a frame drops, compared to a delayed frame where you would be hard pressed to notice a stutter at higher refresh rates since the frame is still displayed (at the next vsync?).

The part about the OSD causing stuttering on the 9400 makes me a little worried (stuttering=dropped frames?), since the dropped frames in 0.12 are at times very minor and hard to detect without the OSD being shown.

My Queue also sits on 7/8, and I am also running 95.904hz. I'm not having dropped frames with bluray mkvs.


Iīve just played back some blu-rays with 29.976 fps, several videos with 29.970fps, 25.000 fps and one with 60fps on a 60Hz display refresh (Eizo CG243W) and I must say I really like 0.12.

Apart from the 60fps one, every other movie/video played back without any dropped frames at all. Skipping is also quite fast (this may be dependent/limited by the res of the video, the GPU performance and your disk access time, e.x.) and happens without dropped frames. I donīt have reclock installed, btw. and Iīm using the nvidia quadro 197.54 drivers for my GTX260.

The 60fps video behaves completely different though, but I think thatīs (in part) due the refresh rate being higher than my actual display refresh. While Iīve configured 60Hz in the nvidia control panel, my actual refresh is more like 59.9 (thatīs what my monitor shows), so Iīm guessing itīs closer to 59.94Hz and not exactly 60Hz. While with 0.11 I can see "major" stutters and dropped frames along the whole video (~5:30 minutes) and about 10-15 dropped frames every 5-10 secs, 0.12 plays the video _very_ smooth, but still with a dropped frame almost every 10-20 secs, which I wouldnīt have noticed, but because the OSD is there and shows me "another frame just got dropped", I indeed can see that thereīs a lag happening. With the OSD off, however, Iīm under the impression that playback is perfectly smooth.

Are you sure the video is 60.000fps? The normal framerate is 59.94fps.

iSunrise
5th May 2010, 13:15
Are you sure the video is 60.000fps? The normal framerate is 59.94fps.
Yeah, Iīve double-checked it, just to be sure. Itīs not an NTSC or PAL video, itīs a direct capture from a PC demo production, I prolly shouldnīt have used the term "video". Hereīs the site http://www.pouet.net/prod.php?which=51078 and the direct link ftp://ftp.untergrund.net/users/kb/videos/ASD%20-%20Size%20Antimatters.mp4 (~412MB) in case anyone wants to try it out.

Anima123
5th May 2010, 15:41
Thinkpad T410 with NVS 3100 Video card, the latest driver. MadVR not working but freezes and occupy one core cpu power.

namaiki
5th May 2010, 15:52
Anima123: please name forceware version.

tetsuo55
5th May 2010, 15:56
Unfortunately it's not exactly the same:

(1) With a software decoder the decoded frame ends up in system RAM and I can reformat it in any way I like before uploading the data to the GPU. For your information: madVR splits the luma and chroma channels and stores them into separate textures. The textures claim to contain RGB data (although in reality they contain YCbCr data). So the GPU is not doing any damage to them when my pixel shader reads them.

(2) With DXVA the decoded frame ends up as an NV12 surface in GPU RAM. Now the problem is that pixel shaders can only read textures and not surfaces. And textures don't support NV12. I could directly copy the NV12 surface to a YCbCr texture on the GPU. But if a pixel shader reads a pixel from a YCbCr texture, the pixel is converted to 4:4:4 RGB on the fly behind the back of the pixel shader. The pixel shader never gets to see the original YCbCr data. I could directly copy the NV12 surface to an RGB texture, but doing so will make the GPU do chroma upsampling and YCbCr -> RGB conversion. I don't see any way to access the raw NV12 data from within my pixel shaders, without transfering the data to system RAM first. And as you probably know, transfering data from GPU RAM to system RAM is painfully slow... :(
albain and/or tal.aloni can help with that section.

mark0077
5th May 2010, 16:00
albain and/or tal.aloni can help with that section.

With all of this talk about DXVA with madVR, does it also apply to hardware de-interlacing. Reasons for me not outputting RGB32 with ffdshow, or not using madVR are basically because hardware de-interlacing still looks alot nicer to me than software (with yadif).

Would be amazing if I could have hardware de-interlacing in nv12, then to have madVR do the lovely conversions to RGB and scaling to 1920 x 1080.

leeperry
5th May 2010, 16:26
having second thoughts, if you ever decide to add PS gamut mapping script support, it'd be really sweet to be able to switch on the fly...it's not too convenient w/ 96MB lut files, and it would also allow ppl to set hotkeys and possibly assign them to a RF remote.

Joe Kane's Samsung projectors give direct access to the gamut mapping from their remote, but on the latest Epson's you have to dig into a bunch of sub-menus FWIR...direct access is a really nice feature :)

and possibly assign different default script depending on the windows device display name too, like HR does for the misconvergence "fix".

but I think D3D exclusive support would need to have a higher priority on your list if any possible, as this would finally put an end to all those VSYNC fliptime issues....I've spoken w/ Jong about all this, he told me "If madshi is doing anything at all to solve this problem it sounds like he is doing the equivalent of EVR Sync's "present at nearest" and having trouble working out which frame to target when at random, or after drift, the offset he needs to apply is almost exactly the same as the frame duration. EVR Sync even has the same bug, although the problem is less evident than without it.

if you use Beliyaal's "alternate vsync" there is no risk of synchronised judder because it writes straight to the front-buffer but the risk is you see tearing. It relies on VBlank to hide the tearing and positioning is done in software. Timing has to be really tight."

I've never seen tearing w/ his EVR CP, but ya never know :o

cyberbeing
5th May 2010, 18:35
For reference, I do find Beliyaal's "Alternate VSync" + "Accurate VSync" (along with "Flush GPU after VSync" + "Flush GPU after Present" and optionally "Wait for Flush" to help prevent tearing) is the smoothest when using VMR9 or EVR in MPC-HC with Reclock. On the other hand, "Present at Nearest" was horrible, so if madVR really is doing something similar, it may not be a bad idea to look into implementing something similar to Beliyaal's "Alternate VSync" to see if it improves things.

Kazuya
5th May 2010, 18:44
Strange, I saw a lot of systems so to mine which present tearing in Alternative Vsync in EVR Custom mode. But with windows XP !
Do you use Seven ?

mark0077
5th May 2010, 18:45
Hi madshi,

Using madvr 0.12 I can often play back perfectly smooth. However today, and only once, I started playing Avatar blu-ray, and although mpc-hc showed ~500 drawn, and 0 dropped frames, I seemed to be getting about 2fps, the video was so noticibly jerky. I took a screenshot when this was happening, for about 20 seconds.

Does anything look wrong in this screenshot + stats that might indicate what caused this niggle with madVR. This is using Core i7 @ 3.7ghz, GTX295, Windows 7 64bit.
http://img688.imageshack.us/img688/3944/avatarjerking.th.jpg (http://img688.imageshack.us/i/avatarjerking.jpg/)

And "The Dark Knight" m2ts file looks like this with madVR 0.12
http://img294.imageshack.us/img294/9536/thedarkknight.th.jpg (http://img294.imageshack.us/i/thedarkknight.jpg/)

and I'm also seeing random stutters even with almost perfectly matching rates and reclock vsync enabled. During a full bluray tonight myself and gf noticed maybe 5 or 6 big stutters.

Grafisher
5th May 2010, 18:58
0.12 really is awesome, because it plays my 40GB BDRip file very smoothly (unlike 0.11). The only problem I have encountered is severe stuttering after a few minutes of playback (using ZoomPlayer + Reclock on Win7 Aero). That's a showstopper for me, but I hope this will be fixed soon.

Thanks!

Anima123
6th May 2010, 09:26
Anima123: please name forceware version.

As I know, Thinkpad Laptop cannot use general version forceware. I couldn't tell what the equivalent forceware version is. Just want to know if there's someone happens to have the same kind of laptop as I have and have the same problem.

It was sad for me not being able to enjoy the new version of madVR with my new laptop. Hope the new video card driver can solve the problem or maybe madshi can bring us a compatibility enhanced new version.

namaiki
6th May 2010, 15:31
You can check the forceware version using GPU-z.