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

Andy o
2nd October 2011, 10:17
The video post-processing options are what doesn't affect madVR. The desktop color options affect everything. What "white" option are you talking about?

THX-UltraII
2nd October 2011, 13:04
The video post-processing options are what doesn't affect madVR. The desktop color options affect everything. What "white" option are you talking about?

ATI CCC, Video, Video Settings, Brighter Whites

You think this enhanced setting is ok in my projector?

THX-UltraII
2nd October 2011, 13:09
Also just played a movie and during a 2 hour movie 10 frames where dropped, no delayed frames and no presentation glitches. Is this good?

I also see the information:
h264, 8 bit, 4:2:0 -> YV12, 8 bit, 4:2:0.
Does this mean I playback in highgest possible quality?

Andy o
2nd October 2011, 13:25
ATI CCC, Video, Video Settings, Brighter Whites

You think this enhanced setting is ok in my projector?

When I was using the 5770 I didn't find that it made a difference, but in any case, I had pretty much all but inverse telecine and vector adaptive deinterlacing disabled (cause I still used the video options for MC and the postprocessing options are horrible anyway).

Andy o
2nd October 2011, 13:27
Also just played a movie and during a 2 hour movie 10 frames where dropped, no delayed frames and no presentation glitches. Is this good?

I also see the information:
h264, 8 bit, 4:2:0 -> YV12, 8 bit, 4:2:0.
Does this mean I playback in highgest possible quality?

That's the decoder's output into madVR if I'm not mistaken. That just basically is telling you that madVR is doing the RGB conversion which generally speaking is the best option.

THX-UltraII
2nd October 2011, 13:38
ok thxz

Lets move on to the next question :)

madVR has a Display Modes menu where I can list all display modes madVR may switch to. Wht does this mean? Is madVR able to change my reslotion to eg. 1920x1080@25 when I play PAL content and switch to 1920x1080@29,97 when playing TV content?

Also there s a box I can check that says treat 25p movies as 24p. I use ReClock and I assume this box will only work when NOT bitstreaming? Because the author of ReClock always told in the past that it is simply not possible to play 25fps material @23,976 when you send the audio digital (bitsteam).

pirlouy
2nd October 2011, 14:18
THX-UltraII, open your own thread please. Think about Madshi when he'll have to read all the thread...

dansrfe
3rd October 2011, 06:17
THX-UltraII, open your own thread please. Think about Madshi when he'll have to read all the thread...

Yeah I agree...

BeNooL
3rd October 2011, 12:03
And another strange thing that I just noticed:

When I choose RGB Full in the ATI ccc my computer (ATI ccc) is switching back automatically to YCbCr 4:4:4 Pixel Format after 30 seconds or so......

EDIT: Switches back to 4:2:2 and not 4:4:4

Yes ATI CCC is a nightmare.

One thing that seems to help to lock Pixel format is to change resolution right after you change the Pixel format.

Neeto
3rd October 2011, 12:29
Yes ATI CCC is a nightmare.

One thing that seems to help to lock Pixel format is to change resolution right after you change the Pixel format.

It took me a while to find this,

1. Stop AMD external event service,
2. disable GPU scaling
3. change Pixel setting settings,
4. reboot and
5. enable service

THX-UltraII
3rd October 2011, 13:02
It took me a while to find this,

1. Stop AMD external event service,
2. disable GPU scaling
3. change Pixel setting settings,
4. reboot and
5. enable service

thxz. What just worked for me:

- Change Pixel settings and reboot within 30 seconds. After reboot the Pixel setting does not switch back anymore.

JarrettH
3rd October 2011, 18:43
What does 'run presentation in a separate thread' and 'limit rendering times to avoid glitches' do exactly?

I get quite a lot of presentation glitches while playing back DVDs. Every 5 min or so the motion will be noticeably choppy for a few seconds. Of those two options, the latter reduced the amount of glitches much more.

golagoda
4th October 2011, 02:09
What does 'run presentation in a separate thread' and 'limit rendering times to avoid glitches' do exactly?

I get quite a lot of presentation glitches while playing back DVDs. Every 5 min or so the motion will be noticeably choppy for a few seconds. Of those two options, the latter reduced the amount of glitches much more.

https://secure.wikimedia.org/wikipedia/en/wiki/Thread_%28computer_science%29

Edit: Just some settings you might want to try messing around with.. they helped with playback for me.

