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

James Freeman
21st September 2015, 16:22
Can anyone please test for video freezing after pause and unpause several times.
I will try to find in what version this appeared.

And you can reproduce this easily with v0.89.x but not at all with v0.88.21? Are you absolutely sure about that?
In that case I'd like to see a debug log with v0.89.3 where this problem occurs.

It's magically solved in 0.89.3. :)
I have no idea what is the reason and hope it does not come back in future builds, but if you want I can reproduce that in 0.89.2 and send a report.
Or we can lay it aside knowing your list way beyond full, until it pops again (if).

Thanks.

Dlget
21st September 2015, 17:22
Can we use nested if else statement for condition??
Without nested statement,there may confusion if many profile & many parameters are checked

ex-
i want to 1st check fps.
then subdivide them into 480p,720p,1080p,4k etc

digitech
21st September 2015, 18:33
can somebody help me and post a proper MadVR Profile to use 480p,720p,1080p resolutions for all video files please, i haven't found one like that

kasper93
21st September 2015, 18:59
@madshi I find extreme black bars case. BlackBars.mpg (https://www.dropbox.com/s/kegen238nyjfdwa/BlackBars.mpg?dl=1) This is official DVD release. I just wanted to share a sample for reference. I don't really expect madVR to detect such noisy bars. :)

Ps. I'm even surprised how bad DVD release can get o_O

Asmodian
21st September 2015, 19:01
What can I do then?


Don't think so

Use xySubFilter instead of the internal subtitle renderer.

Can we use nested if else statement for condition??
Without nested statement,there may confusion if many profile & many parameters are checked

ex-
i want to 1st check fps.
then subdivide them into 480p,720p,1080p,4k etc

You cannot, also it is possible to be too long if you want to check too many parameters. Do you really need that many though?

How about?:

if (deintFPS > 31) and (srcHeight > 1080) "Fast"
elseif (deintFPS > 31) and (srcHeight > 720) "1080p60"
elseif (deintFPS > 31) and (srcHeight > 480) "720p60"
.
.
else "Fast"

can somebody help me and post a proper MadVR Profile to use 480p,720p,1080p resolutions for all video files please, i haven't found one like that

I am not sure what you mean. Do you want to have madVR set your monitor resolution based on video resolution?

avinab
21st September 2015, 19:02
I am on 0.89.3. I am using gtx 980 card latest drivers.But when i am selecting NNEDI3 its showing Jinc3 in OSD.I am using pot player x64.What other setting i have to follow to enable NNEDI3 in windows 10 x64?

Asmodian
21st September 2015, 19:13
I am on 0.89.3. I am using gtx 980 card latest drivers.But when i am selecting NNEDI3 its showing Jinc3 in OSD.I am using pot player x64.What other setting i have to follow to enable NNEDI3 in windows 10 x64?

Nothing special is needed, it is working well for me using a 980Ti, 855.82, and Win10 x64.

Try resetting to defaults (the batch file in madVR directory), and also try deleting the registry key:

HKEY_CURRENT_USER\Software\madshi\madVR\OpenCL

avinab
21st September 2015, 19:35
Nothing special is needed, it is working well for me using a 980Ti, 855.82, and Win10 x64.

Try resetting to defaults (the batch file in madVR directory), and also try deleting the registry key:

HKEY_CURRENT_USER\Software\madshi\madVR\OpenCL

I did run the batch.In the registry i didn't find OpenCL dword in madvr folder.please suggest what will i do.I uninstalled Madvr and again installed it,still showing jinc AR.Do i have to reinstall nvidia drivers.?

chros
21st September 2015, 19:52
Nnedi3 not working anywhere not even croma upscaling.

MadVR just working fine now....(why?)
It was not working just 4 hours ago here (http://forum.doom9.org/member.php?u=207959).Now it's working just fine magically.

Nnedi3 is ok.Image doubling is ok
That's pretty interesting: not for me (see my signature, using nvidia), simple Nedi is working, not NNedi3, it crashes MPC-HC immedietly.

Edit: and a huge thanks for the black bar reporting to players! Now it uses less gpu with wide movie content!

avinab
21st September 2015, 19:53
I did run the batch.In the registry i didn't find OpenCL dword in madvr folder.please suggest what will i do.I uninstalled Madvr and again installed it,still showing jinc AR.Do i have to reinstall nvidia drivers.?

I reinstalled the nvidia driver.Now nnedi3 is enabled (in OSD)but player fully freezes.i have to kill the player through task manager.
what more i have to do?i can see render and present queue are 0. i have set it to 19.

digitech
21st September 2015, 19:56
I am not sure what you mean. Do you want to have madVR set your monitor resolution based on video resolution?

I always have 60 hz Smooth Motion on but on the scaling algorythms profiles i want to be able to have three differents madvr configurations, one for SD (around 480p) HD (720p) and FullHD (1080p) for all kind of video files, not just some of them, i have found some configurations online but in some particular cases they dont apply correctly, example: im playing a sd file but madvr highlights and report like a full HD is playing and viceversa so some configuration must be wrong

yok833
21st September 2015, 19:56
Hello Madshi,

I have the same problem with a freeze and black screen immediately when I launch the new built with NNEDI3 (chroma or doubling - no problem with jinc or other..)

here is a link
https://drive.google.com/file/d/0B6NPWCpvEgLrVG5YWU9LTWtvQjQ/view?usp=sharing

Thank you for your support.. can't wait to use NNEDI3 again :)

Asmodian
21st September 2015, 20:06
I reinstalled the nvidia driver.Now nnedi3 is enabled (in OSD)but player fully freezes.i have to kill the player through task manager.
what more i have to do?i can see render and present queue are 0. i have set it to 19.

Maybe 19 is too big? Try the defaults, or even lower.

I always have 60 hz Smooth Motion on but on the scaling algorythms profiles i want to be able to have three differents madvr configurations, one for SD (around 480p) HD (720p) and FullHD (1080p) for all kind of video files, not just some of them, i have found some configurations online but in some particular cases they dont apply correctly, example: im playing a sd file but madvr highlights and report like a full HD is playing and viceversa so some configuration must be wrong

How about this very simple one:

if (srcHeight > 720) "1080p"
elseif (srcHeight > 480) "720p"
else "480p"

avinab
21st September 2015, 20:17
Maybe 19 is too big? Try the defaults, or even lower.



How about this very simple one:

if (srcHeight > 720) "1080p"
elseif (srcHeight > 480) "720p"
else "480p"

tried defaults.but still player freezes but audio keeps on playing.

digitech
21st September 2015, 20:26
How about this very simple one:

if (srcHeight > 720) "1080p"
elseif (srcHeight > 480) "720p"
else "480p"

Thank you for your help Asmodian, just need to copy and paste? or do i have to add something after or before in these three lines

Asmodian
21st September 2015, 20:40
Thank you for your help Asmodian, just need to copy and paste? or do i have to add something after or before in these three lines

Just a copy and paste. :)

Also make sure to have your profiles named 480p, 720p, and 1080p.

tried defaults.but still player freezes but audio keeps on playing.

I have never used potplayer, have you tried MPC-HC as a test to see if it might be a player setting?

I would also try lowering the queues a lot as a test, 3 or below. Present queues too.

Maybe give Windowed Overlay mode a try?

It is a bit of a mystery as your system is very like mine only I am using Zoom Player instead of potplayer and have a 980Ti. :(

Hprd
21st September 2015, 23:29
Ok, here's a log. Hope this helps.

https://www.dropbox.com/s/qngz0cxw6yh638q/madVR%20-%20log.zip?dl=0

XRyche
22nd September 2015, 00:08
Don't use admin privileges, just double click it. If that still fails, just do the following manually:

1) rename "madVR.ax" to "madVR [release].ax".
2) rename "madVR [debug].ax" to "madVR.ax".

