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

Hypernova
14th May 2009, 09:32
Hi, there. It is always good to have alternative renderers. The new renderer is able to outperform any other renderer I worked with in the past in respect to image quality.

It would realy be great if the supported colorspaces could be extended to at least YUY2 and NV12 (although I know that planar colorspaces are easier to handle).
Also the support of the IBasicVideo::GetCurrentImage interface to create a snapshot would be desirable.

If you look at the first page, I believe madshi already explain why he intentionally made madVR support only one colorspace. Also, he already said that screenshot is middle priority feature. Use search for more info.

VHT
14th May 2009, 15:17
Hi! I'm using currently EVR CP and BT709 in shaders.With your madvr I get better PQ but how can I get BT709 color mode on in your video renderer? with LUT? If so, then how?

honai
14th May 2009, 15:22
madVR choses the correct coefficients (601 or 709) automatically. depending on the width/height of the source.

racerxnet
14th May 2009, 15:48
madVR choses the correct coefficients (601 or 709) automatically. depending on the width/height of the source.

What happens when you scale SD content to HD? I would assume you are now using the wrong color space and need to calibrate accordingly.. Hence the suggestion to allow the user to select the correct LUT within the GUI.

MAK

noee
14th May 2009, 16:30
Why would you scale your SD material before sending it to madVR? That's really one of the main reasons to use madVR, unless I'm missing something completely?

racerxnet
14th May 2009, 16:42
Why would you scale your SD material before sending it to madVR? That's really one of the main reasons to use madVR, unless I'm missing something completely?

Unless I have an external scaler, I need to scale to the native panel resolution of the LCD for 1:1 pixel mapping. That is the whole point of using the PC; as a scaler for the output. Some of the HD LED tv's have a 1366 x 768 native resolution such as mine, and I need to scale to this for clear readable text. There are other reasons as well, but in my case this is the need/reason.


Thanks,

MAK

Grmpf
14th May 2009, 16:51
Unless I have an external scaler, I need to scale to the native panel resolution of the LCD for 1:1 pixel mapping. That is the whole point of using the PC; as a scaler for the output. Some of the HD LED tv's have a 1366 x 768 native resolution such as mine, and I need to scale to this for clear readable text.

You did read the first page - did you ? One of the key elements madVR is doing is scaling and madVR does this far better than any (or most) other solutions on your pc. So if you are scaling before you feed your video into madVR you are doing something wrong (imho), the best case is it to leave your video they way it is and let madVR handle the proper change from 4:2:0 to 4:4:4, the scaling and the colormatrix (601 or 709).

Steveo08
14th May 2009, 17:08
i have a question to madVR at present i am using mpc-hc with dxva and for a better picture the pixel-shader "sharpen complex 2".

now i would like to know how do i get the same (and perhaps better???) results with madVR?

i am using vista 32 with a geforce 8600 gt hdmi.

so and an other question is, does anyone get coreavc 1.95 working with cuda and madVR?

noee
14th May 2009, 17:14
With all due respect MAK, you are, quite simply, missing one of the main points of using madVR. I suggest you do as Grmpf recommends and go back and read the first page.

Steveo08
14th May 2009, 17:18
With all due respect MAK, you are, quite simply, missing one of the main points of using madVR. I suggest you do as Grmpf recommends and go back and read the first page.



you mean me?

73ChargerFan
14th May 2009, 17:27
you mean me?
noee was talking to racerxnet, from a few posts above.

Unless I have an external scaler...

Thanks,

MAK

