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

noee
5th November 2011, 22:03
In the later CCC versions, Video/Video SEttings/Advanced Video Color/Dynamic Range

Edit: your 4xxx may not support that option.

Thunderbolt8
5th November 2011, 22:08
does my 4770 or 4850 mobile support this dxva2 addition at all?

madshi
5th November 2011, 22:10
is there going to be a problem or any interference
No.

is dxva2 comparible to dxva? is my HD 4770 supported? if so, how to recognise whether its active or not?
Pretty much every DX9 card does DXVA2. Your 4770 will easily do it. You can press Ctrl+J to check whether deinterlacing is on or off. Also you can press Ctrl+Alt+Shift+D once, it will also show whether deinterlacing is on/off. Furthermore, you can use the Cheese Slices test videos you can download here to check for deinterlacing quality:

http://www.avsforum.com/avs-vb/showthread.php?t=1157287

all the BBC documentaries (VC-1) I have dont work with the libav decoder. shall I make samples?
The libav VC-1 decoder doesn't support interlaced decoding, unfortunately. Nothing I can do about it.

Thunderbolt8
5th November 2011, 22:17
ok I guess my question then is how can I find out that this is working at all on my videos I play. I thought I had to activate the internal decoder for this, but it seems this wont be necessary.

so it all works automatically? what about stuff like ffdshow raw video setting or directvobsub running along?

madshi
5th November 2011, 22:24
It's working just like VMR9/EVR. Basically you will get deinterlacing automatically for any external decoder (also for the internal onces, of course), if the external decoder signals that deinterlacing is necessary. So if you get hardware deinterlacing with VMR9/EVR, you should also get it with madVR. If it isn't activated automatically for whatever reason, you can manually activate it by pressing Ctrl+Alt+Shift+D twice. Of course you shouldn't do that for progressive content.

Xaurus
5th November 2011, 22:32
bug report:

The option "don't deinterlace 48i" should read "don't deinterlace 480i" I assume?

Thunderbolt8
5th November 2011, 22:32
I think I misread the changelog, I though general dxva2 support was added and not just for deinterlacing. that should make sense then.

about ffdshow raw and directvobsub, I can have those running along then and it wont matter?

edit: when deinterlacing is activated, the subs suddenly looks a lot worse. guess directvobsub is automatically bypassed then?

unfortunately, my card seems to be too slow for deinterlacing to work. therefore, those vids which played fine before with or without deinterlacing still do, those which dont with or without the need for interlacing still dont. just my luck -.-

madshi
5th November 2011, 22:42
The option "don't deinterlace 48i" should read "don't deinterlace 480i" I assume?
Nope, it's exactly as it should read. The option is meant for European h264 1080i50 movie broadcasts that were slowed down to 48i. These are all properly flagged and don't need to be deinterlaced. The "48i" means "48 fields per second interlaced".

about ffdshow raw and directvobsub, I can have those running along then and it wont matter?

edit: when deinterlacing is activated, the subs suddenly looks a lot worse. guess directvobsub is automatically bypassed then?
I don't know about DirectVobSub. Please cross check with VMR9/EVR, just to be safe. If the same problem occurs with VMR9/EVR then there's nothing I can do about it.

unfortunately, my card seems to be too slow for deinterlacing to work. therefore, those vids which played fine before with or without deinterlacing still do, those which dont with or without the need for interlacing still dont. just my luck -.-
The 4770 should be fast enough, I think. You may have to dial down the scaling algorithms a bit, if all else fails. Try exclusive mode with the "perform deinterlacing in separate thread" activated.

6233638
5th November 2011, 22:46
Can you upload a sample with that specific test pattern? I don't think that there's a bug in the linear light scaling algorithm, but I'm not 100% sure. Can't hurt to analyze.You'll have to go through this frame-by-frame: http://www.mediafire.com/?p8z847xghkx4xxe
(ctrl + left/right in MPC-HC)

Looking at it again, I'm somewhat confused. If I disable scaling entirely so that it's displayed at 720x576, it actually looks like the linear light scaling result. The confusing thing, is that the "normal (http://forum.doom9.org/showthread.php?p=1535215#post1535215)" image is how that is supposed to look.

Is it possible that the disc was mastered in such a way that they assumed linear scaling would not be applied?