That's basically all the batch file is doing. When you're done, just undo both renamings.


If I try to run the batch file without giving it Admin rights it says "Access Denied" in all cases.

When I rename the files and run the batch without Admin rights its states:

Access denied
Access denied
Access denied
Access denied

Activating release mode failed

Asmodian
22nd September 2015, 00:39
If I try to run the batch file without giving it Admin rights it says "Access Denied" in all cases.

When I rename the files and run the batch without Admin rights its states:

Access denied
Access denied
Access denied
Access denied

Activating release mode failed

If madVR is in program files it needs admin rights.

XRyche
22nd September 2015, 02:24
If madVR is in program files it needs admin rights.

It is in program files, actually. The issue is that even when i run the batch file with admin rights it says it cannot find madVR.ax. Both madVR.ax and madVR64.ax are both in the same folder as the batch file, plain as day. As they should be.

I've uninstalled, using the uninstall batch file, and deleted the madVR folder and unzipped and used the install batch file 2 or 3 times to make sure I haven't been doing something obviously wrong on my end.

XRyche
22nd September 2015, 02:33
Another thing is that I am able to use MPDN's OpenCL implemented NNEDI3 version without issue. I know , of course that there will be differences between the way madVR implements OpenCL NNEDI3, but it might point to some issue I have no idea about and maybe madshi does. The excessive long wait times/500 to 700 frame skips before an image shows when using and type of frame doubling is still there and hasn't changed. I know that's why madshi needs a debug log file which I can't seem to provide.

Yvershek
22nd September 2015, 03:21
First time posting here, but I've been following the development for a long time. Just wanted to say that you really outdid yourself with all the new changes. Thanks a ton!

dansrfe
22nd September 2015, 04:22
@madshi

Is there a computational advantage to "crop black bars" vs. the default which I assume simply instructs the media player to zoom away the bars?

For example, in 0.89.2 there were a few scenes of a video which display a small 4:3 bordered on all sides within the 16:9 frame. When madvr would zoom in 0.89.2 the render queue would empty and start dropping frames. Would the "crop black bars" option eliminate this problem by getting rid of the data at an earlier point in the render chain?

Also, when would it make sense to delay notifying the media player about cropped black bars?

Many thanks for display profile groups! I'll test and report back display mode + calibration on my displays to attempt to solve the 3DLUT dependency on refresh rate.

x7007
22nd September 2015, 04:52
Thank you madshi for 0.89.3 !

avinab
22nd September 2015, 06:06
Just a copy and paste. :)

Also make sure to have your profiles named 480p, 720p, and 1080p.



I have never used potplayer, have you tried MPC-HC as a test to see if it might be a player setting?

I would also try lowering the queues a lot as a test, 3 or below. Present queues too.

