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

kasper93
1st August 2011, 20:02
I think it's probably when the seek bar *shows*, not hides?

You are right. :o I didn't wait till statistic update with open seekbar.

BatKnight
1st August 2011, 20:23
I think it's probably when the seek bar *shows*, not hides?

Yes, it's when it shows (exclusive mode)... Didn't happen with older versions.

Another thing. I can't use D3D11 presentation mode, because when used together with MPC-HC's refresh rate changer, I can't get 24Hz. It stays at 60Hz. But without the D3D11 mode, it changes fine.
On the other hand, It works with your refresh rate changer inside madVR, but I miss the "change only when fullscreen" option. For example, I don't need the refresh rate to change when I'm at window mode, just previewing videos. :)
Would it be possible to add a "change refresh rate only when going fullscreen (or exclusive, whatever is easier for you)" option, please?

Thanks for understanding.

Nuno

madshi
1st August 2011, 20:51
The easiest way to reproduce it is probably to install NextPVR, then file up GraphEdit, insert the 'NPVR TS Reader', select a sample .ts file, insert the MPEG2 Demultiplexer, connect the TS Reader to the Demux. Insert a video decoder (like ffdshow), connect the 'video' pin from the demux to the video decoder, then insert the madVR renderer, and connect teh video decoder to madVR. It'll crash at this point.
The cause of the crash is that your filter does implement "IFileSourceFilter" and "IFileSourceFilter.GetCurFile()" returns success, but the returned file name is NULL. madVR then crashes when later calling CoTaskMemFree() to properly release the file name. You can fix the crash by either returning a proper file name, or by letting GetCurFile() return an error, or by not supporting IFileSourceFilter. I'll add a check for a NULL file name to the next build. But I think you should implement the suggested change in your filter, anyway.

graeme
1st August 2011, 21:07
The cause of the crash is that your filter does implement "IFileSourceFilter" and "IFileSourceFilter.GetCurFile()" returns success, but the returned file name is NULL. madVR then crashes when later calling CoTaskMemFree() to properly release the file name. You can fix the crash by either returning a proper file name, or by letting GetCurFile() return an error, or by not supporting IFileSourceFilter. I'll add a check for a NULL file name to the next build. But I think you should implement the suggested change in your filter, anyway.Brilliant - thanks for this insight. I'll try this.

madshi
1st August 2011, 21:39
Madshi:
Here's an updated log file (http://t.inmatrix.com/madVRlogBlank2.rar). This time with MadVR 0.72 with MadVR's OSD visible (using ctrl+j).
Hmmmm... According to the log, the display mode changes and madVR switches from exclusive mode to windowed mode as a reaction of the display mode change. The display mode change was not initiated by madVR. I don't know who initiated it and why. Maybe you can find out?

Are you calling WinAPI's "IsWindowVisible"? and are you checking the window's dimensions to see if they cover the MadVR window?
Cause what happens that exclusive mode is lost for a split second and then it re-activates. If the new window was problematic, wouldn't exclusive mode stay disabled?
Yes, I'm using IsWindowVisible and I'm also checking the window dimensions.

madshi
1st August 2011, 21:47
madVR v0.73 released

http://madshi.net/madVR.zip

* fixed (again): video playback in PotPlayer froze in various situations
* fixed: OSD changes could result in dropped frames (reverted to older code)
* fixed: crash if the source filter reported a NULL file name
I've decided to revert to an older OSD update code, which should fix the frame drops reported by some. However, that also restores the old (bad) OSD response times. Maybe I'll find a better overall solution for a future build.

Those of you who want to use the madVR internal decoders with MPC-HC, please update to build 3520 (or newer). That build allows you to set madVR to "preferred" in the external filter list, without losing the OSD and subtitle functionality.

Nevilne
1st August 2011, 22:12
I can confirm that potplayer freeze at start is fixed.

joe42
2nd August 2011, 05:00
Those of you who want to use the madVR internal decoders with MPC-HC, please update to build 3520 (or newer). That build allows you to set madVR to "preferred" in the external filter list, without losing the OSD and subtitle functionality.

