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

LoRd_MuldeR
6th March 2012, 19:48
@HitomiKun and LoRd_MuldeR,

can you please try whether this build improves the situation for you?

http://madshi.net/madVR82e.zip

Nope, still no difference :o

Though I noticed that the window icon is NOT lost, when I first right-click to open the context menu (so it will exit "exclusive" mode, but remains fullscreen) and then uncheck "full screen".

If I exit from fullscreen via Ctrl+Enter, as I do usually, the window icon is lost reproducible.

Also note that the minimize/maximize/close buttons are lost only, if MPC-HC was maximized before the fullscreen mode is entered. Otherwise they seem to remain...

madshi
6th March 2012, 20:28
FSE to windowed works a lot better than before for me (both ways) on JRiver. Thanks for that!
Good to hear.

Btw I've noticed (not specific to this version) that the FSE seek bar doesn't work on JRiver. Instead, moving the mouse to the bottom of the screen makes madVR go into windowed mode and display the same overlay as when you move the mouse to the top of the screen. So I've disabled the seek bar in madVR settings and got used to it. Still, I liked having that tiny seekbar in FSE on MPC.
There's probably a way to configure this in J.River MC somewhere, but I don't know where/how.

Nope, still no difference :o

Though I noticed that the window icon is NOT lost, when I first right-click to open the context menu (so it will exit "exclusive" mode, but remains fullscreen) and then uncheck "full screen".

If I exit from fullscreen via Ctrl+Enter, as I do usually, the window icon is lost reproducible.

Also note that the minimize/maximize/close buttons are lost only, if MPC-HC was maximized before the fullscreen mode is entered. Otherwise they seem to remain...
Oh well, I spent half the day trying to fix that. I had the problem for a while here, too. And I thought I had fixed it, at least currently the problem doesn't seem to show on my HTPC (win7 x64). I have Aero turned off, though, maybe that makes a difference? I don't really know what else to do. The problem is that Direct3D requires a top level window handle, and that's the MPC-HC main window. madVR is only a child window and as such isn't good enough for D3D exclusive mode. Unfortunately D3D11 likes to play around with window styles, and so the buttons sometimes get lost. I don't really have any control over that. I've been trying to manually restore the buttons and it sometimes works, but seemingly not always. Don't know right now what else to do... :(

ryrynz
6th March 2012, 20:31
Freezing fixed with 0.81 and MPC 4128. Cheers.

LoRd_MuldeR
6th March 2012, 20:39
Oh well, I spent half the day trying to fix that. I had the problem for a while here, too. And I thought I had fixed it, at least currently the problem doesn't seem to show on my HTPC (win7 x64). I have Aero turned off, though, maybe that makes a difference? I don't really know what else to do. The problem is that Direct3D requires a top level window handle, and that's the MPC-HC main window. madVR is only a child window and as such isn't good enough for D3D exclusive mode. Unfortunately D3D11 likes to play around with window styles, and so the buttons sometimes get lost. I don't really have any control over that. I've been trying to manually restore the buttons and it sometimes works, but seemingly not always. Don't know right now what else to do... :(

If you don't already do that, I would think of calling GetWindowLong() to "backup" the old styles before initializing "exclusive" mode and then restore them with SetWindowLong() after "exclusive" mode has exited completely. Another idea that comes to my mind: Create your own "dummy" top-level window for "exclusive" mode rather then abusing MPC-HC's window for that. Don't know if that idea is feasible though...

Probably you know that, but SetWindowPos() has to be called after SetWindowLong() to make the changes take effect

madshi
6th March 2012, 20:40
madVR v0.82.2 released

http://madshi.net/madVR.zip

* fixed: SoftCubic was stuck on "softness: 50" (introduced in v0.82)
* fixed: in certain situations there was a new freeze (introduced in v0.82)
* fixed: PotPlayer crashed sometimes when turning audio processing on/off
* fixed: option "if in doubt activate deinterlacing" didn't work properly

madshi
6th March 2012, 20:44
If you don't already do that, I would think of calling GetWindowLong() to "backup" the old styles before initializing "exclusive" mode and then restore them with SetWindowLong() after "exclusive" mode has exited.
Yeah, I'm already doing something very similar.