KoD
14th May 2009, 17:28
Ok, since this gets repeated:
- CoreAVC using CUDA and madVR works. If you get issues, it simply means you need to use a less demanding algorithm for resampling (max gpu rendering times may seem to be below frame duration, but in reality you have spikes in max gpu rendering times which go above frame duration and that's why you get jerky playback).
- subtitles with madVR work. I'm using ZoomPlayer and vsfilter.dll (the subtitle renderer). MPCHC might not work since it has code that deliberately skips vsfilter from loading (I'm not very sure about this though, I'm not using MPCHC). The most recent version of vsfilter.dll is usually the one packaged in Aegisub, since jfs is the one that did most vsfilter patches in recent times. jfs, I hope you don't mind if I post a direct link to your latest version: vsfilter-2.39e (http://www.animereactor.dk/aegisub/vsfilter-2.39e.rar). Download it, unrar it, and register it with your favorite filter manager or on the command line.

racerxnet
14th May 2009, 17:31
You did read the first page - did you ? One of the key elements madVR is doing is scaling and madVR does this far better than any (or most) other solutions on your pc. So if you are scaling before you feed your video into madVR you are doing something wrong (imho), the best case is it to leave your video they way it is and let madVR handle the proper change from 4:2:0 to 4:4:4, the scaling and the colormatrix (601 or 709).

I have been on this thread from the beginning, so yes I read all pages. I am not concerned about the color space from 4:2:2 to 4:4:4 as I am aware of this. If you read my thread correctly I am concerned whether MadVr uses the correct Lut when scaling to the NATIVE resolution of my panel. If it does, GREAT. If not it would be nice to have a selection within the GUI for 601 or 709.

The reason I ask this is: Is MadVR is using the scaling values from powerstrip to identify 601 or 709, or is it using a flag within the stream to identify SD or HD. If using the first situation we will have the wrong lut in use. The use of the PC to scale has been done by many as you are aware, and to give control over custom porch values on a CRT as well.

MadVr has no capabilities to change resolution, it is the job of the graphics card; ie from (SD)720 x 480 to (HD)1920 x 1080p. Please correct me if I am mistaken as to how MadVr determines LUT usage.


Thanks,

MAK

mark0077
14th May 2009, 17:32
I have been on this thread from the beginning, so yes I read all pages. I am not concerned about the color space from 4:2:2 to 4:4:4 as I am aware of this. If you read my thread correctly I am concerned whether MadVr uses the correct Lut when scaling to the NATIVE resolution of my panel. If it does, GREAT. If not it would be nice to have a selection within the GUI for 601 or 709.

The reason I ask this is: Is MadVR is using the scaling values from powerstrip to identify 601 or 709, or is it using a flag within the stream to identify SD or HD. If using the first situation we will have the wrong lut in use. The use of the PC to scale has been done by many as you are aware, and to give control over custom porch values on a CRT as well.

MadVr has no capabilities to change resolution, it is the job of the graphics card; ie from (SD)720 x 480 to (HD)1920 x 1080p. Please correct me if I am mistaken as to how MadVr determines LUT usage.


Thanks,

MAK

No madVR does the changing of the resolution for you and output that to your display, using a variaty of techniques that you can choose from within the madVR options.

Grmpf
14th May 2009, 17:53
I have been on this thread from the beginning, so yes I read all pages. I am not concerned about the color space from 4:2:2 to 4:4:4 as I am aware of this. If you read my thread correctly I am concerned whether MadVr uses the correct Lut when scaling to the NATIVE resolution of my panel. If it does, GREAT. If not it would be nice to have a selection within the GUI for 601 or 709.

The reason I ask this is: Is MadVR is using the scaling values from powerstrip to identify 601 or 709, or is it using a flag within the stream to identify SD or HD. If using the first situation we will have the wrong lut in use. The use of the PC to scale has been done by many as you are aware, and to give control over custom porch values on a CRT as well.

MadVr has no capabilities to change resolution, it is the job of the graphics card; ie from (SD)720 x 480 to (HD)1920 x 1080p. Please correct me if I am mistaken as to how MadVr determines LUT usage.


Thanks,

MAK

Hello Mak,

i didn't wanted to be rude in my last post, but i think you still have some misunderstanding about madVR and how it works. Powerstrip changes the resolution of your PC/Desktop and Player software (if its fullscreen), but the scaling is done by the renderer (if you do not use ffdshow or similar and you should *not* use it if you use madVR instead), common renderers doesn't allow you to choose how they scale and they scale bad compared to madVR (or ffdshow, thats why everyone uses ffdshow to scale before madVR was around), but madVR gives you the full control over it, you can even choose differend scalingmethods for luma and chroma ! This has nothing to do with the LUT btw. the LUT is for changing the colorspace and for correcting the primaries/etc. of your display.

So now to your "problem", madVR looks at the input resolution (if you feed SD it uses 601, if you feed HD it uses 709) and not at the output resolution to determine which colormatrix/LUT to use. It does not use the output resolution for the determination or some flag or so, just the input resolution you feed into madVR (thats one reason why it is bad to scale before madVR).

mark0077
14th May 2009, 18:07
madshi, you can download a TestDVD here http://merifon.altervista.org/TestDVD.html

This also gives the macrovision failed error with madVR and Haali renderers so you might be able to get around that issue :D

Best of luck!

racerxnet
14th May 2009, 18:25
So now to your "problem", madVR looks at the input resolution (if you feed SD it uses 601, if you feed HD it uses 709) and not at the output resolution to determine which colormatrix/LUT to use. It does not use the output resolution for the determination or some flag or so, just the input resolution you feed into madVR (thats one reason why it is bad to scale before madVR).

Thanks for the heads up. All I needed to know is how it is determining the Lut usage and you explained it quite clear. I do not use FFdshow. MPC-hc uses Nvidia audio-video decoder and Madvr for external filters. That's all. I've checked the output levels with a test disk but wanted to make sure how the lut was being used.


Thanks,

MAK

TinTime
14th May 2009, 18:26
So now to your "problem", madVR looks at the input resolution (if you feed SD it uses 601, if you feed HD it uses 709) and not at the output resolution to determine which colormatrix/LUT to use. It does not use the output resolution for the determination or some flag or so, just the input resolution you feed into madVR (thats one reason why it is bad to scale before madVR).

Just to add, the SD/HD decision is made with these boundaries:
HD = wider than 1024 or higher than 576

racerxnet
14th May 2009, 18:47
Just to add, the SD/HD decision is made with these boundaries:

Originally Posted by madshi View Post
Originally Posted by madshi View Post
HD = wider than 1024 or higher than 576

Which does not explain my desire to know specifically how LUT use is determined. Input HD = wider than 1024 or higher than 576 or, output of the stream??? Madshi, would you please clarify this. I know there have been requests to select the Lut profile from the GUI in previous posts, so I am not the only one concerned about this situation.

Thanks,

MAK :o

madshi
14th May 2009, 18:49
It would realy be great if the supported colorspaces could be extended to at least YUY2 and NV12
YUY2 support is not planned. Simple reason: Some decoders prefer to output YUY2 and always do that if the renderer accepts it, but they are willing to output YV12 if YUY2 is not accepted. YV12 is better for quality. So madVR does not accept YUY2 to force decoders to output the better quality format.

NV12 could eventually be added later, but you can also use ffdshow to convert YV12 to NV12 right now. So it's not high priority for me.

i have a question to madVR at present i am using mpc-hc with dxva and for a better picture the pixel-shader "sharpen complex 2".

now i would like to know how do i get the same (and perhaps better???) results with madVR?
Custom post processing pixel-shaders are currently not supported by madVR. That will come later...

madshi, you can download a TestDVD here http://merifon.altervista.org/TestDVD.html

This also gives the macrovision failed error with madVR and Haali renderers so you might be able to get around that issue :D
Thanks!

Which does not explain my desire to know specifically how LUT use is determined.
Grmpf already explained that perfectly well.

Egh
14th May 2009, 19:58
Regarding these 601/709 colormatrices, I have already suggested an option to override the matrix chosen over automatic detection. The reason is that the resolution-based condition is not always correct (I think one such sample from Apple has been posted here already, and there are some other cases as well, let's say there are plenty of encoders in the world and not all of them adjust colourmatrix as required :P)

pie1394
15th May 2009, 02:01
The stream demuxer or the video decoder often knows the video output's color space. (Of course, only if appropriately encoded)

To make it more accurate to handle the decoded video frame's "color space", there are two methods:

1. If there is such MetaData embedded in the decoded video frame, the video post-processor / renderer can handle this by itself.

2. If it is not embedded in the decoded video frame, this relies on the player program to grab video stream's color space info from stream demuxer or video decoder, and instruct the video post-processor/renderer to do the right conversion. Of course the video processor needs to provide an API for the player to adjust the setting dynamically.

AJ73
15th May 2009, 11:30
I invested a lot of time to undderstand pros and contras of all the colorapaces (in the PC area not in the TV area).
I do not understand why YV12 (as a 4:2:0 color subsampling) is better in quality than YUY2 (or UYVY) that has twice as much color information from the original source than YV12 (or NV12).
Is generally more information from the source not better than less?

MPEG-4 and H.264 (not the studio and high quality profiles) use 4:2:0 internally so the information in the source (file, RTP stream) is already lost. But there are also formats like MJPEG that use higher quality color subsampling internally (4:2:2) and some formats also use 4:4:4 color subsampling. My attemt was alwas to avoid any color conversion if possible. That is the reason why YUY2 would have been nice.

You are right that FFDSHOW raw filter can be used for conversion (that is in most cases lossy). But in a multiinstance application the use of an additional filter is bad for the performance.

FoLLgoTT
15th May 2009, 11:47
I do not understand why YV12 (as a 4:2:0 color subsampling) is better in quality than YUY2 (or UYVY) that has twice as much color information from the original source than YV12 (or NV12).
Is generally more information from the source not better than less?

There is no more information. The source (DVD/Blu-ray) is subsampled in 4:2:0. When outputting YUY2 the decoder itself does the upsampling to 4:2:2 which is usually much worse than the upsampling madVR does. YV12 ensures that the decoder outputs the data as decoded. This is the reason why YV12 is better in this case.

madshi
15th May 2009, 11:50
The stream demuxer or the video decoder often knows the video output's color space. (Of course, only if appropriately encoded)

To make it more accurate to handle the decoded video frame's "color space", there are two methods:

1. If there is such MetaData embedded in the decoded video frame, the video post-processor / renderer can handle this by itself.
True.

I do not understand why YV12 (as a 4:2:0 color subsampling) is better in quality than YUY2 (or UYVY) that has twice as much color information from the original source than YV12 (or NV12).
Is generally more information from the source not better than less?
Yes, but only if the source actually contains that much information. And that is exactly the key point. By far most sources do not contain more than 4:2:0.

MPEG-4 and H.264 (not the studio and high quality profiles) use 4:2:0 internally so the information in the source (file, RTP stream) is already lost.
It's not only MPEG4 and h264. MPEG1, MPEG2, MPEG4, h264, DviX, Xvid, VC-1 all usually use 4:2:0. There are some rare exceptions where 4:2:2 or 4:4:4 is encoded, but 4:2:0 is by far the most common used format for encoding. Still, many decoders insist on outputting YUY2, if you let them, even for 4:2:0 sources. Which means that the decoder is internally doing chroma upsampling in inferior quality. And that is what I want to avoid.

Edit: Seems I was too slow in replying... ;)

Thunderbolt8
15th May 2009, 13:00
got my new HD 4770 (only have a PCIe 1.0 slot though), this is for the US sin city BD:

display 1 estimate: 62.XXXXXHz
display 2 estimate: 60.0XXXXHz
display 3 estimate: 60.0XXXXHz
display 60.03804Hz
movie 23.976 fps
frame queue 16/16
movie res 1920, 1080
target rectangle 0, 152, 1280, 872
movie frame interval 41.71ms
avrg gpu rendering time 6-14ms (depending on scene)
max gpu rendering time 8-20 I'd say
arg present wait 'till 14ms


seems like the HD 4770 is not yet listed under the cards to choose new drivers for at ati/amd.com?

btw. is installing that avivo video thing good for anything?

Mark_A_W
15th May 2009, 14:34
In my experience, interlaced output doesn't work well with HTPCs, though, so my plans do not include interlaced output or interlaced graphics modes...



:scared:

As someone who uses an Interlaced resolution, very successfully (1080i 95.904hz, which is 47.952hz in Powerstrip with the interlaced box ticked)...

I'm obviously freaking out at that statement.

Does it really make that much difference to the renderer? How does it know if the 96hz it is detecting is 96 progressive or 48 interlaced?

I assure you, interlaced resolutions work very, very well. Currently I have very smooth playback with Haali + Reclock, or MPC EVR custom.

All I'm asking is that interlaced resolutions are not precluded from smooth playback. I, at least, can live without fancy refresh rate changes.

madshi
15th May 2009, 14:45
All I'm asking is that interlaced resolutions are not precluded from smooth playback.
I don't have any code that specifically excludes interlaced output modes from working - and I don't have any plans to add any such code.

pie1394
15th May 2009, 16:04
Although madshi does not plan to support "deinterlace" capability, I still would like to explain some rules to deal with the interlaced contents here.

For interlaced contents to be "vertically" scaled, it needs to be deinterlaced first no matter the output device is progressive-scan (most LCD, regular PDP) or interlaced-scan one (regular CRT, Hitachi ALIS PDP, special LCD monitor for broadcasting 1080i content inspection).

For interlaced-scan output device, it can be chosen to do the separate vertical field-scaling on interlaced contents to avoid the deinterlacing process. But the good motion-adaptive deinterlacing + frame scaling mode still produce better video quality, especially in the static scenes.

For progressive-scan output device, there is no choice. "deinterlacing" process must be done for interlaced contents before the horizontal + "required" vertical scaling processes.

73ChargerFan
15th May 2009, 18:51
In my experience, interlaced output doesn't work well with HTPCs, though, so my plans do not include interlaced output or interlaced graphics modes...
The first two or three generations of DLP rear projection TVs were 1080i only. That's a lot of early adopters.

I'm lucky, in that I purchased the first 1080p DLP produced. My set works equally well with 1080i/1080p output from my HD-DVD players.

Wilbert
16th May 2009, 00:06
@madshi


Originally Posted by Wilbert
In a few days i will post a story about those splines! Stay tuned

Looking forward to it...
Please have a look at: http://forum.doom9.org/showthread.php?p=1286008#post1286008

Mark_A_W
16th May 2009, 00:46
I don't have any code that specifically excludes interlaced output modes from working - and I don't have any plans to add any such code.

Thank you. That's all I ask.


Did you get my uploaded vysnc.dat file? I think I'm the only one who did it - and it was pages and pages ago now.

Hypernova
16th May 2009, 02:16
Thank you. That's all I ask.


Did you get my uploaded vysnc.dat file? I think I'm the only one who did it - and it was pages and pages ago now.

I did too, and a couple others, so you're not the only one :)

madshi
16th May 2009, 22:21
Did you get my uploaded vysnc.dat file?
Those vsync.dat files I got indicated that sometimes your graphics cards report flat out incorrect scanline information. That confused madVR's display refresh rate calculation formulas. That should be worked around in the next madVR build.

madshi
16th May 2009, 22:49
madVR 0.10 released

http://madshi.net/madVR.zip

* added first (buggy) version of smooth motion rendering
* added uploading queue (up to 8 frames)
* added rendering queue (up to 8 frames)
* added information about dropped and delayed frames to OSD
* removed GPU rendering times from OSD
* added (buggy) frame stepping support
* modified DVD / macrovision handling slightly
* display refresh rate detection should no longer produce incorrect results
* added separate controls for luma upscaling and downscaling
* fixed: image was sometimes offset in 1:1 mode in ZoomPlayer
Hurray, first smooth motion version out!

Unfortunately I've found that it's next to impossible to get things *perfectly* smooth in windowed mode (at least on my PC). So perfection will have to wait until madVR is able to do fullscreen exclusive mode. However, my current development PC is not the fastest/best, so maybe you can get good enough results with madVR even in windowed mode, if your PC works better than mine. At least madVR 0.10 should be a lot smoother than older versions (I hope).

Technically the problem is that whenever you tell the GPU to display a rendered frame during the next vsync blank, the GPU stalls and stops doing anything else until the next vsync blank finally occurs. That means that if madVR asks the GPU very early to display a rendered frame during the next vblank, there's not enough GPU time left to do the actual rendering, cause the GPU is stalled most of the time waiting for the next vblank. On the other hand, if madVR tries to display the rendered frame as late as possible (in order to gain more GPU processing time), the danger of missing the target vblank period grows. A missed target vblank means judder or tearing or both. Argh, isn't that fun? AFAIK, these problems should go away in fullscreen exclusive mode, fortunately.

madVR 0.10 now uploads the video data to the GPU in a separate thread. Also rendering and displaying the images is also done in separate threads. That all means that retrieving correct and meaningful GPU rendering times is more difficult. So I've simply removed GPU rendering time information from the OSD now. However, I've added information about uploading and rendering queues. Generally, if the upload and rendering queues stay over at least 4/8, your GPU seems to be fast enough to handle the madVR settings you've activated.

Also I've added information about dropped and delayed frames to the OSD. During startup of movie playback it's acceptable to get a few dropped or delayed frames. But 3-5 seconds after the movie starts the number of dropped/delayed frames should not increase, anymore. Every time you see motion judder on screen, probably either the dropped or delayed frame count increases. If the number of dropped/delayed frames does not increase for you after 3-5 seconds of runtime, you should get perfect playback quality. Well, I mean: As perfect as the ratio of display refresh rate and movie frame rate permits, of course.

Display refresh rate calculation should work correctly now. If it doesn't, you will probably not get smooth motion playback. So make sure you double check (especially those of you for which display refresh rate calculation failed to work with older madVR versions).

I've also slightly worked on DVD playback ("macrovision failure"). For me it works. However, I've noticed that the DScaler decoder doesn't always work with madVR when playing back DVDs while the Cyberlink MPEG2 decoder always works.

Frame stepping is now implemented, but buggy. Generally madVR has gone a bit buggy/unstable due to the many deep changes. As long as you don't pause/stop/resize etc, things should be stable. If you do anything madVR has to react to you might get funny results, or maybe it will work just fine. If you run into problem that is reliably reproducable please let me know.

wayland
16th May 2009, 23:21
how do you open the detailed osd in 0.10? ctrl+j twice doesnt seem to do it any more.

also going a bit off topic but how should the dynamic range be set on nvidia hardware full(0-255) or limited (16-235)? either seems to result in a differant image with madvr and HR compared to evr custom

honai
17th May 2009, 00:15
madshi, awesome work, thanks! Tested it again on the Iron Man BD w/ the 4770, refresh rate was correctly detected at 60.00071 Hz (and stayed there for the whole 250s I tested), decoder queue 16/16 fixed, upload queue 4/8 fixed, render queue 8/8 fixed, 10 dropped frames, 2 delayed, all during first few seconds. Playback "feels" almost perfectly smooth, the very tiny stuttering could also be the effect of 23.976@60Hz playback. Feels definitely as smooth as the best iteration of Beliyaal's EVR CP.

One tiny request: Could you make the OSD position toggle between the top and bottom? Might come in handy for us plasma users. ;)

Mark_A_W
17th May 2009, 00:28
Madshi, this new version, well...


YEA HAR!!


display 95.90368Hz (397s) perfect, time just keeps growing
movie fps 23.976fps (says source filter)
decoder queue 16/16
upload queue 4/8
render queue 8/8
movie res 1920,1080
target rectangle 0,0,1920,1080
v sync interval 10.43ms
movie frame interval 41.71ms
dropped frames 3 Just from startup, stable after that
delayed frames 3 Just from startup, stable after that



Playback is smooth, so far. I need to watch a whole movie to be certain.

I am using Reclock, but disabled (original speed locked, slaved).

The HD2600XT seems capable for watching 1080p material at 1080i 96hz.

Was it the interlaced res that causes the scanline reporting issue? Because an interlaced res has a half scanline at the bottom, or somesuch, to form the offset between fields (it has an early V-sync once per frame).


A small feature request: A tearing/smoothness test. Using Zoomplayer, with Reclock "bypassed", I have no tearing bar test, which is very handy for checking issues.

And that raises the Reclock issue...are you using Reclock? If so, what settings? Active or bypassed? If not, will Reclock bypassed, just a WASAPI renderer, cause any issues? It doesn't seem to.


I'm slightly concerned about the need for Fullscreen Exclusive for "perfect" playback. I understand why (I think), but it's a bit clunky - and there goes the UI on Zoomplayer. Oh well, smooth playback and gamma are my number one priorities.


Once this renderer has subtitles, it will replace Haali Renderer on my system for all material.

The GPU rendering stats in the OSD are missed.

Thank you very much Madshi, honai is right, it "feels" smooth. With Haali Renderer it always "feels" like it is about to throw a little stutter party. Beliyaal EVR custom has this smooth feel too, but I get a glitch after an hour.

I will test a full movie tonight.

Thunderbolt8
17th May 2009, 00:38
just to nitpick, does it have to be 0.10 or 1.0? 10 comes after 9, yes, but just from the looks after 0.9 I'd expect to get 1.0. I'd rather say that 0.10 follows after 0.09 :P

for the same movie as a bit above, with 0.10 & HD 4770:

display estimate: 60.037XXHz
movie 23.976 fps
decoder queue 16/16
upload queue 4-5/16
renderer queue 8/8
movie res 1920, 1080
target rectangle 0, 152, 1280, 872
vsync intervall 16.66ms
movie frame interval: 41.71ms
dropped frames: usually none, ~3 when skipping through
delay frames: usually none, 1-2 when skipping through

whats a bit anyong is that flicker when you hover over the playback bar with the mouse in fullscreen mode, then there is a flickering each time. but I guess thats still part of the buggy phase.

Mark_A_W
17th May 2009, 01:10
whats a bit anyong is that flicker when you hover over the playback bar with the mouse in fullscreen mode, then there is a flickering each time. but I guess thats still part of the buggy phase.

What player Thunderbolt?

wayland
17th May 2009, 01:16
mpc-hc does that.

about the nvidia question i asked changing from rgb to YCbCr444 fixes it

Hypernova
17th May 2009, 02:23
Refresh rate is correct. Upload queue is ~4-5/8. Render queue is ~7-8/8. But I can't get any smooth playback if my setting is anything beyond Bilinear/Bilinear when go fullscreen (2560x1600). Drop and delayed frame also keep on incresing. Maybe I did something wrong?

cyberbeing
17th May 2009, 02:31
It seems much smoother now, which is good, but it's unstable. I've had at least 10 random lockups of the renderer in the last hour, when doing things like pausing, seeking, and going from fullscreen <-> windowed. If you don't mess with it, it seems fine though.

Pausing the video and going to fullscreen seems to lockup the renderer every time. It goes to fullscreen with the screen black, displays what I assume was in the frame cache, the screen goes black again, and the renderer locks-up.

There is a randomly occurring issue when it get the end of the file. Sometimes it will exit fullscreen, display a black frame, and then playback the last half-second (emptying the frame cache?).

Moving the video window around with MPC-HC results in massive flickering and tearing.

Considerable dropped/delayed frames when first opening the file and when switching from fullscreen <-> windowed.

For some reason I occasionally get delayed frames (the render queue fluxuates between 7/8 and 8/8) when I downscale a 1920x1080 video to 1600x900 (1600x1200 display res). When upscaling, I don't have this problem.

It's also not remembering luma scaling settings:
http://img32.imageshack.us/img32/4861/lumascale.png

The good news is that the sample I uploaded a 3 weeks ago, as well as pretty much everything else I tried, now seems to playback nice and smooth with 0.10.

Egh
17th May 2009, 04:00
Epically superior build!!!!


Believe it or nuts, but you [almost] solved the secondary monitor problem! Now it doesn't max one of the cores, keeps it at half (i.e. tends to be around 50%) on one of the cores! That said, however, there's still substantial increase when moving MPCHC window to a different monitor. Increase happens on one core only so there's still something lurking in the code. But generally for 720p here I can even move the window and still have good CPU rates.


That is still pales in comparison to the CPU usage. What did you do?!!! It now runs on primary monitor with just half of the previous CPU load!!!
Using lanczos4&softcubic50 I can achieve just less than 20% cpu typical usage. That is on 720p avc content slightly downscaled (so shader math still works).
It is indeed too early to compare HR and mVR directly, as mVR doesnt' do subs yet, but I expect it to be on par regarding CPU usage. So unsubbed 720p content seems to take about same CPU amount. And that with HR using bicubic and mVR using lanc4 & softcubic.

Now of course the bugs :)))