Maybe give Windowed Overlay mode a try?

It is a bit of a mystery as your system is very like mine only I am using Zoom Player instead of potplayer and have a 980Ti. :(

@Asmodian Actually i found what was causing this player freeze.in LAV filter hardware acceleration is set to nvidia cuvid.I changed in DXVA(copy back).Now there is no freeze and working fine but i am getting huge dropped frames and presentation glitches.
So i changed my player to MPC-HC there is no dropped frames and presentation glitches, also there is no issues in zoom player.
Actually there is a option of audio switcher in potplayer and there is LFE redirection,so all 2 channels audio and videos can be redirected to 5.1 channels and i am able to use woofer in 2 channel audio and video files.So please help me if there is such feature in mpc-hc or in zoom player so that i can switch from that player.
ALso suggest how many neurons are you setting in NNEDI3 in chroma upscaling and image doubling.I am keeping 128 in chroma scaling and 64 in image doubling.I am asking you as we have almost same configuration system

Sunset1982
22nd September 2015, 07:01
I wtched a movie yesterday and after some minutes of flawless playtime, the screen went suddenly black. Sound was still playing. Had to go from FSE to windowed mode to got the picture back. Then i switched back to FSE and the movie flawlessly played on till the end.

Had this strange behavior 2-3 times before the last weeks.

No Screensaver or something like that is installed.

System is Win7 x64, newest nvidia drivers with GTX960, madvr 0.89.3, lav 0.65 and mpc-hc x64 lastest nightly.

x7007
22nd September 2015, 07:47
I wtched a movie yesterday and after some minutes of flawless playtime, the screen went suddenly black. Sound was still playing. Had to go from FSE to windowed mode to got the picture back. Then i switched back to FSE and the movie flawlessly played on till the end.

Had this strange behavior 2-3 times before the last weeks.

No Screensaver or something like that is installed.

System is Win7 x64, newest nvidia drivers with GTX960, madvr 0.89.3, lav 0.65 and mpc-hc x64 lastest nightly.

Do you use CUVID ?

There is another issue, any file if it's Dvdrip,Mkv , 720p,1080p, using CUVID , the screen freeze as soon I enter FSE Exclusive D3D11. using DXVA Copy back works smooth with no issues.

6233638
22nd September 2015, 08:14
Another great release as always! :)
Coincidentally, I spent the weekend testing out Windows 10, so this update was quite well timed.
As expected, NNEDI3 is working fine.

The new profile support is working very well.
Now my 3DLUT is only enabled in FSE mode when the display is put into a wide-gamut state. (overall result is more accurate color)
I should probably think about setting up a separate 3DLUT for windowed mode too. Right now the profile just disables it - which is a big improvement on its own.

Now all I need is for someone to figure out how to control the HDMI Content Type and I'll never have to touch my TV remote again.
I'd think that with NVIDIA having the option to set it to "automatic" there must be some way for an application to set it.

Ok, two votes for that now. Will see if anybody votes the other way. Otherwise I'll change it for the next build.If I go through my DVD collection, I'm sure that I could find a ton of discs which show ringing/artifacts on all four edges even if only the top and bottom would be cropped.
Here is the first example I could think of that is not cropping all 4 edges. (http://abload.de/img/bad-edgeshcbug.jpg)
Sometimes things just need a lot of preferences, even if the options themselves are not complex.
If you think it would be a useful feature, I'd suggest a sub-option below clean-up image borders: "only clean up edges which are cropped"
Or perhaps it should always act on 2 or 4 edges rather than potentially 1 or 3? (3 in the example above)
I will have to look through some DVDs to see what the situation is like, but there are definitely discs where only two edges would be cropped, but four need cleaned up.
I suspect that it would be best to clean top & bottom, or left & right equally, even if only one of the two edges are cropped.



I was wondering if there might also be a tag override for Zoom Control and aspect ratio?
I have some videos which are supposed to be 4:3
Except they are encoded to a 16:9 video, with images drawn in the pillarboxing (not black, so not detected) and the center image is horizontally compressed.

It would be nice if I could batch-rename these files with something like: [crop=0,90] [aspect=4x3]
Using CSS formatting for edges would work well.
1 crop value = all edges
2 values = top & bottom, left & right (90px from both left and right, or 180px total in the above example)
4 values = top, right, down, left
This has been a long-standing problem for a decent chunk of my video library that may be nearing a solution!
Last time I counted there was something in the region of 200 videos in my library affected by this.

Hprd
22nd September 2015, 09:00
Do you use CUVID ?

Woah. I turned that off in lav filters (or set to a DXVA mode), and I get perfect playback again (like 89.3 <).

chros
22nd September 2015, 10:57
Woah. I turned that off in lav filters (or set to a DXVA mode), and I get perfect playback again (like 89.3 <).
Strange, again, I'm using DXVA copyback, and player crashes with NNedi3.

Regarding cropping black bars: is there any settings (if not can you add one) for configuring not to crop black bars IF black bars are less than 2-4-6-8-10-..-15 lines? :) (I just realised yesterday night with a bluray remux, that it cropped 1 pixel from the side, resulting 1919 wide picture :) )
Thanks

kingfire
22nd September 2015, 11:13
Thank you for your tremendous work; I really appreciate madVR and your efforts to improve it.

Reporting a bug here. I am getting this picture only when I use luma image doubling:

