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

MSL_DK
5th December 2012, 17:56
Unfortunately I don't have access to the yCMS sources so I can't say what's wrong exactly or fix the problem myself. However, I would guess that inconsistencies in your measurements might be the problem.

I do not think so. I just got my Spyder4 swapped to a i1pro and I'm pretty sure that it makes correct measurements.

MSL_DK
5th December 2012, 17:59
It would be nice if someone wrote up a mini guide on how to calibrate madVR via yCMS with hfcr from scratch for people like me who are relatively new to hardware calibration and somewhat clueless.

:goodpost:

pururin
5th December 2012, 18:39
So now for Intel users DXVA2 scaling for both Chroma/Luma is the best choice?

Also can HD 4000 handle Bicubic75 Chroma+Lanczos3 AR Luma? I'm planning on getting one (I3 3225).

Personally, I prefer less taxing combinations that give reasonably good result (Catmull-rom Chroma+ Bicubic75 Luma in the old discussion?) to save power consumption.

clsid
5th December 2012, 19:46
@madshi
Would it be possible to make the default scaling settings dynamic? Then you might be able to provide a better out-of-the-box experience, certainly on weaker hardware.

I was thinking of something like this:
1) Show the graphics card name and DeviceID somewhere in madVR settings.
2) Create a topic where people can post test results for the various scaling algorithms in madVR.
Provide links to some representative sample files, so everybody can test with the same ones.
Something like:
http://xhmikosr.1f0.de/samples/2160p/ParkJoy/ParkJoy_720p50.x264.CRF23.mkv
Testers should post details like:
- graphics card name and deviceid
- windows version
- CPU
- screen resolution
- max GPU usage for the sample file(s) for the various scaling methods
3) Based on the results you can decide which sane defaults should be used for each card. I am sure some of the regulars in this topic are willing to help out to generate such conclusions for you, saving you the trouble/time.
A rule of thumb could be at most 80% GPU usage for processing 30i/60p, or maybe a bit more conservative.
And of course the heaviest algorithms should not blindly be used on powerful hardware. You could decide to choose a specific one as the max for default settings, so that there is a good balance between performance and quality.
4) Add a simple lookup table to madVR that uses the DeviceID as index and contains the default scaling settings for each card. A relatively small table should probably already suffice for listing the most popular cards.
(perhaps an external .xml file might be an alternative for an embedded table, as it would allow additions without touching madVR)
5) Use conservative defaults for unknown cards. Or perhaps use some heuristics based on GPU details such as memory/core frequency/shadermodel version/#of shader units. I dunno what kind of info you can (easily) acquire.

ryrynz
5th December 2012, 20:29
Already been suggested a number of times, looks to be one of those possibly 1.0 polishing features.


Once again falling into final stage fine-tuning but having MadVR perform a benchmark and auto selecting a preset would be quite cool.

6233638
5th December 2012, 21:04
i'm using mobility HD5650. can u suggest what setting for chroma, image up & downscale? thanks~

my setting
chorma 3 jinc AR
luma up 3 jinc AR
down Catmull-Rom AR + linearIf you can run those settings without dropping frames, I would say those are already ideal.


I'm trying to figure out a "scale" for the settings in madVR, to see what the best options are from low-end to high-end, balancing performance and image quality.

how about an audio renderer which works hand in hand with madvr to get rig of the frame drop repeat problem by resampling the audio
...
so madvr runs 100% smooth without reclock and out of the box.That's exactly what Reclock is for though?

dansrfe
5th December 2012, 22:51
madshi,

Is it possible to have an option to override PGS subtitle positioning? I know if you choose to do this it will be at the bottom of your list and that's ok. Just wanted to see if you deemed it worthy to enter the list in the first place. Thanks!

madshi
5th December 2012, 23:14
At least it looks much closer if compared to the one produced by version 0.85.1 on ION chipset. :)
I've found a little bug. Colors with DXVA scaling turned on might now be too bright by a factor of "257/256". This will be fixed in the next build. Then colors should truely be 100% identical.

and how about an audio renderer which works hand in hand with madvr
I do not have any plans to write an audio renderer.

You could add a very small wizard that simply asks what the user's GPU is and then set recommended scalars based on that. Might be easier to auto-detect though.
It's not necessary to ask the user which GPU he has, I can find out via Direct3D.