(a) ... how deinterlacing quality and performance compares to LAV CUVID, could you please check that? If LAV CUVID looks or performs better, maybe there's room for me to improve, too.Quality seems to be largely the same as CUVID, depending on how that's set up. (I leave it on weave, as adaptive doesn't work well for me)

I still get aliasing on "difficult" titles with both, but that seems like it's probably a hardware limitation.

I've yet to find anything that will do a great job with this for example. (but it may be the source itself)

http://www.mediafire.com/?mnmdrferee0arnp


I don't know if this is something you want to look into just now or not, but I still haven't been able to get madVR to decode (and now, deinterlace) DVDs in MPC-HC at all—the same thing applies to LAV Video as well though.

DVDs ripped to MKV work just fine, but DVDs themselves (file > open disc) want to load up the Microsoft decoder, which is awful, and if I disable that MPC-HC uses its internal decoder which is also poor, but at least lets me force weave which works on most titles.

gommorah
5th November 2011, 22:53
I can reproduce the problem but I don't have the means at this point in time to figure out what's going on exactly. On a first glance it doesn't seem to be a bug in madVR, but I could be wrong on that. FWIW, the issue doesn't seem to occur if you switch subtitles via madVR's tray icon. Which is what I'm usually doing, anyway. Isn't madVR's tray icon much prettier than Haali's? :p
lol, it needs more soft edges and gloss :p. Anyway, I didn't realize madVR could switch subtitle streams so I'll use that in the meantime. As long as you're aware of the bug and can repro it, I'm happy :).

Thunderbolt8
5th November 2011, 22:54
The 4770 should be fast enough, I think. Try exclusive mode with the "perform deinterlacing in separate thread" activated.unfortunately doesnt help. I gett massive dropped frames and deinterlace, renderer and upload queue are down to 1-2 each

dansrfe
5th November 2011, 23:02
Echoing problem that Thunderbolt8 states above ^

dansrfe
5th November 2011, 23:09
madshi,

I'm using windows xp's qdvd.dll that I posted a while ago but I have recently noticed that when I play a dvd from the IFO file madVR shows that the source filter is reporting 25 fps for the dvd when most of the dvds I play are 23.976 soft coded to 29.976 and some telecined 29.976 interlaced dvds. I tried dslibdvdnav that was posted in the "Open Source DirectShow DVD Navigator" thread and it shows 29.976 fps from the source filter for all my dvds.

My question is: What can I do to signal the automatic refresh rate changer that DVD "A" is 23.976 sof-coded to 29.976 (so change the refresh rate to 23.976) and DVD "B" is telecined to 29.976 interlaced (so change the refresh rate to 29.976 (or 59Hz in my case))? I know about manually typing in the refresh rate in the file name but since this is a DVD structure that goes through the IFO first, how can I manually "switch" and "fake" the source filter reported refresh rate?

Could you possibly add an option to press a hotkey and "change" source reported rates from "Auto" to a specific fps?

Thanks for all your hard work on madVR :D I really, truly appreciate it!

iSunrise
5th November 2011, 23:12
Thanks for madVR 0.78 madshi.

Deinterlacing works great on a couple of my samples (1080i). Have not yet tested DVDs (I have about 500-700 US DVDs and about 400 PAL DVDs) though. I have a GTX580, so plenty of GPU horsepower, no dropped frames at all (deinterlacing queue stays at 6-9/9 when playing 1080i stuff). Will try to do a quality comparison between madVR and CUVID, later.

Very pleased with all the useful stuff you implement. Keep on the good work.

jmone
5th November 2011, 23:19
Great news on the inclusion of Deinterlacting! After some quick testing I'm finding I get some periods where there are a batch of dropped frames and the various queues are not that stable (esp in Windowed Mode), yet the CPU and GPU stats all look like it is cruising along. As an example the Average Stats may be;
- Deinterlace 1.30ms
- Rendering 1.64ms
- Present 0.11ms

Then max stats (5s) may blow deinterlacing and rendering out to over 20+ms causing the various queues to drop. At other times the Max stats sits happily under 5ms

I've only tested so far on my nvidia 450 with LAV Splitter, and either the MS or the LAV Video (CUVID off) / Audio Decoder, then madVR

The interlaced detection seems to be working fine on my test files with the correct ones being deinterlacted.

The quality looks good so far (yet to test on the HTPC with a big screen)

kerimcem
5th November 2011, 23:20
Thanks for madVR 0.78 madshi. Deinterlacing works well.