I've noticed personally that in rendering -> Exclusive mode settings unchecking delay switch to exclusive mode and increasing the amount for 'how many video frames shall be presented in advance' helps with playback immensely, so I'd recommend messing around with those a bit to see what works better for you.

In rendering -> windowed mode settings increasing 'how many backbuffers shall be used' may also help, but if I remember correctly I only did it by one so try changing that and see how it works out.

I also noticed that for the 'when and how shall the GPU be flushed:' changing flush to 'flush & wait (sleep)' in the 2nd drop down list in windowed mode settings and exclusive mode settings helps.

JarrettH
4th October 2011, 02:34
Thanks for the tips golagoda :cool:

Do you mean to change windowed and exclusive to:

flush & wait (sleep)
flush & wait (sleep)
don't flush
don't flush

By default "...after intermediate render steps" is Flush

golagoda
4th October 2011, 04:18
Thanks for the tips golagoda :cool:

Do you mean to change windowed and exclusive to:

flush & wait (sleep)
flush & wait (sleep)
don't flush
don't flush

By default "...after intermediate render steps" is Flush
I have flush for the first one.. I probably should have tried explaining it a bit better but I've always failed at writing so here are screenshots of my settings that work extremely well for me at least, and I'm on a crappy computer.

General settings - http://i.imgur.com/wVV62.jpg (The 'delay playback until render queue is full' setting would probably help you more if it was enabled but I have it disabled.)

Exclusive mode - http://i.imgur.com/pN5f9.jpg ( Having 'present several frames in advance' set to disabled would also probably help you more if it was disabled but I have it enabled.)

Windowed mode - http://i.imgur.com/DcMaJ.jpg

I also use LAV CUVID (Which has since been merged into LAVFilters) since I have a Nvidia GPU which helps immensely, so if you aren't using that already and have a Nvidia GPU definitely use that.

JarrettH
4th October 2011, 06:26
What I've done...

Backbuffers 3 --> 4

Frames presented in advance 4 --> 6

enabled: 'limit rendering times to avoid glitches'

This seems to have eliminated 95% of presentation glitches.
Why is enabling that certain option not recommended? I have to wonder :p

Using a GT240 (GDDR5) fyi

6233638
4th October 2011, 17:34
What I've done...

Backbuffers 3 --> 4

Frames presented in advance 4 --> 6

enabled: 'limit redering times to avoid glitches'

This seems to have eliminated 95% of presentation glitches.
Why is enabling that certain option not recommended? I have to wonder :p

Using a GT240 (GDDR5) fyiAs far as I know, no-one has reported that option causing problems with playback, at least on Nvidia systems. (don't know that anyone with AMD has tried it)

I posted the question about whether it should be enabled by default before, but I think it got overlooked.

Because I have plenty of RAM, I just set the maximum number of buffers available, and that option combined with the DX11 rendering path fixed all the presentation glitches for me.


I used to have to mess around with the flush settings on my old build (Nvidia 9400) to get smooth performance, but since the exclusive mode was added (and a few builds later) the default settings seem to work best. Before the "limit rendering times" option was added, the flush settings did nothing to fix the presentation glitches with my GTX570.

nevcairiel
4th October 2011, 17:49
I actually get glitches if i use 16 buffers, 12 seems to be the sweet spot for me right now.
Combined with "use a separate device for presentation" (but not DX11), flushing: dont/flush/flush/dont and "limit rendering times to avoid glitches", its pretty much perfect now. :)

Default settings used to glitch on non-matched refresh rates, be it 25p at 50Hz, or even 24p at 60Hz, but these are perfect.

The only problem i have right now is that after playing some files consecutively without closign the player, exclusive mode fails. Restarting the player fixes it ...

This is on a GTS450

SamuriHL
4th October 2011, 18:04
I'll have to try that, Nev. I'm still getting some glitches with my settings on my 450. Sounds like you found the "magic". :)

Andy o
4th October 2011, 19:30
I'm on a GTX460 768MB, with 258 drivers Win 7-64. I have to enable "limit rendering times" and "overshoot max frame latency" to avoid glitches, but if I enable "run presentation on a separate thread", I get a lot of dropped frames after seeking sometimes. Luckily the other two settings are sufficient to avoid glitches for most content. On some content though (it was a 30p file played at 60Hz) my present queue drops slowly and after that I still had periodic glitches, until I enabled D3D11 and the present queue stays full then.