0.85.1 seems to suffer from the same problem. Also had the problem where the playback does not start with LAV Video come back. MPC-HC's decoder still seems to work fine, but I have great trouble making it 100% reproducable. I have a feeling both problems are connected. It's like a frame is requested from the dxva2 decoder and it either takes very long for it to come or it doesn't come at all.
That sounds quite weird. If you can manage to create a log which *only* has the situation in it where playback does not start at all, I'd be interested in that. If you have a monster log where playback sometimes starts and sometimes not, I'd rather pass on that because it would be hard to interpret.

Just for my information: All these issues only apply to DXVA decoding. No problems with DXVA deinterlacing and/or DXVA scaling, is that correct?

Maybe I will also create a seeking sample to better test seeking in the future, unless something like this already exists.
That might be useful.

weird, with my gt430, if i activate the madvr deinterlacing on either setting, it becomes a slideshow. However the cuvid deinterlace to 60p works perfectly. :-/
That is very weird, I've no explanation for that. Do you have an SSE4.1 capable CPU? Are you sure that cuvid deinterlacing is done with highest possible quality? You could double check by using the cheese slices test video. Most important of all: When you get that slideshow, which of the queues are empty and which are full? You can see that in the madVR debug OSD (Ctrl+J).

the chroma upsampling being done by intel/dxva2 is also a result of dxva scaling on intel?
If you activate DXVA scaling with v0.85.2, chroma upscaling is automatically also done by DXVA on all GPUs.

I do not think so. I just got my Spyder4 swapped to a i1pro and I'm pretty sure that it makes correct measurements.
I'm not saying that the measurements are incorrect. The problem might be that if you do too many measurements which are too near to each other, the measurements might not be on a straight line/curve. That could produce problems for yCMS. You could try to reduce the number of measurements. That will result in yCMS having to interpolate/guess more, but it might fix those artifacts. But I don't really know, I'm not really an expert with this.

So now for Intel users DXVA2 scaling for both Chroma/Luma is the best choice?

Also can HD 4000 handle Bicubic75 Chroma+Lanczos3 AR Luma? I'm planning on getting one (I3 3225).

Personally, I prefer less taxing combinations that give reasonably good result (Catmull-rom Chroma+ Bicubic75 Luma in the old discussion?) to save power consumption.
If "reasonably good result" and "save power consumption" are your primary concerns that using DXVA2 scaling for Intel GPUs sounds like a good solution. However, there's currently the one problem with this that Intel only outputs to 8bit RGB. So you might get some banding. But I'm in contact with Intel to get this fixed. Not sure if I can get them to fix this, but I'm trying...

@madshi
Would it be possible to make the default scaling settings dynamic? Then you might be able to provide a better out-of-the-box experience, certainly on weaker hardware.

I was thinking of something like this:
1) Show the graphics card name and DeviceID somewhere in madVR settings.
2) Create a topic where people can post test results for the various scaling algorithms in madVR.
Provide links to some representative sample files, so everybody can test with the same ones.
Something like:
http://xhmikosr.1f0.de/samples/2160p/ParkJoy/ParkJoy_720p50.x264.CRF23.mkv
Testers should post details like:
- graphics card name and deviceid
- windows version
- CPU
- screen resolution
- max GPU usage for the sample file(s) for the various scaling methods
3) Based on the results you can decide which sane defaults should be used for each card. I am sure some of the regulars in this topic are willing to help out to generate such conclusions for you, saving you the trouble/time.
A rule of thumb could be at most 80% GPU usage for processing 30i/60p, or maybe a bit more conservative.
And of course the heaviest algorithms should not blindly be used on powerful hardware. You could decide to choose a specific one as the max for default settings, so that there is a good balance between performance and quality.
4) Add a simple lookup table to madVR that uses the DeviceID as index and contains the default scaling settings for each card. A relatively small table should probably already suffice for listing the most popular cards.
(perhaps an external .xml file might be an alternative for an embedded table, as it would allow additions without touching madVR)
5) Use conservative defaults for unknown cards. Or perhaps use some heuristics based on GPU details such as memory/core frequency/shadermodel version/#of shader units. I dunno what kind of info you can (easily) acquire.
It's a good idea, but it's a rather complex thing. E.g. on Intel GPUs using DXVA scaling and deinterlacing is running in dedicated hardwired circuits, while with AMD and NVidia, DXVA stuff mostly runs on GPU shaders. So with Intel using DXVA scaling and deinterlacing shouldn't slow madVR rendering performance down much. The situation is different with AMD and NVidia. Then performance can differ a lot depending on whether you downscale or upscale, and with which scaling factor.