a. Chroma upscaling setting is not remembered.
b. Ugly when moving window around, video is flickering ( blank black area clearly seen and then video).
c. Even more annoying -- in fullscreen mode it flickers (again showing blank black frame and then back to video) when moving cursor to the control bar below.
It flickers twice -- first when opening the bar and when closing it.
d. Each change of upscale method leads to quite serious amount of dropped frames. Chroma and the other luma upscaling methods typically cause 3-5 frames loss, whilst active method change may, seemingly randomly, cause a loss between 10 and (record value) 40 frames. These values are from same video (i.e. even on same video the number of dropped frames is unpredictable). And yes, you got it right -- even if luma downscaling is used, when I change chroma upscale method it still drops several frames.

Other than that, still wonderful achievement! Personally, only feature that prevents me to switch over to mVR from HR is the subs ;)

cyberbeing
17th May 2009, 04:49
It is indeed too early to compare HR and mVR directly, as mVR doesnt' do subs yet, but I expect it to be on par regarding CPU usage.

Which subtitle renderer(s) aren't working with madVR?

Why don't you use VSFilter? It works perfectly with every madVR revision.

Egh
17th May 2009, 05:59
Which subtitle renderer(s) aren't working with madVR?

Why don't you use VSFilter? It works perfectly with every madVR revision.