madshi
5th November 2011, 23:20
You'll have to go through this frame-by-frame: http://www.mediafire.com/?p8z847xghkx4xxe
(ctrl + left/right in MPC-HC)
Doesn't work for me. I only get the intro picture which is totally different. Which splitter/decoder are you using to get the real test pattern?

I've yet to find anything that will do a great job with this for example. (but it may be the source itself)

http://www.mediafire.com/?mnmdrferee0arnp

I don't know if this is something you want to look into just now or not
For now I "only" want madVR to do the same deinterlacing that VMR9 and EVR do. FWIW, that video clip looks quite acceptable, deinterlaced with my ATI 6850.

unfortunately doesnt help. I gett massive dropped frames and deinterlace, renderer and upload queue are down to 1-2 each
Echoing problem that Thunderbolt8 states above ^
Well, does it work with VMR9/EVR? Have you tried dumbing all madVR settings to the lowest settings? Have you tried restoring madVR default settings? You're not giving me much information here.

My question is: What can I do to signal the automatic refresh rate changer that DVD "A" is 23.976 sof-coded to 29.976 (so change the refresh rate to 23.976) and DVD "B" is telecined to 29.976 interlaced (so change the refresh rate to 29.976 (or 59Hz in my case))?
Honestly, I'm not ready to spend any thoughts on anything other than v0.78 deinterlacing test results at the moment. I've spent a large amount of time adding deinterlacing and I first want feedback before moving to any other topics.

Deinterlacing works great on a couple of my samples (1080i). Have not yet tested DVDs (I have about 500-700 US DVDs and about 400 PAL DVDs) though. I have a GTX580, so plenty of GPU horsepower, no dropped frames at all (deinterlacing queue stays at 6-9/9 when playing 1080i stuff). Will try to do a quality comparison between madVR and CUVID, later.
Thanks for the feedback. I'm looking forward to your madVR <-> CUVID comparison.

dansrfe
5th November 2011, 23:20
Wow this works well on my PAL dvd's. Although I may be incorrect but DXVA2 deinterlacing doesn't bob-deinterlace right? Or does it?

TheShadowRunner
5th November 2011, 23:22
I'm sorry, but this really *REALLY* sounds like a ZoomPlayer bug to me. I can still try to reproduce it, but not today.

(The ZP/madVR freeze-on-seek after freq. switch bug)
No worries, please do when you have free time.
It looks longer than it is, I would say about 6min to test from ZP install to seeing the bug.
I get bounced between Blight and you, it's getting tough getting this one looked at. ^^;
Thanks for the new build btw!

madshi
5th November 2011, 23:25
After some quick testing I'm finding I get some periods where there are a batch of dropped frames and the various queues are not that stable (esp in Windowed Mode), yet the CPU and GPU stats all look like it is cruising along.
The ms time stats may not be too reliable. Please watch over how the various queues are filled / not filled. That's the most important thing. Maybe you can find out under which circumstances you get those batches of dropped frames? Which queues are empty exactly at that moment?

Deinterlacing works well.
Thx for the feedback.

Wow this works well on my PAL dvd's. Although I may be incorrect but DXVA2 deinterlacing doesn't bob-deinterlace right? Or does it?
madVR automatically uses the best quality algorithm offered by your card. However, the best quality algorithms usually need a couple of older video frames to work, which madVR can't provide when deinterlacing the very first couple of frames. So for the first maybe 2-3 frames madVR uses bob deinterlacing. As soon as enough "old" frames are available, madVR switches to the best quality deinterlacing mode.

cyberbeing
5th November 2011, 23:26
WinXP SP3 x86
7800GTX 512

madVR deinterlacing has a tendency to crash at the beginning of MPEG2-TS files.

Crash/Working Logs: http://www.mediafire.com/?fl3x9a973ah3kwx