http://i.imgur.com/UWEQtWW.gif

Disabling image doubling gets me a correct picture.

My setup:

Windows 10 x64
MPC-HC x86
Reclock
DXVA2 (copy-back)
8 GB RAM
NVIDIA 780 GTX
NVIDIA 355.82
Intel i7 4770k

I do not speak German :P

Thank you.

thegilpins
22nd September 2015, 12:24
Do you use CUVID ?

Same issue here, if I use CUVID then Potplayer freezes. I also changed to DXVA copyback and now works ok. I am using Nvidia 980 TI on Windows 10 64bit. Issue occurs with LAV v0.65 and the new version 0.66.

I did not have this issue with madVR v 0.8821.

madshi could you please look at the conflict between this new version of madVR and CUVID? Thank you.

nevcairiel
22nd September 2015, 12:26
Just don't use CUVID, DXVA2-CopyBack is superior in every way.

leeperry
22nd September 2015, 12:26
I was wondering if there might also be a tag override for Zoom Control and aspect ratio?
I have some videos which are supposed to be 4:3
Except they are encoded to a 16:9 video, with images drawn in the pillarboxing (not black, so not detected) and the center image is horizontally compressed.

It would be nice if I could batch-rename these files with something like: [crop=0,90] [aspect=4x3]
Using CSS formatting for edges would work well.
1 crop value = all edges
2 values = top & bottom, left & right (90px from both left and right, or 180px total in the above example)
4 values = top, right, down, left
This has been a long-standing problem for a decent chunk of my video library that may be nearing a solution!
Last time I counted there was something in the region of 200 videos in my library affected by this.
Totally, I already asked madshi a few days ago so make it two votes then ^^

I currently use the pan & scan feature of PotPlayer: http://thumbnails113.imagebam.com/43718/66282b437171344.jpg (http://www.imagebam.com/image/66282b437171344)

I find it more convenient than doing it through mVR's control panel but if would really nice to automate it, the same way I can automate 960*540 videos to use REC.709. OTOH finding out the exact right cropping settings might be time consuming so ideally if mVR's OSD could give the exact figures to input then this would work.

ClintJCL
22nd September 2015, 12:33
I have tried MadVR out for a year, and the verdict is... It's the best looking. But the worst to use.

I have 2 MadVR issues.

1) "Exclusive" mode is the only way video looks right on my 240Hz TV, yet if I use exclusive mode, you force-pull my mouse back into the video window.

I have 4 screens. I am trying to check my email, look people up on IMDB, take plot notes, remote into other machines, pause/unpause music while on bathroom breaks, point my IP camera at different parts of my yard.

It's kinda hard when someone decided to interpret "exclusive mode" {which is a video mode, not a UI mode} as not meaning "video has exclusive control of this monitor" but instead meaning "this monitor is the only monitor the user will be able to control".

Either way, it's buggy: I can click out of the window. I just can't type out of it. Every 5th or so mouse click "escapes". I can check my email if I click 5 or 10 or 15 times. Sometimes if I do a dance for 50 or more clicks, I can escape entirely.

The fact that there are situations where "50 clicks does something" is a huge bug.



2) LONG fullscreen transitions. It appears that it takes 2 tries to go fullscreen. The first time, I get "direct3d device failed (80070005)". The second time, it is finally successful.
The transition takes about 5-10 seconds. Leaving fullscreen takes 5+ seconds too. About 1 out of 20 times, it fails, leaving all 4 monitors black. Computer is not hung - I can still play music and such. But I have to power cycle at that point.
But the slowness is really annoying.

In conjunction with issue #1, it means that in order to check my email during a movie, I need about 25 seconds to get in and out of fullscreen -- with a 1 in 20 chance of permanent crash.

That's a major bummer, because that means my old computer that I built in 2007 is a more reliable movie-playing machine than my new computer I built in 2015. Ridiculous. My feelings are hurt :)





And I'm literally running almost the latest everything:
Intel Core i7-5820K Haswell-E 6-Core 3.3GHz with an Arctic Freezer I30 cooler on a ASRock X99 WS EATX motherboard with 24G of Crucial Ballistix Sport DDR4 2400mHz RAM, a Radeon R9 270 video card, and a Crucial M500 240GB M.2 SSD...all inside a massive NZXT Phantom 820 case.



Anyway, I think #1, I need to submit a ticket for.
#2, I need people to help me with.

nevcairiel
22nd September 2015, 12:39
1) "Exclusive" mode is the only way video looks right on my 240Hz TV, yet if I use exclusive mode, you force-pull my mouse back into the video window.

I have 4 screens. I am trying to check my email, look people up on IMDB, take plot notes, remote into other machines, pause/unpause music while on bathroom breaks, point my IP camera at different parts of my yard.

It's kinda hard when someone decided to interpret "exclusive mode" {which is a video mode, not a UI mode} as not meaning "video has exclusive control of this monitor" but instead meaning "this monitor is the only monitor the user will be able to control".

Either way, it's buggy: I can click out of the window. I just can't type out of it. Every 5th or so mouse click "escapes". I can check my email if I click 5 or 10 or 15 times. Sometimes if I do a dance for 50 or more clicks, I can escape entirely.

The fact that there are situations where "50 clicks does something" is a huge bug.