Another idea that comes to my mind: Create your own "dummy" top-level window for "exclusive" mode rather then abusing MPC-HC's window for that. Don't know if that idea is feasible though...
That is problematic because of multiple reasons. One of them being that madVR automatically needs to leave FSE mode when the user opens a settings dialog or something. The MPC-HC settings dialogs usually have the MPC-HC main window as their parent, so they appear in front of the MPC-HC window. If I make my own top level window (which is also topmost) the MPC-HC settings windows would be behind it, and madVR would not leave FSE mode. Another problem is that MPC-HC has to draw a context menu if the user right clicks on the madVR window. Not sure if I can make that work if the window is my own and not MPC-HCs. Next problem: MPC-HC manages the madVR rendering window, setting up the parent etc through DirectShow interfaces. If I create my own top-level window, I'd have to work against what MPC-HC is telling the DirectShow interfaces. And these are just a couple of problems that come to my mind right now. I'm sure there are more...

HitomiKun
6th March 2012, 20:45
I'm not quite sure how to install pure .ax files.
I tried regsvr32 and just moving them inside my madVR folder and starting install.bat, both didn't work.

HitomiKun
6th March 2012, 20:56
I just tested the newest build and on fullscreen leave I get a constant black screen. Audio is still running in the background though but I can't do anything and I can't see anything. Alt+F4 does not work and the only way to get out of the black screen is by pressing Ctrl+Alt+Del and opening TaskManager.

I also get a REALLY strange feeling that the frame res has been cropped unintentionally. I gonna retest this with older versions and approve this.
Edit: sorry was just my imagination LOL I've been away doing stuff and now I'm back testing all these builds, btw I just got a error messagebox from madVR but it disappeared too fast for me to view.

sneaker_ger
6th March 2012, 21:00
Still freezing for me on ctrl+e in FSE mode with MPC-HC 4128 and madVR 0.82.2:
http://www.mediafire.com/?9bxnwa4bh2fsvvh (madVR log and trace with the tool, the "break" key combo didn't work)

LoRd_MuldeR
6th March 2012, 21:01
I noticed another issue with MPC-HC r4128 and MadVR v0.82.2:

If I do "File" -> "Close" while a video is still playing, then all controls are disabled as if the video had been closed. But the video continues to play! If I then open another video, MPC-HC will stop responding.

No idea if that is a MadVR or MPC-HC problem. At least I can say that it doesn't happen with other renderers...

HitomiKun
6th March 2012, 21:03
Okay madshi I managed to send the report through the error messagebox that appeared with the new build on fullscreen leave. Check your email ;)
The errorbox only appeared in one video though, all the other videos I've been testing that had 1080p res just freeze with an blackscreen that I can't leave. (I can only leave with crtl+alt+del ofc)

Andy o
6th March 2012, 21:17
I noticed another issue with MPC-HC r4128 and MadVR v0.82.2:

If I do "File" -> "Close" while a video is still playing, then all controls are disabled as if the video had been closed. But the video continues to play! If I then open another video, MPC-HC will stop responding.


Same here, it doesn't happen with 0.82d.

Plutotype
6th March 2012, 21:18
Freezing fixed with 0.81 and MPC 4128. Cheers.

Confirmed here also. MPC-HC R4128 with 0.81 working fine. Starting playback with the MPC-HC option fullscreen turned ON or from XBMC is working flawlessly, the madVR display changer executes the freq change correctly.

Will test 0.82.2 now.

sneaker_ger
6th March 2012, 21:22
Oh, and I'm also having the following problems (MPC-HC 4128 + madVR 0.82.2):

In window mode:
Pressing ctrl+c makes mpc-hc seemingly close the file and stop playing (resize to "empty" mpc-hc, all buttons but "play" get grayed out"), but playing actually continues.

Still in window mode:
ctrl+e make the playback stop, but MPC-HC does not freeze and can be closed by pressing "X".

Still in window mode:
Trying to switch to another file while playing, results in the same problem as ctrl+e

HitomiKun
6th March 2012, 21:24
Okay madshi I've sent you 3 reports through the error message box. the last report was really tricky so don't wonder about the report details on the bottom that say "asd", this is a new crash that happens on MPC-HC close now. Really strange stuff.

madshi
6th March 2012, 22:13
madVR v0.82.3 released

http://madshi.net/madVR.zip

* fixed: Ctrl+C / File Close didn't work in MPC-HC (introduced in v0.82)
* fixed: Ctrl+E in MPC-HC didn't work (introduced in v0.82)
* fixed: finalization crash due to stupid bug (introduced in v0.82)

sneaker_ger
6th March 2012, 22:18
Thx.
All my reported problems seem to be fixed.

Budtz
6th March 2012, 22:48
Seems 0.82.3 has fixed my issues as well. the other 82 versions were very unstable to me. so thx for the good work:)