nevcairiel
4th October 2011, 19:33
D3D11 works for playback for me as well, however its somewhat unusable because exiting FSE doesnt re-draw the desktop or the player properly.

I've had the queues dropping low problem as well with some settings, but the current setup is working just nice. :)

dansrfe
4th October 2011, 22:19
madshi needs to come back and read the thread...way too much has happened.

Thunderbolt8
4th October 2011, 22:38
Im sure hes reading, but just not answering or doing any more than making notes

QBhd
5th October 2011, 05:20
The only problem i have right now is that after playing some files consecutively without closign the player, exclusive mode fails. Restarting the player fixes it ...



I have the exact same thing... it also seems to always happen after playing a SD AVI and then switching to a 720p MKV. But like you it also happens after 3 or more 720p MKV's are played back to back to back...

QB

ryrynz
5th October 2011, 06:38
madshi needs to come back and read the thread...way too much has happened.

He's active in other threads, so it's more than likely as Thunderbolt has suggested.

QBhd
5th October 2011, 07:18
He's active in other threads, so it's more than likely as Thunderbolt has suggested.

Active?? 7 posts in September and the last one 13 days ago. I don't think that's active. But he has a life and things need to get done. I'm just looking forward to when he comes back. He and nev rock :)

QB

ryrynz
5th October 2011, 08:23
He's certainly posting in other threads more than here and he's not dead so that counts as active to me ;)
Perhaps your interpretation of active is a lot more active than mine, but when you've seen projects go months or years without developer input your view on what's active or not changes a lot!
Anyway best not to let this thread degenerate into chaos due to a few measly weeks without a post from Madshi, let us remain calm :P

I'm just looking forward to when he comes back. He and nev rock :) QB

Agreed, they've really improved the HTPC experience a lot, I would be happy to pay for their software.

jmone
5th October 2011, 11:18
I actually get glitches if i use 16 buffers, 12 seems to be the sweet spot for me right now.
Combined with "use a separate device for presentation" (but not DX11), flushing: dont/flush/flush/dont and "limit rendering times to avoid glitches", its pretty much perfect now. :)

Default settings used to glitch on non-matched refresh rates, be it 25p at 50Hz, or even 24p at 60Hz, but these are perfect.

The only problem i have right now is that after playing some files consecutively without closign the player, exclusive mode fails. Restarting the player fixes it ...

This is on a GTS450

+1 - what is the story of Exclusive Mode fail.... I can not seem to eliminate it. That said I also find that enabling "delay playback start until render queue is full" helps when it falls back to windowed mode.

golagoda
5th October 2011, 12:43
Hmm... while we're somewhat on the topic of settings what scaling algorithms do you all use for madVR?

I'm currently trying out 'SoftCubic' with softness set to 60 for each option, I honestly don't notice that much difference between different scaling algorithms and haven't tested it out too much but there's always room for improvement and testing out other settings has helped me find ways to improve playback greatly, for example the settings nev said earlier work amazingly :p

nevcairiel
5th October 2011, 12:54
I use Lanczos 4-taps for both Luma variants, and SoftCubic 60 for Chroma.
Lanczos produces a bit sharper image when watching SD content, which i've been doing alot lately.

SamuriHL
5th October 2011, 13:00
I use Lanczos 4-taps for both Luma variants, and SoftCubic 60 for Chroma.
Lanczos produces a bit sharper image when watching SD content, which i've been doing alot lately.

That's what I've been using as well.

Sent from my DROID BIONIC using Tapatalk

QBhd
5th October 2011, 15:56
I was using the defaults and it seemed the best, but I will give a go at the SoftCubic 60 for Luma and see if it makes a difference since I have not tried changing just that one alone.

QB

dansrfe
5th October 2011, 16:24
I user Softcubic 60 for chroma and Spline 4 taps for luma up/down scale.

naoan
5th October 2011, 16:37
I like softcubic 100 for chroma upsampling and spline36 (3 taps) for luma up/downsampling.

Rain1
5th October 2011, 16:39
I actually get glitches if i use 16 buffers, 12 seems to be the sweet spot for me right now.
Combined with "use a separate device for presentation" (but not DX11), flushing: dont/flush/flush/dont and "limit rendering times to avoid glitches", its pretty much perfect now. :)

Default settings used to glitch on non-matched refresh rates, be it 25p at 50Hz, or even 24p at 60Hz, but these are perfect.

This is on a GTS450