Thats just how exclusive mode works. You can't blame madVR for that. Direct3D is designed for games primarily, and when you enter exclusive mode, its intended for you to interact with it, so it locks you into the exclusive interface.

Don't use exclusive mode if you want to use your PC on another screen at the same time.

baii
22nd September 2015, 15:46
I can do w.e I want on second display even if one of my screen is used exclusive mode, excluding changing player or madvr setting. Or launch some kind of d3d instance. Probably some kind of software configuration problem for you.

Sent from my 306SH

MysteryX
22nd September 2015, 16:56
I tried the new black border cropping feature. It's not working well for me. It removes black borders on some videos, and leaves them on others. Perhaps it's leaving the black borders if there's any kind of noise or artifacts in it.

There are some issues with SVP's auto-crop feature, but for now it still is working better than madVR's auto-crop.

madshi
22nd September 2015, 17:15
In the above log it happened when switching from the 576i channel to the 1080i channel. But the 1080i channel did not appear. There is a still image of the previous channel. New channel does not appear, only audio. I can't get out of FSE anymore by doubleclicking. I have to press CTRL+ALT+DEL and bring the Task-Manager to front. Then madVR is thrown out of FSE and video suddenly appears.

I never experienced that issue before. It is also easily reproducible with avcodec (SW) mode.

Totally frozen. No DVBViewer OSD, no madVR OSD. Not even doubleclicking gets me out of FSE. Only CTRL+ALT+DEL and running the Task-Manager kicks madVR out of FSE and makes video immediately appear again.
This almost sounds to me as if the thread which owns the madVR rendering window (that should be the thread which created the madVR instance) it frozen/deadlocked for some reason. This thread is owned by DVBViewer.

In order to analyze this further, could you try (in the situation where the problem occurs) to press Ctrl+Alt+Shift+Pause/Break maybe 3 times, with a couple seconds delay? With a bit of luck you might get 3 freeze reports on your desktop then, which will tell me what all of the threads in the DVBViewer process were doing (full callstack). That can be a great help finding a deadlock.

In order to make the freeze reports as useful as possible, could you do this with a DVBViewer build for which you have the Delphi "map" file? I'm not sure if you have access to such a build (I don't). But if you do, the freeze reports will also contain detailed callstacks for all DVBViewer's threads etc. Also please download the matching PDB files for LAV, so we get the full callstacks for LAV, too. Thanks!!

(P.S: Might make sense to first test whether the freeze reporting works at all when the freeze occurs, before you go to the trouble of finding map/pdb files.)

Don't think so
Then I'm not sure where the problem comes from. For me, the MPC-HC screenshot function usually outputs the original unscaled frame. This might depend on the exact madVR settings, though. E.g. I could imagine that this might not work as intended when using DXVA anything. In any case, I'll revisit the whole screenshot stuff at some point in the future, giving you more control over what exactly you want to get (before scaling, after scaling etc). For now it is as it is.

Well I liked it for one particular image (the castle image) but after trying lots of other images I'm not so sure. I'm not using Lab anymore though. So far I've failed to see any difference between Lab and gamma light, even when I've artificially enhanced the image. I am still using linear light for downscaling though.
I'm pretty much torn on using gamma vs linear light for downscaling. I believe most studios downscale their 4K masters to 1080p for Blu-Ray in gamma light. So using SuperRes with gamma light downscaling should produce more correct results. However, if the Blu-Ray master was originally only 2K and no downscaling was applied by the studio then things might be different.

Nope, still a black screen and a debugger window
Ok. Can you send me a debug log which covers the crash?

I tried the option "If there are large black bars zoom them away completely", removes the black bars but zooms in and cuts off the subtitles. With the Blu-Ray disc sample using notify the media player about cropped bars and with the crop black bars option enabled works (removes the pillarboxing and keeps the subtitles intact) when using stretch to window.

However the above settings don't work for the DVD sample I uploaded (subtitles positioned in the horizontal black bars), the subtitles get cut off. Using the option keep black bars visible if they contain subtitles works around that problem. The forever setting doesn't seem to be working (black bars still get cropped), all the other options are ok.

I'd like to be able to crop the black bars and keep the subtitles visible without them being stretched, cut off or zoomed. A simple crop method without any zoom / aspect ratio correction applied should work, similar to using Avisynth to crop the video before re-encoding.
I've said it before (but maybe not to you, I'm not sure), *do not use* stretch to window. Use touch window from inside. If you don't want hard coded subtitles to be cropped, obviously you need to activate the option "keep black bars visible if they contain subtitles". For me this works just fine with the DVD sample you uploaded.

Can we use nested if else statement for condition??
Unfortunately not at this time, sorry.