xiulet
6th March 2012, 23:00
With which madVR version? I'm currently working on stability. It's quite possible that the freeze you're experiencing has a different cause. Please post a freeze report in the madVR thread, then I can say for sure.


i donwloaded madvr 0.82.3, but mpc-hc is showing that is the 0.82 version.

exclusive mode change only works when i pause de video and when i do it from right menu playing video.
i discover that this problem happens if USE D3D11 FOR PRESENTATION is activated, when not, exclusive change works correctly.

But in the past( few days ago) i was using this option with no problem.

thanks my friend.

Plutotype
6th March 2012, 23:02
0.82.3 working ok ( playback start with display changer ). Tried different situations - 60 to 23, 23 to 24 etc.

Im so happy that this has been resolved and that madshi has put his effort especially on the MPC-HC forum and instructed Aleksoid to fix things in the player code. Better than any tech support on the world.:thanks:

Budtz
6th March 2012, 23:47
Madvr seems faster and more stable now when switching to the next file in the folder while in exlusive mode. This has been unstable in the past with some versions being better then others. Could this be because of the changes made in 0.82?

FlashGordon
6th March 2012, 23:55
I have a quick question. When I play fully progressive NTSC DVDs with IVTC enabled, there is a discrepancy between the reported cadences when I use different decoders. For example, if i use libmpeg2 from ffdshow, madvr reports 2:2 cadence, and using LAV Video it reports 3:2. Why is that? Also, since I use Reclock and output at 24Hz, shouldn't it report 1:1? Just confused is all

HitomiKun
7th March 2012, 00:31
All my problems are gone now with the new build. Good job madshi and awesome work! Thank you ;)

ajp_anton
7th March 2012, 00:58
i donwloaded madvr 0.82.3, but mpc-hc is showing that is the 0.82 version.Same here. Maybe you just didn't include the last number, but it would be nice to know it actually is the newest version.
Also, could you add the version number somewhere in the settings editor too when accessed via the taskbar icon? =)

Pat357
7th March 2012, 01:41
Madshi,

I just send another bug report from v0.82.3 : I still get freezes/crashes when going to the next file in a directory.

It doesn't happen every time (as it did with v0.81), but the problem is still there.

Madvr 0.82.3 / MPC-HC 4128 / NV GTX-570 / latest WHQL drivers .295.73 / i7 -970

madshi
7th March 2012, 08:25
@Everyone, glad to hear that we're getting nearer to stability.

exclusive mode change only works when i pause de video and when i do it from right menu playing video.
i discover that this problem happens if USE D3D11 FOR PRESENTATION is activated, when not, exclusive change works correctly.
Can you explain in more detail how it does not work right now? What happens exactly? Does your computer explode? Or maybe something else? Please describe as detailed as possible. If you have a freeze -> please create a freeze report and send it to me. If you have a crash -> please send the crash report to me. If it's neither a freeze nor a crash, maybe a debug log could help.

Madvr seems faster and more stable now when switching to the next file in the folder while in exlusive mode. This has been unstable in the past with some versions being better then others. Could this be because of the changes made in 0.82?
Yes. The primary purpose of v0.82 was to increase long term stability. The changes were very deep, though, that's why there were new short term problems. The speed increase is a side effect of some bugfixes and minor improvements I did on the way.

I have a quick question. When I play fully progressive NTSC DVDs with IVTC enabled, there is a discrepancy between the reported cadences when I use different decoders. For example, if i use libmpeg2 from ffdshow, madvr reports 2:2 cadence, and using LAV Video it reports 3:2. Why is that? Also, since I use Reclock and output at 24Hz, shouldn't it report 1:1? Just confused is all
Please make sure you use an up-to-date ffdshow build. There was a bug in ffdshow not too long ago which stopped it from reporting specific flags properly. haruhiko_yamagata has fixed it recently. Also make sure you configure ffdshow correctly: Turn off "Decoder options -> Soft telecine".