MPC sub renderer is the best :) Especially if you upscale video on playback.

As for internal subtitle mechanics, I'm not sure. Renderers (such as Haali's one) have a subtitle pin. As MPC renders in some user selected resolution (I personally use 1280x1024), I guess it is renderer's job to up/down scale the subtitle texture and blend it with the video. Using some filter in-between is a flexible but not optimal approach, imo.

Mark_A_W
17th May 2009, 06:34
I think I have found a bug.

I'm using Zoomplayer and when running MadVR my monitors turn off (screensaver settings). When running any other renderer all is well.


Can anyone else verify this?

Thunderbolt8
17th May 2009, 07:17
What player Thunderbolt?mpc-hc

madshi
17th May 2009, 07:59
how do you open the detailed osd in 0.10? ctrl+j twice doesnt seem to do it any more.
There is only one OSD in 0.10.

also going a bit off topic but how should the dynamic range be set on nvidia hardware full(0-255) or limited (16-235)? either seems to result in a differant image with madvr and HR compared to evr custom
about the nvidia question i asked changing from rgb to YCbCr444 fixes it
If you do that, the graphics card will apply processing on madVR's output, which is what we usually don't want. Furthermore, if the image looks different that way, your GPU is probably doing something wrong. Cause madVR's output is how it's supposed to look. I'd guess that your EVR Custom image quality is all wrong. However, there's a chance, albeit very low, that your display doesn't handle RGB input correctly and needs YCbCr input. But I really doubt that's the case...