But the main problem is that the current scaling algorithms may not be final yet. E.g. current algorithms all run in HLSL pixel shaders. Maybe I can use CUDA/OpenCL to squeeze more performance out of the GPU, then everything could change again. So I think it's too early right now to start creating such a GPU <-> settings database.

In the long run I do plan to either make such a database, or to alternatively add a built-in benchmark which measures GPU speed and then auto-configures madVR accordingly. But this is all future talk. I still need to add several missing features first...

Is it possible to have an option to override PGS subtitle positioning? I know if you choose to do this it will be at the bottom of your list and that's ok. Just wanted to see if you deemed it worthy to enter the list in the first place. Thanks!
I think the subtitle renderer would be the better place to have such options. Soon (hopefully) the next xy-vsfilter version might replace the MPC-HC internal subtitle renderer as the best option for madVR subtitle rendering. Let's see then which options xy-vsfilter will offer and whether that'll be enough for everybody. If not, you could try convincing the xy-vsfilter dev to add more options.

DragonQ
5th December 2012, 23:32
It's not necessary to ask the user which GPU he has, I can find out via Direct3D.
Yeah but what I mean is, wouldn't you have to keep a big database of every card in existence this way? With a simple menu (old IGP, new IGP/old GPU, new GPU) you can be more generic.

aufkrawall
5th December 2012, 23:41
If you activate DXVA scaling with v0.85.2, chroma upscaling is automatically also done by DXVA on all GPUs.

Even if no luma scaling happens?

Edit: I guess not. :D
But now that DXVA logic of madVR has changed, why not making it possible to select DXVA scaling also for luma? :)

sneaker_ger
6th December 2012, 00:08
That sounds quite weird. If you can manage to create a log which *only* has the situation in it where playback does not start at all, I'd be interested in that. If you have a monster log where playback sometimes starts and sometimes not, I'd rather pass on that because it would be hard to interpret.

I'm still trying to create a proper log. I have the feeling that the debug version behaves somehow different - read: better - than the normal version. Is that possible?

I tried to create a similar situation by playing a 1080p60 file, which the HD5850 is too slow to handle:
http://www.mediafire.com/?ffwpozffc2gkhyp
The symptons are the same.

I'll keep trying to create a proper sample but it really proves to be difficult.

Just for my information: All these issues only apply to DXVA decoding. No problems with DXVA deinterlacing and/or DXVA scaling, is that correct?

Just testing DXVA2 decoding here. No deinterlacing or DXVA2 scaling going on.

sneaker_ger
6th December 2012, 00:21
Back to Cat 12.9, first video: transparent window, no start.
Switch to [debug]: works fine. :mad:

ajp_anton
6th December 2012, 00:49
Even if no luma scaling happens?

Edit: I guess not. :D
But now that DXVA logic of madVR has changed, why not making it possible to select DXVA scaling also for luma? :)Why not? DXVA scaling now outputs RGB, which it can do whether there's luma scaling or not.
And "also for luma"? It's currently *only* for luma (which automatically does it for chroma as well).

edit: I just realized, my overlayed start menu has been fixed. If it's in your list of unresolved low-prio bugs, you can forget about it.

Hwasin
6th December 2012, 02:13
If you activate DXVA scaling with v0.85.2, chroma upscaling is automatically also done by DXVA on all GPUs.
This does not seem to be true in any fullscreen mode for me. Using Intel HD3000 in a optimus system with 540m

The test I did was to set chroma with Jinc + AR. In windowed mode, rendering time is 9ms. In fullscreen mode, it's 60ms.

khanmein
6th December 2012, 02:31
If you can run those settings without dropping frames, I would say those are already ideal.


I'm trying to figure out a "scale" for the settings in madVR, to see what the best options are from low-end to high-end, balancing performance and image quality.

dropping/delay frames impossible 0. once i start play BD-RMVB (DXVA-CB, NV12 4:2:0)
@drop frame 4
@delay frame 1
once i alt+tab full screen or adjust the seek bar drop/delay frame will increase slightly & stay at there as long i didn't pause or click forward/backward.