Yes, thanks for the note. I tried MPC-HC 3538, with madVR external filter set to prefer, and OSD and subtitles worked properly.

SoupRKnowva
2nd August 2011, 09:28
i dont even put madVR in the external decoders, i just turn off the internal decoders, and turn them on in madVR settings, and it works good.

why would it need to be in the external decoders list?

nand chan
2nd August 2011, 09:28
Any approximate time frame on 10 bit output?

Edit: By the way, I wrote a small guide on how to properly set up MPC-HC + madVR (with madVR's internal decoders), in case you want to hotlink it anywhere: http://haruhichan.com/wpblog/?p=205#guide. A slightly older version of this guide can also be found on coalgirl's page (http://coalgirls.wakku.to/?page_id=4611).

ryrynz
2nd August 2011, 10:33
Hmmmmm... In that log there are so many seeks. One seek after 2.5 seconds of playback, then one after 3.5, another one after 5, another one after 6 seconds. That's not a good thing for a log, it makes the log very complicated and hard to read.


Yeah, I have to seek a few times for it to become noticeable, I wanted to make sure I captured the sync issue.


Anyway, the whole problem does not occur with external decoders, correct? Can I have a small sample of the VOB file? Of course that would make sense only if the problem also occurs with the small sample. Which splitter are you using?


P.S: The splitter seems to behave very weird. Most frames come to madVR without any timestamps, which make it hard for madVR to properly sync. Which exact splitter is that? Have you tried a different splitter?

Correct, there is no sync problem when I'm using ffdshow. Currently I'm using LAV splitter 0.31 and the issue seems limited to that splitter as Haali's splitter didn't produce the same issue.
I can reproduce it on any VOB file I have, hopefully you can too. It does sound like this report belongs in the LAV splitter thread instead, let me know if you'd like me to report there.

nevcairiel
2nd August 2011, 10:44
If a file does not contain timestamps for all frames, LAV Splitter will not invent any. I leave it to the decoder to properly deal with it, and frankly, all external decoders are doing just fine with that.
If all external decoders work, and the internal doesnt, it must be the splitters problem, right? :p

ice25
2nd August 2011, 11:17
Not sure if it's a bug, but in my setup Reclock isn't detecting the video stream fps with the internal decoders. Tested with internal MPC and Haali Splitter.

ryrynz
2nd August 2011, 11:24
If a file does not contain timestamps for all frames, LAV Splitter will not invent any. I leave it to the decoder to properly deal with it, and frankly, all external decoders are doing just fine with that.
If all external decoders work, and the internal doesnt, it must be the splitters problem, right? :p

Gotta love Nevcairiel's sense of humor :)

madshi
2nd August 2011, 11:49
If a file does not contain timestamps for all frames, LAV Splitter will not invent any. I leave it to the decoder to properly deal with it, and frankly, all external decoders are doing just fine with that.
If all external decoders work, and the internal doesnt, it must be the splitters problem, right? :p
In my log it seems that roughly only one out of a hundred video frames has a timestamp. That surely can't be right, can it? Of course if the external decoders have a problem and the internal ones don't, this points to the internal decoders. However, if the issue occurs only with LAV Splitter and not with any other splitter, then that points to the splitter. Probably it's a combination of the two somehow. Anyway, I'm wondering how I can do proper syncing if there are virtually not any timestamps available at all?

nevcairiel
2nd August 2011, 12:39
As always, i cannot comment on files without a sample of such a file.
I have however seen MPEG-2 files with really terrible timestamping.

ajp_anton
2nd August 2011, 13:22
Whoa. Never really understood the smoothness problem with 60Hz displays. But I just learned that my Macbook supports 48Hz. Meh, now I'll never be able to watch movies on my bigger 60Hz-only screens...

Feature request: Add an option to change the refresh rate only when going into (and out of) fullscreen mode.

When presenting lots of frames in advance, is it normal for the sound to be slightly out of sync (video comes too late)?

pie1394
2nd August 2011, 15:12
madVR v0.73 released

This version seems the most stable one in recent releases to me. :thanks:


Those of you who want to use the madVR internal decoders with MPC-HC, please update to build 3520 (or newer). That build allows you to set madVR to "preferred" in the external filter list, without losing the OSD and subtitle functionality.

About this I use the different approach.
Disable all other available video decoders in MPC-HC.
The MPC-HC internal ones must not be selected, either.

For my HTPC, LAVCUVID is still the preferred video decoder. Once a HW-unsupported H.264 video stream is opened, madVR internal video decoder is automatically used. (Due to the fact it is the only available choice to MPC-HC)

Currently I only found this method to play with the H.264 yuv420p10 contents correctly. With most other video decoders, the output colors are incorrect.

rahzel
2nd August 2011, 19:43
Not sure if it's a bug, but in my setup Reclock isn't detecting the video stream fps with the internal decoders. Tested with internal MPC and Haali Splitter.
I had the same problem with v0.72, also tested LAV Splitter. Had to use Divx H264, which is fine because it's slightly faster for my slower machine.

Plutotype
2nd August 2011, 19:47
I had the same problem with v0.72, also tested LAV Splitter. Had to use Divx H264, which is fine because it's slightly faster for my slower machine.

same with 0.73 here
http://imageshack.us/f/38/madvrreclockfpsissue.png/

cyberbeing
2nd August 2011, 20:21
My solution to the ReClock problem was uninstalling and re-installing Haali Media Splitter and then checking the 'Preferred Decoder' check-box in CoreAVC. Without the 'Preferred Decoder' check-box checked in CoreAVC, ReClock won't detect the frame-rate via DirectShow using the internal madVR decoder. Since since the preferred decoder merit is higher than the madVR internal decoder, I then need to add CoreAVC as an external filter in MPC-HC with a custom merit of 00800000 or below.

It's very strange, but that's just how it is... This is probably something that James @ Slysoft forums would need to debug and fix in ReClock, I assume. madVR may still have an issue preventing ReClock from reading it's DirectShow info though (like maybe setting CoreAVC to preferred makes ReClock use it as a backup when it can't access the madVR decoder?)

Hypernova
2nd August 2011, 22:42
Any approximate time frame on 10 bit output?

Edit: By the way, I wrote a small guide on how to properly set up MPC-HC + madVR (with madVR's internal decoders), in case you want to hotlink it anywhere: http://haruhichan.com/wpblog/?p=205#guide. A slightly older version of this guide can also be found on coalgirl's page (http://coalgirls.wakku.to/?page_id=4611).

Two weeks ago? madVR support 10bit now, both internal and external decoder.

Trojita
2nd August 2011, 22:59
I tried using madVR on my laptop with some odd results.

It would play a file fine outputted to my TV, until I decided to right click and look at the menu selections or went from full screen to windowed screen. After that it would start stuttering the video like crazy.

The laptop has an i5 processor and a 5830m graphics card.

How will the new Mac Mini perform with madVR? I was looking for an all in one HTPC solution and buy a Mac Mini, possibly install Windows 7, and use XBMC+MPC-HC+MADVR+LAV.

The Mac Mini I am looking at has a 2.5GHz dual-core Intel Core i5 and a AMD Radeon HD 6630M.

Will this be able to handle madVR as well as the upscalers that are the hardest to run, like Lanzcos?

SoupRKnowva
2nd August 2011, 23:16
Two weeks ago? madVR support 10bit now, both internal and external decoder.

he was talking about 10 bit output, not 10 bit decoding support. its still dithered down to 8bits for output

rahzel
2nd August 2011, 23:27
I tried using madVR on my laptop with some odd results.

It would play a file fine outputted to my TV, until I decided to right click and look at the menu selections or went from full screen to windowed screen. After that it would start stuttering the video like crazy.

The laptop has an i5 processor and a 5830m graphics card.

How will the new Mac Mini perform with madVR? I was looking for an all in one HTPC solution and buy a Mac Mini, possibly install Windows 7, and use XBMC+MPC-HC+MADVR+LAV.

The Mac Mini I am looking at has a 2.5GHz dual-core Intel Core i5 and a AMD Radeon HD 6630M.

Will this be able to handle madVR as well as the upscalers that are the hardest to run, like Lanzcos?
MadVR uses a lot more CPU power in windowed mode. For me, it uses ~20-25% more.

e-t172
2nd August 2011, 23:53
Not sure if it's a bug, but in my setup Reclock isn't detecting the video stream fps with the internal decoders. Tested with internal MPC and Haali Splitter.

I'm guessing ReClock is looking at the timestamps of the frames coming from the video decoder to detect the frame rate. When using madVR's internal decoders, there is no DirectShow interface between the decoder and the renderer, so ReClock can't get the information it needs (because it's hidden inside madVR).

Remember our little debate about internal decoders, madshi? Hate to say "I told you so", but there you have it.

nand chan
3rd August 2011, 00:12
Two weeks ago? madVR support 10bit now, both internal and external decoder.

You're only half-right about that. madVR now supports 10 bit /input/, not output.

I'm asking on when 10 bit output will be a possibility. Afaik right now only EVR Custom Presenter can do it.

cyberbeing
3rd August 2011, 00:42
Does any GPU even support 10-bit output over Display Port via DirectX to a native 10-bit monitor? All the Professional applications use OpenGL and I think the ATI(FireGL)/NVIDIA(Quadro) drivers only officially support 10-bit output to monitors via OpenGL as well. If you can only output 10-bit to your GPU, but not display, it will likely just do 10-bit to 8-bit conversion without dithering and look worse. Even if your GPU does to driver-level dithering, why not just let madVR do its thing? Though if madshi is actually able to get 10-bit output over Display Port to supported monitors working, I welcome the support.

pankov
3rd August 2011, 01:05
madshi,
I have a couple of issues to report which happen with both v0.72 and v0.73 (haven't tried older ones but if you can't reproduce them I'll try to narrow it down).
1. If I jump to the next file in the folder (using the "]" key, which in ZoomPlayer is linked to "Media: Next Track" action) I get some contradictory OSD in madVR - the big one (with all the texts) says fullscreen exclusive mode, while on top of it there is the small one which says "windowed" and is stuck there forever. Strangely if I use the other function to play the next file in the folder (PgDn) I can't reproduce it. I'm not sure if it's madVR's fault or ZoomPlayer's ... or both ... but I thought I should report it. The strange part is that madVR is always in exclusive mode but still shows the "windowed" message. (btw I don't use the blanking function (creating black windows over inactive monitors) that you and Blight are discussing).
2. If I use ZoomPlayer's control bar to jump to the next track/file in the folder the player will hang/crash if madVR's OSD API is used to draw the control bar. I guess this could be a bug in ZoomPlayer itself - using some memory already freed by madVR but it could be the other way around so I thought it's best to report it here too.

Trojita
3rd August 2011, 02:02
MadVR uses a lot more CPU power in windowed mode. For me, it uses ~20-25% more.

It's weird though. If I start a file it is windowed and plays fine. If I double click the video to make it full screen, the video plays fine. When I go back to windowed or right click to access the menu, the video starts stuttering.

Qaq
3rd August 2011, 06:56
If you can only output 10-bit to your GPU, but not display, it will likely just do 10-bit to 8-bit conversion without dithering and look worse.
Yeah, thats why I don't use 10 bit output in EVR CP. Not that I see something bad though, just doubts...
Does any GPU even support 10-bit output over Display Port via DirectX to a native 10-bit monitor? All the Professional applications use OpenGL and I think the ATI(FireGL)/NVIDIA(Quadro) drivers only officially support 10-bit output to monitors via OpenGL as well.
I have to repeat myself: madVR needs MadVideoDriver :devil:

Plutotype
3rd August 2011, 07:47
I tried using madVR on my laptop with some odd results.

It would play a file fine outputted to my TV, until I decided to right click and look at the menu selections or went from full screen to windowed screen. After that it would start stuttering the video like crazy.

The laptop has an i5 processor and a 5830m graphics card.


I experience this only when task manager is running ( on the top or in the background ).

adolfotregosa
3rd August 2011, 13:00
Does anyone have an idea why Potplayer crashes into a black square requiring a kill process when i go from full screen into window mode?? But if i go to "madvr window mode" by moving the mouse to show potplayer seek bar and then press "enter" to get out of potplayer fullscreen it works, no crash?? It does not crash every single time but most of it yes

I'm out of ideas, already try a clean windows install. Latest potplayer 29162 + madvr 0.73 and Amd drivers 11.8..

completely out of ideas here..

thank you

edit- I don't know if the log is useful but i managed to make one when potplayer crashed.
https://rapidshare.com/files/3810133773/madVR_-_log.zip

maco07
3rd August 2011, 20:05
madVR 0.73 Worked ok with PotPlayer. 0 Problems so far.

nand chan
3rd August 2011, 21:16
Does any GPU even support 10-bit output over Display Port via DirectX to a native 10-bit monitor? All the Professional applications use OpenGL and I think the ATI(FireGL)/NVIDIA(Quadro) drivers only officially support 10-bit output to monitors via OpenGL as well. If you can only output 10-bit to your GPU, but not display, it will likely just do 10-bit to 8-bit conversion without dithering and look worse. Even if your GPU does to driver-level dithering, why not just let madVR do its thing? Though if madshi is actually able to get 10-bit output over Display Port to supported monitors working, I welcome the support.

Edit: Never mind what I wrote below, I misread your post at first. I don't know if I can get 10 bit output over Direct3D as well, I'll test it as soon as I can boot my machine again. It definitely works over OpenGL though. Would it be possible to fork madVR and add an OpenGL renderer or something?

--

The AMD FirePro drivers support 10 bit output over DisplayPort and HDMI even using Radeon cards. I have a Radeon HD4890 softmodded to a FirePro V8700 and I can get full 10-bit output working using OpenGL (unfortunately, Direct3D still crashes because the driver isn't exactly stable but I could probably fix that with a lot of tinkering).

I can display a full 10 bit ramp with all 1024 gray levels using a small OpenGL test application I wrote and it confirms that the display is A2R10G10B10.

I could attempt fixing Direct3D then use LAV Video Decoder + EVR CP but that still doesn't give me the 16 bit pipeline and not to mention the higher quality rescale functions that madVR offers, so I've chosen to stick with madVR until it supports 10 bit output.

I'm just asking whether this will be implemented any time into the foreseeable future.

cyberbeing
4th August 2011, 01:52
I actually asked madshi that same question last year. OpenGL is likely never going to happen, considering he said it was *MAJOR* work 51 madVR revisions ago.

He even mentions the 10bit (30bit color) Direct3D output support which Windows 7 added. Sadly, nothing much has changed in the past year as far as driver support AFAIK. Someone really needs to give AMD & NVIDIA a kick in the ass to properly support 10bit Direct3D output and desktop support in their drivers. AMD seems to have the lead in supporting all the high bit-depth stuff, NVIDIA was months behind in even getting 10bit OpenGL output working. Hopefully when Windows 8 w/ DirectX 11.1 rolls around, the GPU vendors will get their act in gear.

nand-chan, if you can confirm your monitor is receiving 30bit color using JanWillem32's MPC-HC build, that would be a good sign for madVR to potentially support it (at least on AMD cards).

Ever thought about creating an OpenGL version of madVR?I thought about it in the beginning, when starting madVR development. I could have chosen OpenGL over Direct3D. But then I did not see any valid reason for doing so. Some OpenGL drivers are written in such a way that internally they map back to Direct3D, anyway. Other drivers may not be written that way. But since most games use Direct3D instead of OpenGL, I would generally expect Direct3D drivers to be better optimized than OpenGL drivers. Also, Direct3D will always give me access to the latest Windows features like e.g. 10bit RGB output. Don't know if OpenGL supports that. Anyway, switching to OpenGL would cost me *MAJOR* work. So it's no really an option.

nand chan
4th August 2011, 02:55
He even mentions the 10bit (30bit color) Direct3D output support which Windows 7 added. Sadly, nothing much has changed in the past year as far as driver support AFAIK. Someone really needs to give AMD & NVIDIA a kick in the ass to properly support 10bit Direct3D output and desktop support in their drivers. AMD seems to have the lead in supporting all the high bit-depth stuff, NVIDIA was months behind in even getting 10bit OpenGL output working. Hopefully when Windows 8 w/ DirectX 11.1 rolls around, the GPU vendors will get their act in gear.

Isn't it a bit ironic then that OpenGL 10-bit output works fine but I've seen no sign of Direct3D 10-bit output? Well, I'll certainly have to do a bit more driver hacking but if I manage to get Direct3D 10-bit output working I'll post here so we can test it further.

nand-chan, if you can confirm your monitor is receiving 30bit color using JanWillem32's MPC-HC build, that would be a good sign for madVR to potentially support it (at least on AMD cards).

I've never heard of JanWillem32 or his builds. What's different about them / where do I get them? Is it different from just using EVR-CP with “10 bit output” enabled?

Also, testing 10-bit in media players is really hard since I have no 10-bit grayscale ramp to test with. If somebody could generate a true 1080p Hi10P ramp with all 1024 gray levels I would be very pleased. Then again, dithering would make testing these a bit hard either way.

Edit: Just tried it again, the only driver version that supports 10 bit at all is 8.723 (the newer ones do not patch successfully), and 8.723 does not support fullscreen Direct3D, it crashes with D3DERR_OUTOFVIDEOMEMORY. 10-bit output is currently *only* possible using OpenGL, either in windowed or fullscreen mode.

So even if madVR supports 10 bit any time soon, nobody will be able to use it because the appropriate drivers do not exist, at least not under Windows.

cyberbeing
4th August 2011, 04:32
I've never heard of JanWillem32 or his builds. What's different about them / where do I get them? Is it different from just using EVR-CP with “10 bit output” enabled?

The thread for his modified builds is here (http://forum.doom9.org/showthread.php?t=161047). JanWillem32 has been the one hacking at EVR-CP and MPC-HC to attempt to improve quality and get things like 10 bit output working. If you actually have a working 10bit setup, you could probably be of help by testing any experimental changes he makes attempting to get things working. I'm unsure what the current state of things is though, as I haven't been tracking his progress (his builds have stability problems on my old PC).

nand chan
4th August 2011, 04:43
The thread for his modified builds is here (http://forum.doom9.org/showthread.php?t=161047). JanWillem32 has been the one hacking at EVR-CP and MPC-HC to attempt to improve quality and get things like 10 bit output working. If you actually have a working 10bit setup, you could probably be of help by testing any experimental changes he makes attempting to get things working. I'm unsure what the current state of things is though, as I haven't been tracking his progress (his builds have stability problems on my old PC).

My 10 bit setup is only "working" - I can't load anything Direct3D-related in fullscreen mode or I get an out of video memory crash (that's not what's actually happening, though, it's an incorrect status code presumably).

And afaik 10-bit output only works in Direct3D when in fullscreen mode.

OpenGL 10-bit works fine as mentioned, both fullscreen and windowed, but the problem is that EVR/madVR etc. all rely on D3D.

If anybody can make me a 10 bit test ramp as mentioned I can test mplayer2's OpenGL renderer, which is *supposed* to support 10-bit output.

Qaq
4th August 2011, 09:41
So even if madVR supports 10 bit any time soon, nobody will be able to use it because the appropriate drivers do not exist, at least not under Windows.
I wonder if Protected Video Path (HDCP encription) could help here (YCC untouched, RGB 10 bit).

ryrynz
4th August 2011, 11:38
I'm wondering how I can do proper syncing if there are virtually not any timestamps available at all?

Let me know if you're unable to reproduce and I'll link you a sample.

cyberbeing
4th August 2011, 12:31
If anybody can make me a 10 bit test ramp as mentioned I can test mplayer2's OpenGL renderer, which is *supposed* to support 10-bit output.

Try this? 4:4:4 10bit Lossless MKV http://www.mediafire.com/?41q2tt8aqzw1k7a

I just saved that 1024x1024 AMD created 10-bit ramp PSD as a 16 bit 1920x1080 PNG with a black border, and loaded it into x264. Hopefully the ramp was maintained.
Here is the link to the source PSD which should look smooth on a 10bit monitor with 10bit OpenGL output activated in Photoshop: http://www.mediafire.com/?431q36icc5buvar

nand chan
4th August 2011, 13:15
Try this? 4:4:4 10bit Lossless MKV http://www.mediafire.com/?41q2tt8aqzw1k7a

I just saved that 1024x1024 AMD created 10-bit ramp PSD as a 16 bit 1920x1080 PNG with a black border, and loaded it into x264. Hopefully the ramp was maintained.
Here is the link to the source PSD which should look smooth on a 10bit monitor with 10bit OpenGL output activated in Photoshop: http://www.mediafire.com/?431q36icc5buvar

Testing this is going to be /VERY/ difficult unless I can disable dithering somehow. I can hardly see the 8-bit levels unfortunately, and I can't get it to display at all when in MPC-HC since the playback is too short and I just get a black frame right away again.

Can you encode a couple more frames?

Also, I don't have Photoshop and I don't want to illegally obtain it just for testing one single ramp, especially not since I can test OpenGL 10-bit just fine using a small program I wrote.

(Fortunately for us, if I can /hardly/ see the difference between 10 bit and dithered 8 bit in a worst-case scenario, then that means that true 10 bit output is nearly unnecessary)

mzso
4th August 2011, 13:49
Hi!
Is there any advantage to using this renderer when there is no scaling. Like when I watch 1080p videos on my fullHD monitor?

cyberbeing
4th August 2011, 14:40
Testing this is going to be /VERY/ difficult unless I can disable dithering somehow. I can hardly see the 8-bit levels unfortunately, and I can't get it to display at all when in MPC-HC since the playback is too short and I just get a black frame right away again.

Disable dithering on what? GPU, Monitor, MPlayer? If MPlayer, it doesn't do dithering when outputting 10bit OpenGL.

Your log should say the following when using -vo gl:
VO: [gl] 1920x1080 => 1920x1080 Planar 444P 10-bit little-endian

You could also force it by adding -vf format=444p10 or if you need 10bit padded to 16bit use -vf format=444p16.

If you see absolutely zero banding or dithering 'noise', and your monitor reports it is getting 30 bit color over Display Port, then it should be working. Longer version: http://www.mediafire.com/?82752bzb94u2skq

leeperry
4th August 2011, 14:59
if I can /hardly/ see the difference between 10 bit and dithered 8 bit in a worst-case scenario, then that means that true 10 bit output is nearly unnecessary
I wouldn't lose sleep over it indeed :p

ajp_anton
4th August 2011, 15:19
Hi!
Is there any advantage to using this renderer when there is no scaling. Like when I watch 1080p videos on my fullHD monitor?Chroma will still be upscaled.

ForceX
4th August 2011, 15:48
Hi!
Is there any advantage to using this renderer when there is no scaling. Like when I watch 1080p videos on my fullHD monitor?
Better colors, smooth video.

mzso
4th August 2011, 16:51
@ajp_anton @ForceX
I see. Oh well, it doesn't seem to be an option on this machine. Its really choppy. I guess I need way more video memory than I have.
http://thumbnails53.imagebam.com/14350/5f7c2a143499623.jpg (http://www.imagebam.com/image/5f7c2a143499623)

mzso
4th August 2011, 17:22
Now I realized an old version was loading. (v0.23) Now I fixed that and 0.73 loads, but it lacks the preference that the old version does. Instead I have two buttons (Edit settings, and show tray icon) that don't seem to be doing anything when I click on them.