Tested it again on the Iron Man BD w/ the 4770, refresh rate was correctly detected at 60.00071 Hz (and stayed there for the whole 250s I tested), decoder queue 16/16 fixed, upload queue 4/8 fixed, render queue 8/8 fixed, 10 dropped frames, 2 delayed, all during first few seconds. Playback "feels" almost perfectly smooth, the very tiny stuttering could also be the effect of 23.976@60Hz playback. Feels definitely as smooth as the best iteration of Beliyaal's EVR CP.
Good to hear. For me EVR CP is not perfectly smooth, either. I guess my PC is just not up to the task in windowed mode. But the good thing is that on my PC madVR seems to be as smooth as EVR CP now, too, just like on your PC.

One tiny request: Could you make the OSD position toggle between the top and bottom? Might come in handy for us plasma users. ;)
Maybe later. There are so many very important things that still need to be done. So I don't really want to spend time on doing things like moveable OSD right now when more important things are still on the to do list...

Madshi, this new version, well...


YEA HAR!!


display 95.90368Hz (397s) perfect, time just keeps growing
movie fps 23.976fps (says source filter)
decoder queue 16/16
upload queue 4/8
render queue 8/8
movie res 1920,1080
target rectangle 0,0,1920,1080
v sync interval 10.43ms
movie frame interval 41.71ms
dropped frames 3 Just from startup, stable after that
delayed frames 3 Just from startup, stable after that