i noticed when start playing MKV+FLAC, the mpc will delay & hang for less than 15 sec with black screen. after that it play smoothly.

ajp_anton
6th December 2012, 04:20
This does not seem to be true in any fullscreen mode for me. Using Intel HD3000 in a optimus system with 540m

The test I did was to set chroma with Jinc + AR. In windowed mode, rendering time is 9ms. In fullscreen mode, it's 60ms.And what about if chroma upscampling is set to bilinear or nearest neighbor?

Hwasin
6th December 2012, 06:28
And what about if chroma upscampling is set to bilinear or nearest neighbor?
I don't know how to tell the difference. But upon further testing. This only happens with 1920*1080 material. My screen is 1920*1080.

It doesn't use DXVA2 scaling when luma scaling is nor used.

Mangix
6th December 2012, 06:40
Maybe I can use CUDA/OpenCL to squeeze more performance out of the GPU, then everything could change again.I thought that CUDA as well as OpenCL didn't expose any graphics related functionality like textures and whatnot but did allow GPGPU stuff like password cracking.

Heuer
6th December 2012, 09:48
I seem to be having problems with 85.2 - it is causing sound breakup on the centre channel. Reloaded 85.1 and everything was back to normal. Tried this iteration three times with the same result so I am back to running the earlier release. Any suggestions?

Setup - i3, GTX650Ti, W7, MPC-HC, LAV + MadVR + Re-clock. Break up gets worse as video (720p was the tester) progresses.

madshi
6th December 2012, 10:09
Even if no luma scaling happens?
This does not seem to be true in any fullscreen mode for me. Using Intel HD3000 in a optimus system with 540m

The test I did was to set chroma with Jinc + AR. In windowed mode, rendering time is 9ms. In fullscreen mode, it's 60ms.
DXVA scaling is only active if the video needs to be scaled. If DXVA scaling is active, chroma upsampling is being done by DXVA, too. If the video doesn't need to be scaled, chroma is still upsampled by the madVR algorithms.

But now that DXVA logic of madVR has changed, why not making it possible to select DXVA scaling also for luma? :)
Well, I guess it would be possible. But I somehow doubt the usefulness of using DXVA chroma upsampling with non-DXVA luma upscaling. So I wonder whether I should invest the development time to make this combination work.

Back to Cat 12.9, first video: transparent window, no start.
Switch to [debug]: works fine. :mad:
That's bad. I'll try to reproduce this on my development PC. You're using win7, right?

dropping/delay frames impossible 0. once i start play BD-RMVB (DXVA-CB, NV12 4:2:0)
@drop frame 4
@delay frame 1
once i alt+tab full screen or adjust the seek bar drop/delay frame will increase slightly & stay at there as long i didn't pause or click forward/backward.
Try activating the "delay playback start until queues are full" in the madVR settings. That might get rid of the frame drops when starting the video.

i noticed when start playing MKV+FLAC, the mpc will delay & hang for less than 15 sec with black screen. after that it play smoothly.
Which MKV splitter and which FLAC decoder are you using? Try madFlac as an alternative, if you haven't already...

I thought that CUDA as well as OpenCL didn't expose any graphics related functionality like textures and whatnot but did allow GPGPU stuff like password cracking.
Both CUDA and OpenCL (1.2) have interop functionality to Direct3D9 which in theory allows accessing D3D textures. However, it only half works at the current time and is very slow with current AMD drivers. But there's hope that this might be improved in the future.

I seem to be having problems with 85.2 - it is causing sound breakup on the centre channel. Reloaded 85.1 and everything was back to normal. Tried this iteration three times with the same result so I am back to running the earlier release. Any suggestions?

Setup - i3, GTX650Ti, W7, MPC-HC, LAV + MadVR + Re-clock. Break up gets worse as video (720p was the tester) progresses.
Are you using anything DXVA related? Does it help if you disable those? Does madVR drop any frames while you get audio breakup? In theory madVR does not have anything to do with audio at all. This might be a result of how DXVA/Direct3D demands resources from the CPU, maybe not leaving enough resources to the audio driver? Does your CPU run near 100% when this problem occurs? You could also check DPC latency, there are test tools available for that.