@madshi I find extreme black bars case. BlackBars.mpg (https://www.dropbox.com/s/kegen238nyjfdwa/BlackBars.mpg?dl=1) This is official DVD release. I just wanted to share a sample for reference. I don't really expect madVR to detect such noisy bars. :)

Ps. I'm even surprised how bad DVD release can get o_O
Thanks for the sample. I'll have a look at it, not sure if I can make it work without compromising detection in other situations.

simple Nedi is working, not NNedi3, it crashes MPC-HC immedietly.
Do you get a crash box looking similar to this?

http://madshi.net/exc-ss3.gif

If so, please press "show bug report", then Ctrl+C, then you'll find the crash report in your clipboard. Upload it somewhere for me to look at. If the crash box looks different then that crash is probably outside of madVR somewhere. Could still be madVR's fault, but that would be much more difficult to debug.

If I try to run the batch file without giving it Admin rights it says "Access Denied" in all cases.

When I rename the files and run the batch without Admin rights its states
When you rename the files, you don't need to run the batch, anymore! The batch tries to rename the files, nothing else. So if you renamed the files manually, you've already done what the batch file was supposed to do. By manually renaming the files you've already activated debug mode, and you should get a debug log on your desktop.

Is there a computational advantage to "crop black bars" vs. the default which I assume simply instructs the media player to zoom away the bars?
The "crop black bars" feature literally removes the black bars, after chroma upscaling, before luma/image scaling. So if you activate that feature, you'll save performance.

Also, when would it make sense to delay notifying the media player about cropped black bars?
That's your decision. There may be movies where aspect ratios change all the time back and forth. I'm not sure if you would want the media player to jump back and forth in the same speed then. But something like that should be extremely rare, so maybe you don't need the delay.

I wtched a movie yesterday and after some minutes of flawless playtime, the screen went suddenly black. Sound was still playing. Had to go from FSE to windowed mode to got the picture back. Then i switched back to FSE and the movie flawlessly played on till the end.

Had this strange behavior 2-3 times before the last weeks.
If it's only once in a blue moon and not really reproducible if you try then it will be very hard to debug. You could try creating a freeze report in that situation (Ctrl+Alt+Shift+Pause/Break), maybe that will provide some useful information, or not. I don't know...

Now all I need is for someone to figure out how to control the HDMI Content Type and I'll never have to touch my TV remote again.
What do you need that for?

I was wondering if there might also be a tag override for Zoom Control and aspect ratio?
I have some videos which are supposed to be 4:3
Except they are encoded to a 16:9 video, with images drawn in the pillarboxing (not black, so not detected) and the center image is horizontally compressed.
What color does the pillarboxing have? This sounds extremely weird. Do you have a screenshot?

Regarding cropping black bars: is there any settings (if not can you add one) for configuring not to crop black bars IF black bars are less than 2-4-6-8-10-..-15 lines? :) (I just realised yesterday night with a bluray remux, that it cropped 1 pixel from the side, resulting 1919 wide picture :) )
Well, you can already tell madVR to disable scaling under such circumstances, see first option in zoom control. Doesn't that do exactly what you want?

Reporting a bug here. I am getting this picture only when I use luma image doubling

[...]

Disabling image doubling gets me a correct picture.
Does this only occur with NNEDI3 or also with super-xbr or NEDI image doubling? Try deleting the registry key "HKEY_CURRENT_USER\Software\madshi\madVR\OpenCL". Does that help?

Totally, I already asked madshi a few days ago so make it two votes then ^^

I currently use the pan & scan feature of PotPlayer: http://thumbnails113.imagebam.com/43718/66282b437171344.jpg (http://www.imagebam.com/image/66282b437171344)

I find it more convenient than doing it through mVR's control panel but if would really nice to automate it, the same way I can automate 960*540 videos to use REC.709. OTOH finding out the exact right cropping settings might be time consuming so ideally if mVR's OSD could give the exact figures to input then this would work.
Why would you need that? madVR already detects the black bars automatically. So you don't have to do anything manually. Have you actually tried the black bar detection features yet?

I have 2 MadVR issues.

1) "Exclusive" mode is the only way video looks right on my 240Hz TV, yet if I use exclusive mode, you force-pull my mouse back into the video window.
See the bug tracker issue you created.

2) LONG fullscreen transitions. It appears that it takes 2 tries to go fullscreen. The first time, I get "direct3d device failed (80070005)". The second time, it is finally successful.
The transition takes about 5-10 seconds. Leaving fullscreen takes 5+ seconds too. About 1 out of 20 times, it fails, leaving all 4 monitors black. Computer is not hung - I can still play music and such. But I have to power cycle at that point.
Have you tried installing a newer/different GPU driver version? Maybe that helps?

Have you considered upgrading to Windows 8.1 or Windows 10? They have a much better desktop composition implementation compared to Windows 7, which might allow you to get the same visual quality without using fullscreen *exclusive* mode.

And I'm literally running almost the latest everything
No, you're stuck with the (in the meanwhile) quite old Windows 7, which has a desktop composition implementation which works quite badly, compared to Windows 8.1/10.

In fact I was thinking about dropdown menu to control "crop black bars" feature. Where user could select if it must be exact crop or should crop N lines more. But I fully understand that too many options is also not a good thing.