Your DVD was most probably encoded as 24p with soft-telecine flags (some of the frames carry a "repeat first field" flag). madVR's IVTC algorithm interprets this field as if there were an additional field encoded in the video stream. That's why it's 3:2 and not 2:2. Hardware DVD player devices actually duplicate one of the fields when the "repeat first field" flag is set, before sending the data to the display, when the output mode is set to 60i.

It's not 1:1 because the numbers indicate the number of fields per frame. A frame always must have at least 2 fields, otherwise it would be video mode (instead of film mode) and would require a video mode deinterlacing algorithm like e.g. YADIF. Native interlaced video is practically 1:1. IVTC doesn't work for that.

I just send another bug report from v0.82.3 : I still get freezes/crashes when going to the next file in a directory.
Got them and fixed all of them. However, in one crash report's comment you wrote:

"The 0.82.3 version did'nt switch to the propriate freq : the display remained on 60 Hz, even when playing 23.976 stuff.
I have 48Hz, 50Hz and 60Hz configured."

I need a debug log from v0.82.3 which shows how it doesn't switch to 48Hz although it should. Please also let me know which display mode changer settings you're using exactly. Thx.

703
7th March 2012, 10:47
Any chance of making a settings screen in MadVR where I can set the default matrix co-efficient and color space (primaries) for SD videos - instead of leaving it for best guess? Or some kind of changable default behaviour for best guess.

There seems to be an increasing number of SD resolution videos out there who uses bt.709 for matrix and primaries, because they are off HD sources and left as-is, without following the industry convention.

madshi
7th March 2012, 10:54
Any chance of making a settings screen in MadVR where I can set the default matrix co-efficient and color space (primaries) for SD videos - instead of leaving it for best guess? Or some kind of changable default behaviour for best guess.
I guess I could add an option to force specific matrix and primaries for *all* videos. I could add this without touching the settings dialog by simply allowing you to "store" forced matrix and primary settings through shortcut keys + [F2].

Making such a setting available only for SD content, but not for HD content, would be much more complicated, though. For that I'd have to add options to the settings dialog, which IMHO would make things much harder to understand. And most people wouldn't use/need this functionality. So I don't really like that idea.

There seems to be an increasing number of SD resolution videos out there who uses bt.709 for matrix and primaries, because they are off HD sources and left as-is, without following the industry convention.
And I guess these don't have the proper matrix/primaries stored anywhere? How do you know then which the proper matrix/primaries are?

Let's say there were such an option as you're asking for: It would result in that you'd get incorrect matrix/primaries for all original MPEG2 PAL and NTSC DVDs. Does that really make sense!?

DragonQ
7th March 2012, 12:06
The Blu-Ray spec doesn't allow 25p, it only allows 50i, as far as I know. Ok, I guess you can encode 25p with telecine flags. Anyway, topic closed, I bowed to the majority vote. So no need to discuss this any further.
FWIW, 25p can be done on BD using 25 PsF (progressively segmented frames), which is essentially 25p inside a 25i stream. That's the way films and dramas have been shown on TV for years.

Players *should* detect whatever flag signifies this and output 25p but those that don't will simply output as 25i and you'll end up with it being deinterlaced to 50p with every frame shown twice. Probably no disernable difference in quality between the two methods with a good deinterlacer though.

madshi
7th March 2012, 12:20
FWIW, 25p can be done on BD using 25 PsF (progressively segmented frames), which is essentially 25p inside a 25i stream. That's the way films and dramas have been shown on TV for years.
Some PAL TV stations broadcast that way, others send true 50i even for movies. E.g. when SkyHD Germany switched their hardware decoders 2 years (?) ago, their broadcast encoding changed to truely interlaced encoding.

Players *should* detect whatever flag signifies this and output 25p
The problem is that flags like these are not always reliable. NTSC DVDs and USA broadcasts often switch between soft- and hard-telecine. The same could happen to a Blu-Ray encoding or to a PAL broadcast. E.g. when SkyHD Germany still broadcasted with their old hardware (a couple years back) they usually sent 25 frames per second with interlaced flags, but once in a while in the middle of the movie the encoder switched to fully interlaced encoding for a few seconds. It took me a while to get this fully working in eac3to, so I know this for a fact. Also you can never know, some documentaries may have natively interlaced sections (50i) and natively progressive sections (25p). Not sure how this would be encoded for a Blu-Ray.