dansrfe
6th December 2012, 10:43
While DXVA2 is selected as the decoder in LAV Video and a file is playing, if MPC-HC's window is dragged to another screen then the video size resizes to what MPC-HC originally started with. This doesn't happen when software decoding is selected though.

Toku
6th December 2012, 11:26
Just noticed that It's pretty difficult to see progress in the FSE seekbar when you're a bit back from the monitor unless the screen is pretty dark. Is it possible to get the progress color darkened or something? Obviously isn't anything major, and I seem to remember you said that you wouldn't rethink the presentation until v 1.0, but just thought I'd mention it.

THX-UltraII
6th December 2012, 11:26
Since that madVR is very mature already I think it might be usefull that a WIKI / manual will be created for madVR. I do not have the knowledge for this unfortunately.

pandy
6th December 2012, 11:46
I have small idea - perhaps not very smart - is there any chance to add display support for YCbCr data without conversion to RGB on RGB output - this can provide capability to change RGB analog output to YPbPr output - very simple adapter (perhaps some buffer only, perhaps only some caps + sync combiner) should be enough to connect any graphic card to YPbPr input of TV (one one typical video modes need to be set anyway) - in normal conditions people need to buy/build ( VGA RGB to YPbPr converter (http://forums.benheck.com/viewtopic.php?f=20&t=36782) ) special converter from RGB to YPbPr. With such settings - i.e. RGB used as YPbPr output only sync combiner will be required.

petri234
6th December 2012, 12:00
Does this occur with all 23.976p movies for you, or just with some? Does it e.g. depend on the codec? Have you updated to the latest LAV version? I've not heard about such instability by anyone else yet, so I wonder why it only seems to affect you. Maybe it's just with some specific video files?



I checked, and it did indeed occur with every movie that is 1080/23.976p. Updating to the latest LAV filters did the trick though, so it must have been on their end. Thanks!

hannes69
6th December 2012, 12:31
Can you guys please test the following:

(1) Use software decoding and e.g. Bilinear scaling.
(2) Use native DXVA2 decoding and e.g. Bilinear scaling.
(3) Use software decoding and DXVA2 scaling.
(4) Use native DXVA2 decoding and DXVA2 scaling.
I use AMD HD4550 with Windows7/64bit.
Colors in (2), (3), (4) are the same but different from (1). Especially green is much too oversaturated. (1) stays the same by using copy-back-decoding instead of software.
DXVA-Deinterlacing works as intended, no change in colors.
Interesting: using native decoding instead of copy-back lowers cpu load as expected but as well gpu load! Furthermore dxva2 upscaling has about the same gpu load as Mitchell-Netravali.


The quote refers to 0.85.1

Redone the test with 0.85.2:
Now (1), (3) and (4) are the same, (2) is different (in the same way with oversaturated green like in 0.85.1). So using native decoding without dxva scaling is still broken (at least for my setup).
With 0.85.2 GPU load with native DXVA decoding is about 0 - 30% HIGHER than copyback decoding (depending on scaling algorithm!)

truexfan81
6th December 2012, 14:02
That is very weird, I've no explanation for that. Do you have an SSE4.1 capable CPU? Are you sure that cuvid deinterlacing is done with highest possible quality? You could double check by using the cheese slices test video. Most important of all: When you get that slideshow, which of the queues are empty and which are full? You can see that in the madVR debug OSD (Ctrl+J).

Madshi
this is my cpu (http://www.cpu-world.com/CPUs/K10/AMD-Athlon%20II%20X2%20245%20-%20ADX245OCK23GQ%20%28ADX245OCGQBOX%29.html)
and now that i have complained about it, it appears to be acting like when you take a car to the mechanic, it just won't make that same sound :D or in this case, a slide-show. i will report back later if it starts doing it again.

:thanks:

nevcairiel
6th December 2012, 14:20
AMD CPUs only support SSE 4.1 in Bulldozer and above, so no, your CPU does not qualify.

leeperry
6th December 2012, 14:31
Both CUDA and OpenCL (1.2) have interop functionality to Direct3D9 which in theory allows accessing D3D textures. However, it only half works at the current time and is very slow with current AMD drivers. But there's hope that this might be improved in the future.
Does that imply that Jinc might be less demanding on nvidia boards someday in the future?

phoenixxl
6th December 2012, 14:57
When Madvr crashed earlier today , I noticed this:

http://i.imgur.com/aA090.png

However , the correct value should be this :

http://i.imgur.com/y8zVD.png


Please consider revisiting the code that determines said value.

Friendly regards,

Phoenixxl.

aufkrawall
6th December 2012, 15:44
Well, I guess it would be possible. But I somehow doubt the usefulness of using DXVA chroma upsampling with non-DXVA luma upscaling. So I wonder whether I should invest the development time to make this combination work.

What if you watch a movie in native resolution? Then it will use the selected chroma scaling method (by default bilinear), right?.

If true, that's why I think an option to select DXVA chroma scaling for such situations would be a good idea since it looks better than bilinear and doesn't require (m)any ressources.

sneaker_ger
6th December 2012, 15:51
That's bad. I'll try to reproduce this on my development PC. You're using win7, right?

Yes, Win 7 x64.

The question is, why am I the only user to report this? I can't be the only ATI user on Win 7. So chances are you won't be able to reproduce it, I guess.

ajp_anton
6th December 2012, 15:57
DXVA scaling is only active if the video needs to be scaled. If DXVA scaling is active, chroma upsampling is being done by DXVA, too. If the video doesn't need to be scaled, chroma is still upsampled by the madVR algorithms.Why? Isn't chroma upscaled all the way up to full resolution (and converted to RGB) by DXVA? If the uses chooses DXVA, why change it when the luma scaling factor happens to be 1?

6233638
6th December 2012, 16:13
Madshi, I've just seen a new bug introduced in 0.85.2

If you are downscaling with DXVA2 and switch to anything else, it results in a green image. I have to switch to a non-DXVA2 scaling algorithm a second time to restore the correct colours.


What if you watch a movie in native resolution? Then it will use the selected chroma scaling method (by default bilinear), right?.

If true, that's why I think an option to select DXVA chroma scaling for such situations would be a good idea since it looks better than bilinear and doesn't require (m)any ressources.If you have an Nvidia card, DXVA2 scaling is just bilinear with a sharpening filter applied, and it comes at a significant performance hit compared to using just about anything else. Selecting "bilinear" in madVR runs about 10x faster, and looks better. (no ringing or other artefacts introduced)

To get a basic idea of what kind of scaling DXVA2 is using on your system, right click and save this image (http://www.abload.de/img/scaling7eklk.gif)

If you open it in MadVR and switch between DXVA2 and Bilinear scaling on an Nvidia card, there is no difference between the two, and a clear difference when using anything else, for example.


As a side note, there are some interesting things that happen when using the anti-ringing filter and/or linear light scaling with this test, and I wonder if something like this could possibly be used to help fine-tune the algorithms further. (it was also interesting to use a multi-coloured one (http://www.abload.de/img/test0yqvu.gif) to see how they were blended together) Then again, it's a completely artificial thing that may have no bearing on real-world content at all, so maybe it's pointless.

Still, it's an easy way to get an idea of what scaling algorithm DXVA2 is using, through comparisons.

DragonQ
6th December 2012, 16:50
Hmm it appears my new laptop comes with an nVidia NVS 5200M, as well as the Intel HD 4000 IGP. There's very little information about this GPU out there so I guess I'll have to investigate which one is best for MadVR!

wanezhiling
6th December 2012, 17:02
NVS 5200M is based on GT435M(GF108), a weak GPU.

DragonQ
6th December 2012, 17:35
Yeah but the Intel HD 4000 isn't exactly a beast either.

DragonQ
6th December 2012, 22:34
Madshi, how do I submit a freeze report? I'm getting freezes using the NVS 5200M in my laptop with MadVR (no issues using the Intel HD 4000 with MadVR, or either card with EVR).

DarkSpace
7th December 2012, 00:21
To get a basic idea of what kind of scaling DXVA2 is using on your system, right click and save this image (http://www.abload.de/img/scaling7eklk.gif)
As a side note, there are some interesting things that happen when using the anti-ringing filter and/or linear light scaling with this test, and I wonder if something like this could possibly be used to help fine-tune the algorithms further. (it was also interesting to use a multi-coloured one (http://www.abload.de/img/test0yqvu.gif) to see how they were blended together) Then again, it's a completely artificial thing that may have no bearing on real-world content at all, so maybe it's pointless.
Those images also show these "gremlins" that madshi noticed in the Jinc AR algorithms, though they're more pronounced when scaling in Linear Light and using 8 taps. Also, am I the only one who thinks that Linear Light upscaling with Jinc (AR or not) looks worse* on these images?

* I don't really know, but I was expecting at least some kind of darker grey, Linear Light scaling makes it look as if there's hardly and black in the image, at least for the black-and-white checkerboard pattern. I may be wrong, though.

Edit: Looks like I'm getting Bilinear upscaling on AMD Radeon HD 6970M when scaling with DXVA. However, I didn't pay too close attention to things like additional sharpening algorithms.

vivan
7th December 2012, 00:33
DragonQ, try to untick "use a separate device for presentation" in madVR settings. This happens (image freezes after some time, not madVR itself) on all Optimus systems, when using dGPU.

DragonQ
7th December 2012, 00:58
OK thanks, I'll try that tomrrow.

6233638
7th December 2012, 01:43
Those images also show these "gremlins" that madshi noticed in the Jinc AR algorithmsYes, but it's probably not useful material for that.

Also, am I the only one who thinks that Linear Light upscaling with Jinc (AR or not) looks worse* on these images?Linear light is not a good option for upscaling really.

Looks like I'm getting Bilinear upscaling on AMD Radeon HD 6970M when scaling with DXVA. However, I didn't pay too close attention to things like additional sharpening algorithms.It's really only a useful test to quickly see if the card is using bilinear or not, as that's very distinctive compared to the other scaling algorithms.

For sharpening, it's a lot more obvious with other test patterns. I don't think you would really notice it there.

khanmein
7th December 2012, 02:05
@madshi i'm using oldsch madFlac v1.10 + LAV splitter v0.54.1

bro, r u goin to release new update for madFlac?

should i tick delay playback start after seeking, too? thanks alot~

pandy
7th December 2012, 10:22
@madshi

http://forum.doom9.org/showthread.php?p=1604267#post1604267

Thank You in Advance madshi

egur
7th December 2012, 11:21
I'd like to ask for a feature:
Make MadVR power aware - have a combo box for selecting scaler used when laptop is on batteries.
Values can be either :
* DXVA scaler
* Bilinear (D3D)
* Same as connected to AC power.

Or just duplicate the existing propery pages for selecting the scaler(s) in power savings mode.

As for defaults, I'd rather have DXVA used for power savings mode, but maybe other people have different ideas.

lastending
7th December 2012, 12:00
I'm new here and can't read this topic from the beginning.
Someone can tell me how to disable scaling algorithms (chroma upscaling, image up/downscaling) please? I like to see orignal colors/sharpen of source
or can you show me some option you usually use for better? (I have source 1080p and 17" monitor + 32" TV)

MokrySedeS
7th December 2012, 12:32
I may be wrong but I think that you can't aviod chroma scaling.
As for image scaling - it's controlled by a player. For example in mpc-hc check this option: Menu View --> Video Frame --> Normal Size

Heuer
7th December 2012, 13:49
Madshi

Regarding my sound break-up issue with 85.2.

I tried running it on a different machine (i5, W7, MPC-HC+LAV+madVR+Reclock) and this time there was sound but no picture. (It always amazed me that this setup would run happily run on a machine without a discrete GPU, but it did for most material without crashing). I then tried downloading the 85.2 zip file from your 'previous versions' page rather than the header on page 1 of this thread. It worked perfectly so not sure if there is a problem with one of your zip files or links?

lastending
7th December 2012, 14:01
I may be wrong but I think that you can't aviod chroma scaling.
As for image scaling - it's controlled by a player. For example in mpc-hc check this option: Menu View --> Video Frame --> Normal Size

Thank you :)
i only have sb cpu and i see someone tell about to set image scaling for DXVA2, i tried and only think i see is bolder colors (it's pretty for me) and little alias

cca
7th December 2012, 16:51
Since my main PC died (lightning ...) I am trying to use my humble Atom netbook for media purposes, it does have HDMI. madVR is unusable in it I'm afraid. DXVA scaling results in out of order frames for a couple of seconds and eventually a BSOD. Bilinear is the only option, but it still drops frames. Only EVR Custom in MPC-HC works correctly, set in Bilinear mode too. The GPU is an Intel GMA 3600. I suspect it has rather crappy drivers too. No newer version either on either the manufacturer's site or Intel's.