For me personally option to set up and forget is "cleanup black bar borders", because it would leave videos without borders untouched. HQ content rarely have messed up borders. But frankly those features have different purpose imo. "Cleanup image borders" might be very useful for DVD or SDTV, where borders are often messed up. If I were forced to pick one, I would probably stick with "Cleanup image borders". Though like I said I would enable it only when necessary.
If I go through my DVD collection, I'm sure that I could find a ton of discs which show ringing/artifacts on all four edges even if only the top and bottom would be cropped.
Here is the first example I could think of that is not cropping all 4 edges. (http://abload.de/img/bad-edgeshcbug.jpg)
Sometimes things just need a lot of preferences, even if the options themselves are not complex.
If you think it would be a useful feature, I'd suggest a sub-option below clean-up image borders: "only clean up edges which are cropped"
Or perhaps it should always act on 2 or 4 edges rather than potentially 1 or 3? (3 in the example above)
I will have to look through some DVDs to see what the situation is like, but there are definitely discs where only two edges would be cropped, but four need cleaned up.
I suspect that it would be best to clean top & bottom, or left & right equally, even if only one of the two edges are cropped.
Oh well. Not sure what to do now.

This latest madvr version is fast on nnedi3 for me. I can now increase all of my profiles settings with nnedi3 16 neurons, to 64 neurons.

Also, I'm using the latest amd beta driver.

EDIT: And my GPU is at PCI-E 1.1
Thank You so much for the NNEDI3 fix. It works well I have no more freezes scaling a 512x384 movie to 3840x2160. My i5 2500k can finally rest instead of being stuck @100% while playing the same file. Thank you so much for this update.
It's magically solved in 0.89.3.
First time posting here, but I've been following the development for a long time. Just wanted to say that you really outdid yourself with all the new changes. Thanks a ton!
Thank you madshi for 0.89.3 !
:)

Woah. I turned that off in lav filters (or set to a DXVA mode), and I get perfect playback again (like 89.3 <).
Same issue here, if I use CUVID then Potplayer freezes. I also changed to DXVA copyback and now works ok. I am using Nvidia 980 TI on Windows 10 64bit. Issue occurs with LAV v0.65 and the new version 0.66.
Just don't use CUVID, DXVA2-CopyBack is superior in every way.
Yes, don't use CUVID, but I'd still like to know what's going on there. The problem seems to be my fault (?).

I reinstalled the nvidia driver.Now nnedi3 is enabled (in OSD)but player fully freezes.i have to kill the player through task manager.
I have the same problem with a freeze and black screen immediately when I launch the new built with NNEDI3 (chroma or doubling - no problem with jinc or other..)

here is a link
https://drive.google.com/file/d/0B6NPWCpvEgLrVG5YWU9LTWtvQjQ/view?usp=sharing

Thank you for your support.. can't wait to use NNEDI3 again :)
Ok, here's a log. Hope this helps.

https://www.dropbox.com/s/qngz0cxw6yh638q/madVR%20-%20log.zip?dl=0
Thanks for the debug logs, but in this case I'd rather have freeze reports, and maybe a debug log in addition to that. You can create freeze reports by pressing Ctrl+Alt+Shift+Pause/Break.

Please make sure you have the correct PDB debug symbols installed for LAV. Thanks!

madshi
22nd September 2015, 17:15
I tried the new black border cropping feature. It's not working well for me. It removes black borders on some videos, and leaves them on others. Perhaps it's leaving the black borders if there's any kind of noise or artifacts in it.

There are some issues with SVP's auto-crop feature, but for now it still is working better than madVR's auto-crop.
Samples? The more the merrier...

Shiandow
22nd September 2015, 17:29
I'm pretty much torn on using gamma vs linear light for downscaling. I believe most studios downscale their 4K masters to 1080p for Blu-Ray in gamma light. So using SuperRes with gamma light downscaling should produce more correct results. However, if the Blu-Ray master was originally only 2K and no downscaling was applied by the studio then things might be different.


Linear light is closer to what would happen if you use optics to downscale an image, so I think that would be the most natural. If you artificially downscale an image in gamma light, then this causes some artefacts which you might be able to fix using SuperRes. But for an image which hasn't been downscaled artificially, and doesn't have those artefacts, trying to 'correct' those mistakes will cause artefacts. So in my opinion gamma light shouldn't be used by default, because it tries to fix something which might not be wrong.

madshi
22nd September 2015, 17:37
Linear light is closer to what would happen if you use optics to downscale an image, so I think that would be the most natural. If you artificially downscale an image in gamma light, then this causes some artefacts which you might be able to fix using SuperRes. But for an image which hasn't been downscaled artificially, and doesn't have those artefacts, trying to 'correct' those mistakes will cause artefacts. So in my opinion gamma light shouldn't be used by default, because it tries to fix something which might not be wrong.
The right default setting should be the one which applies to the majority of content rendered through madVR. So was the majority of content downscaled in gamma light at some point? Or was it not? I find it hard to say, but I suppose that probably 99% of all DVDs were downscaled in gamma light. For Blu-Ray it's more difficult. For older movies which got a 4K scan it's probably gamma light. For newer movies which have a 2K DI it might depend on at which resolution the film was scanned, or which resolution the digical camera recorded in. So it's really difficult to tell... Maybe a good default setting would be to use gamma light for SD content and linear light for 4K content? Not sure about Blu-Ray, though...

CiNcH
22nd September 2015, 17:54
In order to analyze this further, could you try (in the situation where the problem occurs) to press Ctrl+Alt+Shift+Pause/Break maybe 3 times, with a couple seconds delay? With a bit of luck you might get 3 freeze reports on your desktop then, which will tell me what all of the threads in the DVBViewer process were doing (full callstack). That can be a great help finding a deadlock.
Here we go...