Basically that means that a Blu-Ray player which wants to be robust against such problems might opt not to rely on flags and instead always output 50i instead of 25p for Blu-Rays. Or alternatively run the stream through a deinterlacer and then output 25p/50p.

BTW, only few TVs understand 1080p25 in the first place, so in the end the more usual practice will be to output either 50i or 50p.

DragonQ
7th March 2012, 12:39
Some PAL TV stations broadcast that way, others send true 50i even for movies. E.g. when SkyHD Germany switched their hardware decoders 2 years (?) ago, their broadcast encoding changed to truely interlaced encoding.

Well they all* send "true" 25i for everything but the source is still progressive so it's 25 PsF, that's my point. Whether they flag it as such is a different matter but like I said, with a good TV deinterlacer, it shouldn't make much difference to the end product.

*The only exceptions I know of are the BBC HD channels that can transmit true 1080p25 and even switch mid-programme when necessary (e.g. the intro to Match of the Day is broadcast as 1080p25, then the stream switches to 1080i25 for the programme itself).

Basically that means that a Blu-Ray player which wants to be robust against such problems might opt not to rely on flags and instead always output 50i instead of 25p for Blu-Rays. Or alternatively run the stream through a deinterlacer and then output 25p/50p.

BTW, only few TVs understand 1080p25 in the first place, so in the end the more usual practice will be to output either 50i or 50p.
I completely agree, flags are notoriously unreliable. I'd imagine most players simply output 1080i25 - I doubt players ever output 1080p50 as it's not in the BD specification and it's also not required for "HD Ready" certified TVs. Not sure about how many HDTVs accept 25p but I know the two in my house do. However, they're probably internally frame doubling to 1080p50.

kerman
7th March 2012, 13:31
The auto-frequency adjusting function is totally automatic? does it get the fps info by the source filter and autoadjust refresh output to it?

Pat357
7th March 2012, 14:02
Got them and fixed all of them. However, in one crash report's comment you wrote:

"The 0.82.3 version did'nt switch to the propriate freq : the display remained on 60 Hz, even when playing 23.976 stuff.
I have 48Hz, 50Hz and 60Hz configured."