Playback is smooth, so far.
:)

Was it the interlaced res that causes the scanline reporting issue?
I don't think so. madVR asks the GPU about which scanline is currently being drawn. The allowed numbers (according to Microsoft documentation) are between 0 and the height of the graphics mode you're using. So if your GPU is set to 1080p, your GPU may return scanline numbers between 0 and 1080. However, I got scanlines reported like 1116. That confused my display refresh rate calculation formulas. This looks like a simple bug in the graphics driver to me.

A small feature request: A tearing/smoothness test. Using Zoomplayer, with Reclock "bypassed", I have no tearing bar test, which is very handy for checking issues.
Yeah, would make sense. But just as the moveable OSD position I have to say that there are simply more important things that need to be done first.

And that raises the Reclock issue...are you using Reclock? If so, what settings? Active or bypassed? If not, will Reclock bypassed, just a WASAPI renderer, cause any issues? It doesn't seem to.
Currently I'm not using ReClock, but I might use it soon due to WASAPI rendering.

I'm slightly concerned about the need for Fullscreen Exclusive for "perfect" playback. I understand why (I think), but it's a bit clunky - and there goes the UI on Zoomplayer.
Well, if you have perfectly smooth playback in windowed mode then just use that. Maybe faster PCs can do that.

just to nitpick, does it have to be 0.10 or 1.0? 10 comes after 9, yes, but just from the looks after 0.9 I'd expect to get 1.0. I'd rather say that 0.10 follows after 0.09 :P
I thought about going 1.0. After all smooth playback is a BIG thing. But 1.0 is supposed to be a stable build where all important features are implemented - and madVR is not there yet. So I decided to go 0.10. Yeah, so I should have started with 0.01. Well, there are more important things than version numbers... ;)