Thanks for your experiment with the setting. I tried yours & it works nicely !

nand chan
5th October 2011, 18:04
I use spline 4 taps for luma upscaling and Mitchell-Netravali for chroma.

I tested them all a while back for luma upscaling on 720p content and spline4 is simply the best in my opinion - all of the filters except for lanczos and spline produce noticeable blurriness which is bad when watching anime, and stuff like eg. small signs and text is much sharper and clearer when using lanczos/spline, and the ringing lanczos produces is a bit too noticeable, so I prefer spline.

kennae
5th October 2011, 18:28
I use spline 4 taps for luma upscaling and Mitchell-Netravali for chroma.

I tested them all a while back for luma upscaling on 720p content and spline4 is simply the best in my opinion - all of the filters except for lanczos and spline produce noticeable blurriness which is bad when watching anime, and stuff like eg. small signs and text is much sharper and clearer when using lanczos/spline, and the ringing lanczos produces is a bit too noticeable, so I prefer spline.

When you first said you use Mitchell-Netravali for chroma I tested it and havent changed since. I love the quality.

JarrettH
5th October 2011, 19:11
I like Mitchell for Luma Upscaling and Bucubic 75 for Chroma. I think that also agrees with 6233638. Catmull works well for Luma Upscaling too, just noticeably more ringing. I play a lot of SD movies myself, and personally, since the resolution isn't there to begin with I'd rather end up with a satisfying picture. So Mitchell for SD, Catmull for HD :cool:

nand chan
5th October 2011, 21:00
With the MPC-HC subtitle position bug now fixed (https://forum.doom9.org/showthread.php?p=1530243#post1530243), I'm going to renew interest in the issue of subtitles not being color corrected (http://img839.imageshack.us/img839/2249/colorsubs.png).

This is the current most major problem with the internal subtitle renderer - the fact that VSFilter simply blends in with the video better because subtitles are color corrected along with the video, where as something like gamut mapping or gamma correction makes subtitles stand out.

If I understand things correctly, video content gets upscaled / converted etc. before all color management happens, and the subtitles simply get rendered on at the end. So it can't possible hurt to simply render the subtitles before applying color management and gamma correction, right? There's no information to destroy, after all - no spatial processing is performed after RGB conversion.

Nevilne
5th October 2011, 21:12
Why do you ask madshi to fix mpc-hc problem??

pankov
5th October 2011, 22:27
Nevline,
what exactly do you call a "mpc-hc problem"?
What nand chan is asking for makes sense to me even if it's not that important for most of the HTPC users because the problem is mostly/only visible on anime where they use very advanced subtitle rendering. For the rest, like me, the subs are just "simple white letters" rendered over the movie and if the white is not exactly white I can live with it.

pirlouy
5th October 2011, 22:39
I think Nevilne meant the color problem was a MPC-HC subtitle renderer, and Madshi is not interested in fixing it (especially if he is very buggy).
But maybe nand chan meant it is a madVR bug.

I'm a good mediator. :D

Nevilne
5th October 2011, 23:10
Traditional way of handling SSA subtitles is to render subtitles on video image in-between decoder and renderer
(vsfilter, ffdshow)

Subtitles can also be rendered on vmr surface independently from video image.
This gives some advantages such as untouched source, desktop subtitle resolution even for sd video,
and some drawbacks, like subtitle flicker and not liking every renderer.

Afaik rendering SSA like that is only possible with mpc-hc and "borrowed" code from mpc-hc (kmplayer, potplayer)

My point is that I assume that renderer is not responsible for content outside picture from decoder, like various osd content, player ui and vmr subtitles (though I'm probably wrong because I remember madshi talking about this)

____
edit: we're over 500 pages, madvr ftw!

pankov
5th October 2011, 23:17
yes, you are correct in general, but the problem happens when the renderer performs color correction of the picture only from the decoder and not from the subtitles input pin. This results in different colors of the subs and the image bellow. As I said before it's not a problem with normal subs but could be very ugly with complex SSA subs that have specially designed backgrounds that should exactly match the color from the video frame from the decoder.
I hope now you understand what nand chan is talking about.

Nevilne
5th October 2011, 23:27
I agree and I use vmr subtitles as well, I just don't see it as top priority over other madvr improvements.

pankov
5th October 2011, 23:34
I don't see it as priority too - I was just trying to clear nand chan's request
:)

nand chan
6th October 2011, 16:34
I think Nevilne meant the color problem was a MPC-HC subtitle renderer, and Madshi is not interested in fixing it (especially if he is very buggy).
But maybe nand chan meant it is a madVR bug.

I'm a good mediator. :D

It's a bug with madVR as has been mentioned earlier - the subs are passed directly to madVR in RGB32 format, and madVR renders them on top of the video.

MPC-HC doesn't touch the video stream at all. madVR is the component that should be color correcting the subtitles it gets from MPC-HC, since madVR is also the component that color corrects the rest of video. Color correction is part of the rendering process.

It may not be a high priority for others, but it's probably a one line change for madshi (or otherwise just a copy paste).

You could also provide a checkbox to turn it on in the tweaks section.

TheShadowRunner
6th October 2011, 21:01
Hi madshi,
I sometimes experience a madVR bug that completely freezes ZP. I can't replicate it with the other renderers (VMR9/EVR).
It happens after a frequency switch while media playback is starting, using madVR's internal frequency switcher. (tried madVR switching, manual switching, ReClock switching, makes no difference..).

Using ZP8 prefinal 23 + latest madVR (v0.74), default settings.
XP SP3/ nVidia 285.38

What happens is: I open media, madVR detects framerate and changes frequency accordingly (from 720p60 to 720p24 with this test media). Now under 720p24, sometimes interacting with ZP's control bar (seeking media) will completely freeze the app.
Right before this happens, the ZP control bar (fullscreen) is drawn slowly onto the screen, it lags a lot.
It happens with any video stream/decoder. My test video is a simple XVID .avi file and I could reproduce the issue with ffdshow, LAV Video or even standalone Xvid decoder.

It seems to happen only when ZP's option "Display OSD through madVR's OSD API" is disabled.

How to reproduce:

1. In ZP settings, at "Playback" > "Video", disable "Display OSD through madVR's OSD API"
(Note: the "Video covers entire display area" option and madVR's FSE feature have NO impact on this bug, it happens regardless if FSE is totally disabled in madVR or not.)

2. Start playing a video, exemple: an XVID .avi file (decoded by ffdshow or LAV.. same results)

3. While the movie is playing, switch the frequency of the display. (exemple 720p60 to 720p50 or 24)

4. Now in ZP, go fullscreen and bring the control bar.

5. More often than not at this point the issue can be seen: the control bar is drawn slowly onto the screen, you can see its skin elements being drawn one by one (http://videoff7.free.fr/madvr_zp__bad.avi).
If you scroll the control bar at this point, for say 20 seconds, it will completely freeze ZP.
Killing the ZP process manually is needed.

If after going fullscreen the control bar is OK for you, please switch the frequency a couple times more [while movie is playing] to try and reproduce the issue, for exemple go back to 720p60 and then again to 720p50 or 24), then go in fullscreen and bring the control bar again to see.

It happens not _always_, but often enough to be really annoying. XD

A few things that I found while testing:
-It only happens with madVR, couldn't fault the other renderers.
-It seems to only happen when ZP's "Display OSD through madVR's OSD API" disabled.
-It happens regardless of video decoder.
-It happens regardless if ZP "resumes media playback from last point" or not.
-When the control bar/ZP is in this weird slow state, if I just close and restart media playback (not ZP !) or open another media, the bug disappears (no more laggy ZP/freeze due).
-It happens regardless if the frequency is switched manually (via shortcuts, nv control panel), or automatically (Reclock or madVR's internal frequency switcher).
-I tried down to madVR build 050, the issue is present too.

Sorry for the length, it's one of those annoying ones to reproduce :rolleyes:

I enclose a madVR DEBUG log.
For this log, I just open ZP, bring it fullscreen and start media playback. After madVR switches the frequency, I bring the ZP control bar and scroll for 3 few seconds. ZP freezes completely. The log stops after I killed ZP process manually. Total time around 8 seconds.

I hope you can look into it and hopefully it won't be hard to track down! :scared:
Later,

TSR

Edit: alternative link for the log (http://videoff7.free.fr/madVR_freeze_ZP - log.zip).

Thunderbolt8
6th October 2011, 22:40
better upload the log elsewhere, sometimes it can take quite long until stuff gets approved

TheShadowRunner
6th October 2011, 23:12
better upload the log elsewhere, sometimes it can take quite long until stuff gets approved
Thanks, could help, although I'm not sure madshi follows the thread at all XD