I need a debug log from v0.82.3 which shows how it doesn't switch to 48Hz although it should. Please also let me know which display mode changer settings you're using exactly. Thx.
I use the MadVR build in display-mode switcher to adapt the frequence from display to the content displayed.
No other tools are involved : the MPC-HC disp. changer is disabled (it never worked for me).
Yesterday the MadVR display changer stopped working and I clearly saw some red text displayed in the upper left corner :
something like "D3Ddevice initialization failed". (don't remember exact words).

I can still change the display using the Slysoft's "SetDisplayFrequency.exe" however.

I went through a couple of files with different framerates
Here is the Madvr v0.82.3 log :
http://www.mediafire.com/?o5y5hlwuwk9w3db

madshi
7th March 2012, 14:54
madVR v0.82.4 released

http://madshi.net/madVR.zip

* fixed: 2 more finalization crashes
* fixed: display mode changer stopped working after a 2nd video file was loaded
* fixed: filter properties dialog didn't show the full madVR version number
Any more (big) problems left, guys?

vivan
7th March 2012, 16:05
Me again with notebook with nVidia optimus and freezes.

I have acer 3830TG which has integrated (SB) and nVidia GPU. With iGPU everything is ok, except 1080p 60fps video, it's just too slow for that. nVidia GPU is fast enough, but... After ~30 seconds video freezes. Also in exclusive mode it has a lot of dropped frames (so video looks like 5 fps), though madVR OSD says that everything is ok.
Logs: http://www.mediafire.com/?gatoxb3llozedek
"1_madVR - log" is in windowed mode. When video freezed - "1_madVR - freeze report (1)".
"2_madVR - crash report" is in exclusive mode. When video freezed, madVR crashed. So "2_madVR - crash report".
Hope new logs could help to sort out the problem.

madshi
7th March 2012, 16:28
I have acer 3830TG which has integrated (SB) and nVidia GPU. With iGPU everything is ok, except 1080p 60fps video, it's just too slow for that. nVidia GPU is fast enough, but... After ~30 seconds video freezes. Also in exclusive mode it has a lot of dropped frames (so video looks like 5 fps), though madVR OSD says that everything is ok.
Logs: http://www.mediafire.com/?gatoxb3llozedek
"1_madVR - log" is in windowed mode. When video freezed - "1_madVR - freeze report (1)".
"2_madVR - crash report" is in exclusive mode. When video freezed, madVR crashed. So "2_madVR - crash report".
Hope new logs could help to sort out the problem.
The freeze report and debug log don't show me anything that looks wrong to me, except that suddenly out of the blue after about 30 seconds one the Direct3D APIs stops working, which has worked just fine the past 30 seconds. I can't see any obvious reason for that. Of course there's always a chance that there's a bug in madVR somewhere that causes this, but looking at that log I rather think the problem is with the GPU driver.

Interestingly, the crash happens in the "same" API that fails in the freeze. Well, it's not really the same API. The freeze occurs in D3D9, while the crash happens in D3D11. But in both cases the problem occurs when trying to copy a rendered frame into the D3D backbuffer. I don't know what's going on there, but I do think it's a GPU driver problem. The crash happens in an NVidia dll, not directly in madVR.

If exclusive mode doesn't perform well for you, you could different settings. E.g. try different flush settings.

But above all: Try different GPU drivers!

TheShadowRunner
7th March 2012, 16:50
Hi madshi, I could recreate the cosmetic oddity I experience with builds after 0.80.
It's only cosmetic and madVR works otherwise perfectly fine, not a big bug by any means.

In effect, after playing a couple videos, instead of seeing the "Exclusive" pop up on the top-left corner of the screen indicating that madVR is going in FSE, the whole screen is just going black for like 0.2 second when madVR goes into FSE. The "Exclusive" pop-up never shows up. After the black screen, playback continues just fine.

It seems the "Exclusive" pop-up is just replaced by a black frame.

Here is a log that I tried to make as short as possible, but sadly when I try to make it shorter the issue doesn't happen!
In this log, the bug happens the very last time madVR goes into exclusive mode. Earlier, the "Exclusive" pop-up shows up just fine.
http://videoff7.free.fr/madVR_TSR_cosmeticFSE.zip
Can you see anything strange?
See you,

TSR

madshi
7th March 2012, 16:59
@TheShadowRunner, the "Exclusive" pop-up is only supposed to show when you switch from one mode to the other. However, if a display mode change is involved, too, madVR might instead of just switching release the old Direct3D stuff and re-create everything. In that case the pop-up might not appear. Bla bla, I think what I'm saying is too complicated. Anyway. The key point is: Depending on whether madVR just puts Direct3D into a different mode, or whether it totally re-creates the Direct3D device, the pop-up might appear or not. That might not make too much sense, though, so maybe I should redesign that. I'll put that on my to do list. But it's pretty near the bottom there... ;)

TheShadowRunner
7th March 2012, 17:06
Thanks for your super fast reply.
But the issue isn't that the Exclusive pop-up does not show up. It is that it is replaced by a (almost subliminal so it's fast) black screen instead.
If it's expected, no worries ;)
See you,

TSR

vivan
7th March 2012, 17:10
I've tried avaivable WHQL drivers before (280.26, 285.62, 295.73). I'll try playing with settings...
nVidia optimus has such scheme: http://media.bestofmicro.com/nvidia-optimus-mobile,T-A-238222-13.png. After GPU is ready with rendering - it copies frame to iGPU. Long way...

P.s. maybe this is the reason why nVidia prohibit launching "mpc-hc.exe" with discrete GPU starting from 285.62. That's why it's named "mpc-hc2.exe" on my machine.

UPD: unticking "use a separate device for presentation" fixed freezes, and even exclusive mode (however if after 30 seconds of exclusive mode switch back to windowed - video starts flashing with black frame (looks like every 5th frame is plain black))

madshi
7th March 2012, 17:12
Thanks for your super fast reply.
But the issue isn't that the Exclusive pop-up does not show up. It is that it is replaced by a (almost subliminal so it's fast) black screen instead.
If it's expected, no worries ;)

I'm not sure it's expected. Did you not have a black screen (with or without the "Exclusive" pop-up on top) with older madVR versions? Is a display mode changed involved, maybe? Changing display modes usually results in the display having to re-synchronize. Older madVR versions didn't change display modes when going into exclusive mode. The newer version do that if you configure the display mode changer accordingly.