Refresh rate is correct. Upload queue is ~4-5/8. Render queue is ~7-8/8. But I can't get any smooth playback if my setting is anything beyond Bilinear/Bilinear when go fullscreen (2560x1600). Drop and delayed frame also keep on incresing. Maybe I did something wrong?
I don't think you did anything wrong. I'm not totally sure why some PCs seemingly can do smooth playback without any hiccups in windowed mode while other PCs can't. On my PC my logs are telling me that sometimes the PC is busy doing "something" (I don't know what) and so madVR is not getting any processing time for sometimes 30ms at a time. In such a situation there's no way to avoid a delayed or even dropped frame. Probably it's the same cause for you. You could try minimizing the amount of processes and services running on your PC that might interfere. Maybe that helps. You could also try reducing that output resolution a bit. 2560x1600 is quite taxing on the hardware, of course. Although your upload and render queues do look fine, so your GPU seems to be up to the task... I can only hope that fullscreen exclusive mode will fix the remaining non-smooth problems on your PC - and mine. Although I'll get a new HTPC early next week. So maybe my problems will be gone by then...

It seems much smoother now, which is good, but it's unstable. I've had at least 10 random lockups of the renderer in the last hour, when doing things like pausing, seeking, and going from fullscreen <-> windowed. If you don't mess with it, it seems fine though.
Yeah, exactly what I wrote in the release notes... ;)