Upload CreateUploadTextures(format: YV12, width: 1440, height: 1080, bitdepth
Upload creating upload textures failed

EDIT: Enabling Managed Upload Texture stops the crashes. Possibly you should automatically enable this when using DXVA2 Deinterlacing on WinXP? I seem to remember that setting hurting smoothness normally though. Maybe I should re-test smoothness with that setting, or is this something you can fix without that setting?

Also unsurprisingly, my 7800GTX is too slow to do other processing on 1080i30 when madVR is deinterlacing. I basically need to set all scaling to bilinear and disabled the 3DLUT for it to not drop frames.

dansrfe
5th November 2011, 23:32
Function: Deinterlacing works for me other than when I resize. When I scale up the 10-13/13, 4-7/9, 2-5/9, 2-5/8, 0-3/8 for decoder, upload, deinterlac, render and present queues respectively.

Quality: Deinterlacing certain "uncleanly interlaced" sources causes some artifacts and shimmering to occur. When compared to ffdshow's ffmpeg deinterlacer, ffmpeg does a much cleaner deinterlacement.

I have not compared to VMR/EVR deinterlacing yet because I don't know how to activate deinterlacing for VMR/EVR.

Thunderbolt8
5th November 2011, 23:37
Have you tried dumbing all madVR settings to the lowest settings? Have you tried restoring madVR default settings?doesnt even work when activating the trade quality for performance settings and setting scaling algorithms to nearest neighbor (for both, 29.97 fps AVC and VC-1)

6233638
5th November 2011, 23:40
Doesn't work for me. I only get the intro picture which is totally different. Which splitter/decoder are you using to get the real test pattern?I'm using LAV Splitter. If you open the video, click at the start of it, and keep going through the frames (ctrl+right) you should be able to select the patterns.

It seems that using madVR to decode doesn't let you go back frame-by-frame though, only forward. (I was still using LAV Video when I tried that) It should be the third pattern.

For now I "only" want madVR to do the same deinterlacing that VMR9 and EVR do. FWIW, that video clip looks quite acceptable, deinterlaced with my ATI 6850.Fair enough. With madVR/CUVID deinterlacing, it is considerably better than the results I get with any of the software decoders I've tried, but there's still aliasing on a lot of the image, such as the benches in the background and the mic stand/cables when panning down.

I'm using an Nvidia card though, perhaps AMD handles it better?

Xaurus
5th November 2011, 23:55
Nope, it's exactly as it should read. The option is meant for European h264 1080i50 movie broadcasts that were slowed down to 48i. These are all properly flagged and don't need to be deinterlaced. The "48i" means "48 fields per second interlaced".
Thanks madshi.

jmone
6th November 2011, 00:10
The ms time stats may not be too reliable. Please watch over how the various queues are filled / not filled. That's the most important thing. Maybe you can find out under which circumstances you get those batches of dropped frames? Which queues are empty exactly at that moment?


When it is nice and stable, my queues look like this:
- decoder queue: 11-13/13
- upload queue: 7-9/9
- deinterlace queue: 6-9/9
- render queue: 5-8/8
- backbuffer queue 4-7/8 (note: I raised this to 8)

It seems to start with the upload queue starting to move around and it can drop to as low as 4-9 which will then in turn decrease all the other queues after that. Here is an example on a h264 1080/60i
- decoder queue: 11-13/13
- upload queue: 6-9/9
- deinterlace queue: 4-9/9
- render queue: 4-8/8
- backbuffer queue 0-7/8

EDIT - It could also just be "Observer effect"

Plutotype
6th November 2011, 00:14
Hi madshi,
Thanks for the new version and replies. I really appreciate it. Especially thanks for expanding the decoder queue to 12:).
That helped a lot, because it looks like my decoder queue never goes so deep down during playback. I mean progressive HD material, not interlaced. Now Im watching the problematic movie again ( using madVR decoders instead of LAVvideo ) and the decoder queue is 11-12/12, but drops regurarly to 6-12/12 or even 3-12/12. As you have now increased the decoder queue to 12, playback gave me couple of dropped frames but its definately better. The decoder queue can not fall down to 0-12/12 again, so I need to find out why the decoder queue is not stable.

Can you please tell me, what decoder queue looks like on your setup, when you play a 30Mb bitrate blu-ray movie? What is the decoder queue supposed to behave during movie playback?

Thanks
Pluto

Andy o
6th November 2011, 00:29
Whoa, didn't expect this so soon! Thanks so much. Have a fanless 5770 with no silent-stream bug gathering dust here!