madVR - freeze report (https://www.dropbox.com/s/idk95hgmedbus8r/madVR%20-%20freeze%20report.rar?dl=1)

This time, screen was black when it froze. So it is timing related when the freeze happens on a channel change.

In order to make the freeze reports as useful as possible, could you do this with a DVBViewer build for which you have the Delphi "map" file? I'm not sure if you have access to such a build (I don't). But if you do, the freeze reports will also contain detailed callstacks for all DVBViewer's threads etc. Also please download the matching PDB files for LAV, so we get the full callstacks for LAV, too. Thanks!!
I don't have access to such builds. I would have to talk to Griga/hackbart.
I also don't know where to get that for LAV.


I now tried again in windowed fullscreen mode. It feels much more stable, but not entirely. But the error seems a bit different there. I get a madVR crash report which I am also attaching. One time I also saw an OSD appear in the top left area with red font which said something like "GPU dither texture failed". It was flashing for a short amount of time only, so I failed to read the exact wording.

madVR - crash report (https://www.dropbox.com/s/aj8ehuo3ot2gttk/madVR%20-%20crash%20report.rar?dl=1)

Serhiyko
22nd September 2015, 18:00
Ah yes. Newer madVR builds don't fully rerender the paused video frame all the time, to save resources. If you use the built-in subtitle renderer then madVR does not know that you changed the subtitle track, so I don't know that I need to rerender the video frame. I'm not sure if I can solve this without pushing GPU power through the roof again in paused mode. And frankly, I don't think this is important enough to make compromises with high GPU power in paused mode.
So there is no way to instantly hide/display subtitles in paused mode? Okay then, I'll just revert to the older version where this was still possible by pushing GPU power through the roof

Then I'm not sure where the problem comes from. For me, the MPC-HC screenshot function usually outputs the original unscaled frame. This might depend on the exact madVR settings, though. E.g. I could imagine that this might not work as intended when using DXVA anything. In any case, I'll revisit the whole screenshot stuff at some point in the future, giving you more control over what exactly you want to get (before scaling, after scaling etc). For now it is as it is.
I've tried different settings without any success. Whatever it is, it's something that was introduced in madVR v0.88.9

MysteryX
22nd September 2015, 18:43
Samples? The more the merrier...
Here's a video where cropping doesn't work

https://www.spiritualselftransformation.com/files/media-encoder-old.mpg

madshi
22nd September 2015, 18:58
Here we go...

This time, screen was black when it froze. So it is timing related when the freeze happens on a channel change.
Thanks. Unfortunately I couldn't find anything suspicious in the freeze reports. All threads seem to be alive, more or less.

I now tried again in windowed fullscreen mode. It feels much more stable, but not entirely. But the error seems a bit different there. I get a madVR crash report which I am also attaching. One time I also saw an OSD appear in the top left area with red font which said something like "GPU dither texture failed". It was flashing for a short amount of time only, so I failed to read the exact wording.

madVR - crash report (https://www.dropbox.com/s/aj8ehuo3ot2gttk/madVR%20-%20crash%20report.rar?dl=1)
I have my doubts that this build will help, but it's worth a try:

http://madshi.net/madVR893e.rar

So there is no way to instantly hide/display subtitles in paused mode? Okay then, I'll just revert to the older version where this was still possible by pushing GPU power through the roof
Probably using XySubFilter would work around the issue.

I've tried different settings without any success. Whatever it is, it's something that was introduced in madVR v0.88.9
Hmmm... Try enabling "linear light" for "image downscaling". Does that fix the problem?

Here's a video where cropping doesn't work
Hmmmm... Seek quickly into the middle of the sample, before madVR has time to detect the black bars, then it will work. The problem is that the right bar is not static, it gets bigger and smaller all the time. madVR detects it correctly at the start of this sample, but then after that it keeps moving, and not only that, the video image gets smaller, and it's only one edge out of 4. These are all bad circumstances, because this is exactly the type of situation where false positives can occur. Just imagine a movie which happens to have a scene where the right image border has a black object, covering most of the right image border. That could look like madVR like a new black bar. But actually it's part of the image. Because of that in circumstances like this (valid detection is active, only one edge has a black bar, and the black bar grows bigger, and it changes size all the time) madVR is extra careful not to produce a false positive.

Practically, if I tune the detection to detect this sample, I could introduce false positives in other movies.

Do you have samples which have bigger black bars, ideally symmetrical ones (top + bottom, or left + right), which madVR doesn't detect?

CiNcH
22nd September 2015, 19:16
I have my doubts that this build will help, but it's worth a try:

http://madshi.net/madVR893e.rar
Got stuck again :confused: . Now there is always a black screen for some reason. Again the "deadlock" is released when bringing the task manager to the front via CTRL+ALT+DEL, kicking madVR out of FSE.

madshi
22nd September 2015, 19:18
Argh. Ok, so right now I don't see much hope for me in finding the cause without being able to reproduce it somehow. Is there any chance this can be reproduced with video files (instead of live TV)?

CiNcH
22nd September 2015, 19:22
I am afraid not. I never tried to simulate channel switches with Files...

MysteryX
22nd September 2015, 19:24
Do you have samples which have bigger black bars, ideally symmetrical ones (top + bottom, or left + right), which madVR doesn't detect?
Oups, I actually didn't send the one I wanted to send.

This is the one that really is causing issues. De-activating and re-activating auto-crop doesn't help with this one.
https://mega.nz/#!CNRzTADb!oQ-rHUvsY0KX-vpJ9s2d8WhjOsbF-gADlv8rA0zUNYs