Of course I could have waited with releasing madVR 0.10 until it's completely stable. But that would have meant that you guys would have had to wait another 1-2 weeks.

Pausing the video and going to fullscreen seems to lockup the renderer every time. It goes to fullscreen with the screen black, displays what I assume was in the frame cache, the screen goes black again, and the renderer locks-up.

There is a randomly occurring issue when it get the end of the file. Sometimes it will exit fullscreen, display a black frame, and then playback the last half-second (emptying the frame cache?).

Moving the video window around with MPC-HC results in massive flickering and tearing.
Ok, thanks, will look into that (next week).

For some reason I occasionally get delayed frames (the render queue fluxuates between 7/8 and 8/8) when I downscale a 1920x1080 video to 1600x900 (1600x1200 display res). When upscaling, I don't have this problem.
The render queue fluctuating between 7/8 and 8/8 is perfectly fine. It may go down to 4/8 without having to worry. Lower values than 4/8 might be dangerous for smooth motion, though. And of course the "delayed frames" number in the OSD increasing throughout the whole movie is bad.

It's also not remembering luma scaling settings
Ouch, true.

Epically superior build!!!!
:)

Believe it or nuts, but you [almost] solved the secondary monitor problem! Now it doesn't max one of the cores, keeps it at half (i.e. tends to be around 50%) on one of the cores! That said, however, there's still substantial increase when moving MPCHC window to a different monitor. Increase happens on one core only so there's still something lurking in the code. But generally for 720p here I can even move the window and still have good CPU rates.
Moving the window to another monitor while the playback is already running is not supported yet. Currently in order to get the best results you have to move MPC HC to the right monitor first and only then load the movie file and start playback.

That is still pales in comparison to the CPU usage. What did you do?!!! It now runs on primary monitor with just half of the previous CPU load!!!
Using lanczos4&softcubic50 I can achieve just less than 20% cpu typical usage. That is on 720p avc content slightly downscaled (so shader math still works).
It is indeed too early to compare HR and mVR directly, as mVR doesnt' do subs yet, but I expect it to be on par regarding CPU usage.
Yeah. Seems like redoing the presentation logic did the trick with CPU usage. I always said that madVR was not supposed to consume (much) more CPU than the other renderers. For me madVR 0.10 consumes slightly more than EVR-CP, but really only slightly more. CPU consumption got down quite a bit compared to 0.9. Maybe I should have added that to the changelog... :)

a. Chroma upscaling setting is not remembered.
b. Ugly when moving window around, video is flickering ( blank black area clearly seen and then video).
c. Even more annoying -- in fullscreen mode it flickers (again showing blank black frame and then back to video) when moving cursor to the control bar below.
It flickers twice -- first when opening the bar and when closing it.
Yeah, that are all things I need to work on.

d. Each change of upscale method leads to quite serious amount of dropped frames.
Not nice. But I don't really know if I will spend much time to improve that. After all you usually won't change these settings in the middle of watching a movie. One of the reasons for the dropped/delayed frames when changing settings is that madVR clears the rendering queue to make sure that the changed settings show effect immediately.

I'm using Zoomplayer and when running MadVR my monitors turn off (screensaver settings). When running any other renderer all is well.
So basically I need to stop screensavers from appearing, right?

Hypernova
17th May 2009, 08:04
After more observation. It looks like nothing can be done except getting a new card :(. If I restrict the video size to 1080p, then I can get smooth playback up to SoftCubic, but not Lanczos/Spline. Upload/render quite always looks ok (5/8 8/8) even if I use Lanczos/Spline on fullscreen(2560x1600), but it skip like crazy. This sounds like a useless report (even to me) but I do want to let you know that it does not show any improvement over other revision. The upside of this revision is that I can't distinguish the result of each scaling method (except nearest neighbor) for some reasons.

Anyway, I can live with Bilinear for now. Great job Madshi :D. I'm looking forward to subtitle support too.

EDIT: I was typing when you post. I'll definitely try what you suggest and report back on any improvement.