Andy o
6th November 2011, 00:59
madshi, one issue with the refresh rate changer. I have an mkv remuxed from DVD (MPEG-2 29i), and when putting a "23p" or "24p" in the file name, refresh rate changes to 50p (without that in the file name, I get correctly 60p but it's telecined content). I have 1080p24, 1080p50 and 1080p60 in the rates field in madVR options.

IVTC with decimation seems to be working fine on its own, compared to CUVID where decimation has to be done separately by something like an avisynth script. This is all with the 460 and LAV video in software mode, haven't switched to AMD yet.

TheShadowRunner
6th November 2011, 01:01
Hmm a very strange behavior/bug with 0.78:
Launch the player, start playing a video. Minimize the player in the task bar (so the image isn't displayed) but keep playback going.
Wait like a minute. When you bring the player back up, the video plays super crazy fast to catch up with the audio.
The video itself stops being "refreshed" as soon as it stops being visible (player minimized), it seems.

derp
6th November 2011, 01:49
What problem do you mean exactly?

Subs disappear when I pause the video. I'm using v0.78 of course.

SamuriHL
6th November 2011, 02:02
madshi,

Deinterlacing working beautifully with my quadcore monster HTPC with the AMD 5870. Catalyst 11.10 drivers. I threw one of my toughest interlaced videos at it. Given that machine's power, it doesn't surprise me that it was smoother than my nVidia 450 with CUVID. It's simply a matter of machine power. This is absolutely wonderful.

Andy o
6th November 2011, 02:10
OK, so I switched to AMD, with the 5770 and 11.10 drivers. Some observations re: deinterlacing compared to NV, not just CUVID, but also software decoding with LAV (MS decoder for VC-1), which seemed to work similarly if not identically.

With AMD the output of my VC-1 blu-ray is 25p. With NV CUVID decoding set to 50p/60p and MS decoding + madVR deinterlacing, it seemed to be the same, very smooth. Don't have 29i blu-rays right now to test those.

With AMD IVTC is not working at all with the same remuxed mkv MPEG-2 I mentioned above. Refreshing at 23p, I get very choppy video with many dropped frames per second. With NV and LAV's MPEG-2 decoder it seemed OK. Switching decoders to madVR's mpeg-2 decoder is the same.

Also, this:
[
(5) ATI users please activate the switch "Advanced Color -> Dynamic Range" and set it to "Limited (16 - 235)". This will make sure that BTB and WTW are not cut off by DXVA2 deinterlacing.
This seems to be the opposite, I find that Full is the right setting, just like with Media Center and EVR.

Andy o
6th November 2011, 02:11
madshi,

Deinterlacing working beautifully with my quadcore monster HTPC with the AMD 5870. Catalyst 11.10 drivers. I threw one of my toughest interlaced videos at it. Given that machine's power, it doesn't surprise me that it was smoother than my nVidia 450 with CUVID. It's simply a matter of machine power. This is absolutely wonderful.
Do you have your CUVID set to output 50p/60p? (See my post above.)

robpdotcom
6th November 2011, 02:15
My question is: What can I do to signal the automatic refresh rate changer that DVD "A" is 23.976 sof-coded to 29.976 (so change the refresh rate to 23.976) and DVD "B" is telecined to 29.976 interlaced (so change the refresh rate to 29.976 (or 59Hz in my case))? I know about manually typing in the refresh rate in the file name but since this is a DVD structure that goes through the IFO first, how can I manually "switch" and "fake" the source filter reported refresh rate?

You can use DScaler MPEG2 decoder, and madvr will automatically assume 23.976.

SamuriHL
6th November 2011, 02:17
Do you have your CUVID set to output 50p/60p? (See my post above.)

I do indeed.

ryrynz
6th November 2011, 02:23
Looks like that decoder queue increase has helped, probably wouldn't hurt to re-evaluate your settings with this release if you care about optimal settings.

Andy o
6th November 2011, 02:33
I do indeed.

I can't get the 5770 to deinterlace my video into 50p, what content are you testing specifically? I might go for a drive to the nearest blockbuster.

SamuriHL
6th November 2011, 02:38
I can't get the 5770 to deinterlace my video into 50p, what content are you testing specifically? I might go for a drive to the nearest blockbuster.

First, to remind you that the AMD machine is connected to a display that only supports 59 or 60. So I'm running at 59. I'm also using JRiver MC17's video clocking (reclock like) functionality.

Now, the content I was testing is home built 1080i recorded with my HD PVR. One video I've recorded in particular is a real pain in the ... uh yea. Anyway, it plays beautifully now. I haven't yet had a chance to watch some TiVo of WTV files (both mpeg-2). I'm watching V for Vendetta right now (remember, remember, the 5th of November :D) so I can't do any more testing tonight. But the h.264 1080i video recorded from the HD PVR is awesome.

robpdotcom
6th November 2011, 03:18
When deinterlacing 1080i59 (or any "i59" video), is it normal that MPC-HC/Reclock/MadVR all report 29Hz, even though it should be 59Hz after deinterlacing? It looks fine to me (as good as using LAV CUVID, as far as I can tell), so I assume it really is running at 59Hz.

EDIT:

BTW: I installed my AMD card (5750), and tested with some fast moving content (tennis matches, fwiw, where it's easy for me to see a difference) - it was not nearly as smooth as with the NVIDIA GTS-450. Using EVR (with DXVA decoding) or yadif is clearly smoother than madVR on my AMD card - it really seemed like there was no deinterlacing going on. I tried playing around with some of the AMD video settings, and the "deinterlace in separate thread" option in madVR but no changes made any difference as far as I can see. The OSD shows that deinterlacing is being used, and all queues are full.

If you want a log, a sample, more details, or have any suggestions, just say the word.

BTW: THANK YOU!!

andybkma
6th November 2011, 04:13
Hmm a very strange behavior/bug with 0.78:
Launch the player, start playing a video. Minimize the player in the task bar (so the image isn't displayed) but keep playback going.
Wait like a minute. When you bring the player back up, the video plays super crazy fast to catch up with the audio.
The video itself stops being "refreshed" as soon as it stops being visible (player minimized), it seems.

Yah, same here

QBhd
6th November 2011, 05:08
Regarding the failure of exclusive mode when playing from a playlist of multiple files of various frame rates and resolutions:

I have a few more observations to add. First, the failure seems to happen when switching from a 29fps to a 24fps (or vice versa). I thought it might have been when switching from an SD avi to a 720p mkv, but after tracking the problem for weeks I have narrowed it down to a frame rate change. Secondly, I was toying with the idea of using "Disable Desktop Composition (Vista or Higher)" since I did not think having a composition frame rate of 60Hz worked well with a monitor resolution of 24Hz... it just seemed wrong, I might be fooling myself however I thought I would see what would happen when enabling this setting. Guess what, there was not one instance of exclusive mode failure during a very long playlist of varying frame rates. So I may have solved my "exclusive mode failed" issue by accident by testing a setting for another reason.

I just thought I would share my observations.

QB

JarrettH
6th November 2011, 06:24
To clarify, this technically does not work with DVDs right? madvr works as the renderer in my case, but will not decode

Like 6233638 says, File > Open Disc uses Microsoft DTV-DVD automatically and blocking that uses internal MPC-HC one which is poor. The only problem with the Microsoft one was lack of navigation and subtitles, quality was fine IMO.
In ffdshow I have MPEG2 decoding (libavcodec, 'DVD decoding' ticked), NV12 output, and using the 'set interlaced flag in output media type' option. This combo seems to activate the deinterlacing on my gpu as I don't have it setup anywhere else. Err is that correct?

jmone
6th November 2011, 07:27
Did some more deinterlace testing on my HTPC and it looks pretty good. The issue with the dropped frames is less frequent on this PC and the queue fluctuation seems to rellay only be the SD stuff (worse was the DV-AVI material in 720x576/50i). All the HD material (1920x1080/50&60i in VC-1 and h264 as well as MPEG2 1440x1080/50i) had rock solid queues.

dansrfe
6th November 2011, 07:28
To clarify, this technically does not work with DVDs right? madvr works as the renderer in my case, but will not decode

Like 6233638 says, File > Open Disc uses Microsoft DTV-DVD automatically and blocking that uses internal MPC-HC one which is poor. The only problem with the Microsoft one was lack of navigation and subtitles, quality was fine IMO.
In ffdshow I have MPEG2 decoding (libavcodec, 'DVD decoding' ticked), NV12 output, and using the 'set interlaced flag in output media type' option. This combo seems to activate the deinterlacing on my gpu as I don't have it setup anywhere else. Err is that correct?

http://forum.doom9.org/showthread.php?t=159492

madshi
6th November 2011, 10:02
WinXP SP3 x86
7800GTX 512

madVR deinterlacing has a tendency to crash at the beginning of MPEG2-TS files.

Crash/Working Logs: http://www.mediafire.com/?fl3x9a973ah3kwx

EDIT: Enabling Managed Upload Texture stops the crashes. Possibly you should automatically enable this when using DXVA2 Deinterlacing on WinXP? I seem to remember that setting hurting smoothness normally though. Maybe I should re-test smoothness with that setting, or is this something you can fix without that setting?
It seems that creating a texture at some point fails in your case. I'm not 100% sure why, but my best guess would be that madVR is simply running out of GPU RAM. Maybe I need to work on that, or maybe allow the render etc queues to be configured smaller. Deinterlacing definitely takes more GPU RAM. Not sure why Managed Textures stop the problem. It's possible Managed Textures resort to PCIe RAM when GPU RAM runs out, but I'm not sure...

Function: Deinterlacing works for me other than when I resize. When I scale up the 10-13/13, 4-7/9, 2-5/9, 2-5/8, 0-3/8 for decoder, upload, deinterlac, render and present queues respectively.
Interesting. Is this exclusive or windowed mode? What happens if you enable Bilinear scaling for chroma and luma up/down? Does it still not work then?

Quality: Deinterlacing certain "uncleanly interlaced" sources causes some artifacts and shimmering to occur. When compared to ffdshow's ffmpeg deinterlacer, ffmpeg does a much cleaner deinterlacement.
Which exact ffmpeg deinterlacer are you using? yadif? It would be *very* helpful if you could cross test this with VMR/EVR. If the same shimmering occurs there, then it's out of my hands.

I have not compared to VMR/EVR deinterlacing yet because I don't know how to activate deinterlacing for VMR/EVR.
You simply use VMR/EVR instead of madVR and make sure to use a decoder which sets the interlaced flags. E.g. LAV Video Decoder does, if you configure it accordingly.

doesnt even work when activating the trade quality for performance settings and setting scaling algorithms to nearest neighbor (for both, 29.97 fps AVC and VC-1)
Have you tested in windowed or exclusive mode? You don't have your GPU fixed at some lower clock? Does it not even work for interlaced SD content? Please cross check with VMR/EVR.

I'm using LAV Splitter. If you open the video, click at the start of it, and keep going through the frames (ctrl+right) you should be able to select the patterns.

It seems that using madVR to decode doesn't let you go back frame-by-frame though, only forward. (I was still using LAV Video when I tried that) It should be the third pattern.
I can't get them to stay. Tried different decoders and splitters. Anyway, I'll find a way somehow.

Fair enough. With madVR/CUVID deinterlacing, it is considerably better than the results I get with any of the software decoders I've tried, but there's still aliasing on a lot of the image, such as the benches in the background and the mic stand/cables when panning down.

I'm using an Nvidia card though, perhaps AMD handles it better?
Maybe. Is this a native video or movie source, btw (in case you know)? I've put it into my deinterlacing sample collection. Do you have any more such difficult to deinterlace samples?

Can you please tell me, what decoder queue looks like on your setup, when you play a 30Mb bitrate blu-ray movie? What is the decoder queue supposed to behave during movie playback?
The decoder queue is supposed to stay nearly full (at least 8/12) at all times.

madshi, one issue with the refresh rate changer. I have an mkv remuxed from DVD (MPEG-2 29i), and when putting a "23p" or "24p" in the file name, refresh rate changes to 50p (without that in the file name, I get correctly 60p but it's telecined content). I have 1080p24, 1080p50 and 1080p60 in the rates field in madVR options.
Will check that.

IVTC with decimation seems to be working fine on its own, compared to CUVID where decimation has to be done separately by something like an avisynth script. This is all with the 460 and LAV video in software mode, haven't switched to AMD yet.
With AMD IVTC is not working at all with the same remuxed mkv MPEG-2 I mentioned above. Refreshing at 23p, I get very choppy video with many dropped frames per second. With NV and LAV's MPEG-2 decoder it seemed OK. Switching decoders to madVR's mpeg-2 decoder is the same.
Decimation should not be working at all, neither with NVidia nor with AMD. Except for soft-telecined movies. There it's not really decimation, but instead the decoder outputs the soft-telecined frames without splitting them up and DXVA simply leaves these frames untouched. It kinda looks like decimation, but it isn't really. But again, there should be no difference between ATI and NVidia. I'm not 100% sure what CUDA does, but I suspect it should be no different to DXVA in terms of decimation. But I don't really know, nevcairiel might be able to answer that.

Hmm a very strange behavior/bug with 0.78:
Launch the player, start playing a video. Minimize the player in the task bar (so the image isn't displayed) but keep playback going.
Wait like a minute. When you bring the player back up, the video plays super crazy fast to catch up with the audio.
The video itself stops being "refreshed" as soon as it stops being visible (player minimized), it seems.
Is this a new problem with v0.78?

Subs disappear when I pause the video. I'm using v0.78 of course.
This should happen only if you have the madVR debug OSD (Ctrl+J) active. Without the madVR debug OSD the subs should not disappear if you pause the video. Which media player are you using?

Deinterlacing working beautifully with my quadcore monster HTPC with the AMD 5870. Catalyst 11.10 drivers. I threw one of my toughest interlaced videos at it. Given that machine's power, it doesn't surprise me that it was smoother than my nVidia 450 with CUVID. It's simply a matter of machine power. This is absolutely wonderful.
Good to hear!

This seems to be the opposite, I find that Full is the right setting, just like with Media Center and EVR.
What makes you say that? Do you get different black/white levels when switching that option? You should not, when using madVR. You probably will with EVR, but not with madVR. If you do, then please upload two small madVR logs, one with that option off and one with it on. Thx.

I can't get the 5770 to deinterlace my video into 50p
How do you know? Does Ctrl+Alt+Shift+D claim deinterlacing is off? And you can't turn it on?

When deinterlacing 1080i59 (or any "i59" video), is it normal that MPC-HC/Reclock/MadVR all report 29Hz, even though it should be 59Hz after deinterlacing? It looks fine to me (as good as using LAV CUVID, as far as I can tell), so I assume it really is running at 59Hz.
I'm not sure what MPC-HC and Reclock will show, but I guess it's ok that way. Just make sure madVR says that deinterlacing is on.

I installed my AMD card (5750), and tested with some fast moving content (tennis matches, fwiw, where it's easy for me to see a difference) - it was not nearly as smooth as with the NVIDIA GTS-450. Using EVR (with DXVA decoding) or yadif is clearly smoother than madVR on my AMD card - it really seemed like there was no deinterlacing going on. I tried playing around with some of the AMD video settings, and the "deinterlace in separate thread" option in madVR but no changes made any difference as far as I can see. The OSD shows that deinterlacing is being used, and all queues are full.
Are there dropped frames? Are you using the same decoder for madVR and EVR? Can you see the difference in screenshots? Or is the non-smoothness more looking like frame drops, with no difference visible in screenschots?

I was toying with the idea of using "Disable Desktop Composition (Vista or Higher)" since I did not think having a composition frame rate of 60Hz worked well with a monitor resolution of 24Hz... it just seemed wrong, I might be fooling myself however I thought I would see what would happen when enabling this setting. Guess what, there was not one instance of exclusive mode failure during a very long playlist of varying frame rates. So I may have solved my "exclusive mode failed" issue by accident by testing a setting for another reason.
Interesting, thanks for the heads up.

To clarify, this technically does not work with DVDs right? madvr works as the renderer in my case, but will not decode

Like 6233638 says, File > Open Disc uses Microsoft DTV-DVD automatically and blocking that uses internal MPC-HC one which is poor. The only problem with the Microsoft one was lack of navigation and subtitles, quality was fine IMO.
In ffdshow I have MPEG2 decoding (libavcodec, 'DVD decoding' ticked), NV12 output, and using the 'set interlaced flag in output media type' option. This combo seems to activate the deinterlacing on my gpu as I don't have it setup anywhere else. Err is that correct?
Whether you can make madVR work with DVDs or not has nothing to do with deinterlacing. That's still the same problem as in the past. If you do get it to work, then deinterlacing should work just fine. Depending on the decoder deinterlacing might get turned on automatically or not. If it doesn't and you need it, you can turn it on manually by pressing Ctrl+Alt+Shift+D twice.

Did some more deinterlace testing on my HTPC and it looks pretty good. The issue with the dropped frames is less frequent on this PC and the queue fluctuation seems to rellay only be the SD stuff (worse was the DV-AVI material in 720x576/50i). All the HD material (1920x1080/50&60i in VC-1 and h264 as well as MPEG2 1440x1080/50i) had rock solid queues.
It's pretty weird that you have problems with SD content but not with HD content! The other way round would make more sense... :confused:

TheShadowRunner
6th November 2011, 10:12
Is this a new problem with v0.78?

Hi, yes.

madshi
6th November 2011, 10:17
Hi, yes.
Just tried this on my XPSP3 PC. Can't reproduce it. I minimize. Audio continues to play. After 1 minute I restore the window and video continues to play just fine.

TheShadowRunner
6th November 2011, 10:29
When you restore, you don't see the image part of the video playing super crazy fast to catch up with the audio?
That the image hasn't been refreshed since you minimzed 1 minute prior?

madshi
6th November 2011, 10:46
That's what I said, it looks perfectly fine here with no catching up or any other visible problems.