madshi
7th March 2012, 17:13
P.s. maybe this is the reason why nVidia prohibit launching "mpc-hc.exe" with discrete GPU starting from 285.62. That's why it's named "mpc-hc2.exe" on my machine.
Seriously!? This is terrible!! Maybe you should get an AMD notebook next time... :p

vivan
7th March 2012, 17:25
Next time ivy bridge would be fast enough :P

Anyway, in windowed mode now eveything is ok, so thanks :)

TheShadowRunner
7th March 2012, 17:28
Madshi, no, with older madVR builds, I never had a black screen replace the "exclusive" pop-up, ever.

Since I "delay switch to exclusive mode by 3 seconds", I know it's not the resolution change itself that does the black screen.
I open the video -> a resolution switch occurs because framerate doesn't match frequency -> video is back -> a couple seconds later madVR switches to exclusive mode.

It's this last switch when the bug occurs, most often the "exclusive" pop-up shows up fine as usual.
Other times, it'll be replaced by a super fast black screen.

In both cases, after this, madVR is in Exclusive mode alright. It is only cosmetic.

This black screen really replaces the "Exclusive" pop-up itself, like if madVR was confused and didn't know where to "print" it.

It does happen after I switch frequency "behind" madVR's back though (ReClock's RunEvent) and cannot be reproduced with madVR's built-in changer as it's for cases such as 1280x720p60 -> 1920x1080p60, which cannot be replicated in madVR yet.

But again no biggie, it's only cosmetic and those last builds have been totally epic. madVR is now far faster and stable than it ever was ;)

madshi
7th March 2012, 17:35
Why does madVR not support 1280x720p60 -> 1920x1080p60 switching? It should, at least in theory.

TheShadowRunner
7th March 2012, 17:55
...??
How could madVR possibly know when to use 720p60 rather than 1080p60 or the other way round?
I need this kind of switching (resolution only, untouched frequency) based on media source height ^^;

madshi
7th March 2012, 17:59
madVR tries to find the best matching display mode. If you have both 720p60 and 1080p60 in the madVR display mode switch edit control, then for 720p content madVR should switch to 720p60 and for 1080p content madVR should switch to 1080p60. The refresh rate is considered most important by madVR, though. So if you have e.g. "720p60, 1080p24, 1080p60" in the madVR display mode changer edit control, then for e.g. a 720p24 trailer madVR would switch to 1080p24. But for 720p60 content it should switch to 720p60 and for 1080p60 content it should switch to 1080p60. At least that's how it's supposed to work.

TheShadowRunner
7th March 2012, 18:33
madshi, that's nuts, I never knew that :D
So madVR does take source height into account now?
With 720p60 and 1080p60 set, when media height is < or = to 720, it'd switch to 720p60 and for anything above > 720, it'd switch to 1080p60? (of course we're talking ntsc media only atm).
That's completely new to me, when was this implemented??

edit: indeed it works, and i've been fighting with ReClock's runevent to coexist with madVR for all this time when it was implemented in madVR in the first place :nuts: !!

madshi
7th March 2012, 19:32
So madVR does take source height into account now?
It always did, at least it was always supposed to. It simply tries to find the best match from the list of modes you supplied. However, for a 480p60 file both 720p60 and 1080p60 are considered equally good matches, so whichever of those 2 is listed first is selected. For > 720 content, 1080p60 is considered better than 720p60.

mark0077
7th March 2012, 20:18
I personally can't produce any crashes with v0.82.4, thanks!

Quick question if you have time: When using "delay playback until render queue is full", in my setup for example using a render queue of 24, is this feature designed to get to X-24 / 24 (with X being anything), or fully 23or24-24 / 24?

The reason I ask, some clips that stress my machine out a bit more than others, tend to take a little bit longer to fully fill the queues (naturally), ie to reach 24 / 24, and so playback will stutter for a couple of seconds, and often the queues will even drop back down to very low levels initially / drop frames until it gets a chance to catch up to 100% full and its fine from then on, ie no frame drops. Im just wondering is there any way to tweak this feature to cater for this, ie to wait a little bit longer until everything is 100% full at the start :) Not a problem either ways, this feature works great on 90% of my content.