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

mzso
17th August 2011, 23:12
And it turned stuttery again.
The queues were something like this:
decoder: 6-8 - 7-8 /8
upload: 5-8 - 6-8 /8
render: 1-3 - 1-5 /8
present: 0-3 /3

and now its good again:
7-8 /8
6-8 - 7-8 /8
6-8 - 7-8 /8
2-3 /3

QBhd
17th August 2011, 23:17
I have the same problem when opening a lot of files in seamless playback mode, I thought it was due to the seamless parser which is quite buggy from what I was told on the official forum...or possibly ffdshow. If it's indeed due to mVR, it'd be great if you could provide samples to madshi so he could fix it :)

Samples for this are not needed. All you need is to have PotPlayer. Alternate SD XviD AVI's with HD x264 MKV's in a playlist. Use a decoder of your choice for the XviD's and use madVR as a decoder for the x264's. Also run madVR in Fullscreen Exclusive. When the x264 file finishes it's playback and moves on to an XviD file, madVR crashes.

QB

ForceX
17th August 2011, 23:47
That's very weird. Does it occur with every video files, or just with one? I've never seen anything like that yet. Not sure, it must either be specific to that one video file, or maybe it's a GPU driver bug? In any case, I need to be able to reproduce it, otherwise a fix will be difficult.
The video cutoff thing happens on all files, but it's just a driver bug in my laptop's Geforce. Doesn't happen with the integrated Intel one. Damn OEM drivers... RGB32 used to work before, but oh well. Not like I need it.

And it turned stuttery again.
The queues were something like this:...

Your graphics card doesn't seem to be powerful enough. Try using Bicubic resizers, and maybe increase the "present frames in advance" number.

kasper93
17th August 2011, 23:53
I don't even know what subresync is?

view->Subresync or crtl+6 in MPC-HC :) It's really usefull to apply little changes to subtitles without using any external apps or converting subtitle format. To see the problem you should run movie with frame rate other than 25.0FPS(default) and load subtitles in format like this one: {2677}{2778}line1
{2816}{2893}line2

BTW. Look at those screens good (http://dl.dropbox.com/u/16282309/MPC-HC/good.png), bad (http://dl.dropbox.com/u/16282309/MPC-HC/bad.png) (timestamps).

QBhd
18th August 2011, 00:11
As to my other problem with 720p60 x264 files... here is a small sample. and I have also included the debug log for a few minutes of playback with madVR on default settings.

720p60 Sample MKV (http://www25.zippyshare.com/v/29544471/file.html)

madVR - log (http://www25.zippyshare.com/v/78560075/file.html)

QB

BatKnight
18th August 2011, 00:47
@madshi, congratulations on your 5000 posts...
Keep up the great work. Your madVR is wonderful. I can watch an entire movie with 0 dropped frames, 0 delayed and 0 glitches up until the the end!

Thanks.

BatKnight
18th August 2011, 01:16
As to my other problem with 720p60 x264 files... here is a small sample. and I have also included the debug log for a few minutes of playback with madVR on default settings.

720p60 Sample MKV (http://www25.zippyshare.com/v/29544471/file.html)

madVR - log (http://www25.zippyshare.com/v/78560075/file.html)

QB
I got 0 dropped frames with LAV Spliiter + LAVCUVID + LAV Audio + madVR when playing your sample in fullscreen exclusive mode.

Bat

nand chan
18th August 2011, 01:57
Screenshots of the aforementioned banding with 4:4:4 video:

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

The madVR only version isn't truly perfect, but there's no detectable /macro/banding, ie. no 30 pixel wide bands - all inaccuracies are limited to 1 pixel streaks here and there.

I understand now why you can't expose the pipeline using DirectShow. Next best option would be exposing a GPU pipeline API I suppose but that would require significant effort. I don't think it should be a priority.

cyberbeing
18th August 2011, 02:22
Hmmmm... I'll need to check what Reclock exactly looks for. Maybe I can talk to James (SlySoft) to find a solution for that. Shouldn't be too hard.

So you're saying CoreAVC isn't decoding, madVR is, but still Reclock picks up the frame rate? That sounds weird...

It turns out it works with FFDShow and probably other decoders as well when set to high merit (which you then need to override in MPC-HC). Reclock seems to open the video briefly with the default decoder. Since the madVR decoder is inaccessible, it uses the first thing available.

Edit: ReClock working also seems highly dependent on your splitter. If you install LAVFilters Splitter, for example, ReClock's DirectShow detection breaks, and you need to re-install Haali Media Splitter (or another working splitter) for it to work again. Nevcairiel if you read this, you may want to look into why this is happening with your splitter. (Edit2: see below)

Edit2: The problem with LAVSplitter appears to be that it doesn't register its source filter with the necessary file extensions under HKEY_CLASSES_ROOT\Media Type\Extensions and actually deletes whatever entries are there on installation, which is why ReClock breaks.

madshi, you'll still need to deal with the problem that ReClock can't access your decoder though. As it stands now, everybody needs a VC-1, MPEG2, and H264 decoder with a merit > 0x800000 and and a working splitter like Haali for ReClock DirectShow framerate detection to work, even if they are using madVR's VC-1/MPEG2/H264 decoders...

True. I could probably change that. However, it might cost performance, i'm not sure. How important is that? I mean we color correct video to make it look "correct". How can it matter for subtitles whether they're color corrected or not? Sounds weird to me.
It's important for color matched typesetting and vector shapes, since a 3DLUT correction applied to the video but not subs could result in two starkly different colors when they were meant to be identical. I would say this is important to implement at least as a toggle-able option for correctness.

I just tested the latest threaded VSfilter with Hi10P material,

It “converts” 10 bit material to 8 bit by rounding down. Causes insane, immediately noticeable banding.
As ForceX said, any converting from 10 bit to 8 bit happens before VSFilter gets it's hands on the video. The only way it would create more banding is if you were using its sub-optimal colorspace conversions to output a different color space.

Screenshots of the aforementioned banding with 4:4:4 video
That test video should probably be deleted... I realized later that I accidentally created banding when encoding since I forgot to specify the fullrange flag. It does show how good madVR is at smoothing out sources which contain banding though... :(

nand chan
18th August 2011, 02:43
As ForceX said, any converting from 10 bit to 8 bit happens before VSFilter gets it's hands on the video. The only way it would create more banding is if you were using its sub-optimal colorspace conversions to output a different color space.

Fair enough, we should probably get our hands on a decent 4:2:0 10-bit video for proper testing.

That test video should probably be deleted... I realized later that I accidentally created banding when encoding since I forgot to specify the fullrange flag. It does show how good madVR is at smoothing out sources which contain banding though... :(

That might explain it. Any chance you could re-encode it properly, using 4:2:0 Hi10P?

cyberbeing
18th August 2011, 02:54
I'm tempted to wait until a patch which fixes the x264 swscale levels bug lands, before making another attempt.

nand chan
18th August 2011, 03:32
I'm tempted to wait until a patch which fixes the x264 swscale levels bug lands, before making another attempt.

I just realized that the madTestPatternSource generator actually works quite well for this.

Any chance of updating it to output a 10 bit 4:2:0 signal?

liason
18th August 2011, 05:57
Problem: partially black picture (see http://img842.imageshack.us/img842/2446/madvrrgb32outputfromffd.th.jpg (http://imageshack.us/photo/my-images/842/madvrrgb32outputfromffd.jpg/)).
Conditions: when watching videos with ffdshow and in the Output tab only RGB32 is selected as supported colorspaces. Using MPC-HC 1.5.2.3456, madVR 0.73, ffdshow 3964.
Comments: this is observed with every video & only with madVR selected as renderer (with Haali renderer or VMR9 everything is fine).

e-t172
18th August 2011, 08:19
ReClock working also seems highly dependent on your splitter. If you install LAVFilters Splitter, for example, ReClock's DirectShow detection breaks, and you need to re-install Haali Media Splitter (or another working splitter) for it to work again. Nevcairiel if you read this, you may want to look into why this is happening with your splitter.

ReClock works perfectly fine with LAV Splitter on my system.

THEAST
18th August 2011, 08:45
Ah thanks, the autodetection fails there, need to check why. Do the colors look correct if you manually change the decoding matrix from BT.709 to BT.601?
How can I manually change the decoding matrix?

ForceX
18th August 2011, 08:53
How can I manually change the decoding matrix?
Ctrl+Alt+Shift+M

nevcairiel
18th August 2011, 09:12
It turns out it works with FFDShow and probably other decoders as well when set to high merit (which you then need to override in MPC-HC). Reclock seems to open the video briefly with the default decoder. Since the madVR decoder is inaccessible, it uses the first thing available.

Edit: ReClock working also seems highly dependent on your splitter. If you install LAVFilters Splitter, for example, ReClock's DirectShow detection breaks, and you need to re-install Haali Media Splitter (or another working splitter) for it to work again. Nevcairiel if you read this, you may want to look into why this is happening with your splitter. (Edit2: see below)

Edit2: The problem with LAVSplitter appears to be that it doesn't register its source filter with the necessary file extensions under HKEY_CLASSES_ROOT\Media Type\Extensions and actually deletes whatever entries are there on installation, which is why ReClock breaks.

madshi, you'll still need to deal with the problem that ReClock can't access your decoder though. As it stands now, everybody needs a VC-1, MPEG2, and H264 decoder with a merit > 0x800000 and and a working splitter like Haali for ReClock DirectShow framerate detection to work, even if they are using madVR's VC-1/MPEG2/H264 decoders...

Somehow i really doubt that ReClock depends on the way your filters are registered in the registry to figure out the FPS, rather then the filter graph itself.
Maybe ReClock has some fallback mode that it builds its own filtergraph of the file if it cannot detect it from the current one? Of course this would break if madVRs decoder has the highest merit. :p

Anyhow, i also have absolutely no issues with ReClocks FPS detection with LAV Splitter.

cyberbeing
18th August 2011, 11:01
Somehow i really doubt that ReClock depends on the way your filters are registered in the registry to figure out the FPS, rather then the filter graph itself.
Maybe ReClock has some fallback mode that it builds its own filtergraph of the file if it cannot detect it from the current one? Of course this would break if madVRs decoder has the highest merit. :p
Why do you doubt it? That is exactly what ReClockHelper.dll (ReClock's DirectShow frame rate detection) does. You can see this happen with Process Explorer in the lower pane (ReClockHelper.dll loads the default decoder and splitter) and Process Monitor (ReClockHelper.dll reads a small part of the file).

It's a bit hard to catch since it only runs for a split-second when you open a video, but it does appear to be building its own graph with the default decoder (by merit) and splitter source filter (if there is an entry under HKEY_CLASSES_ROOT\Media Type\Extensions for the file type).

madVR's merit is very low at 0x200000, so it will never get used by ReClock. This isn't a problem, since currently the madVR decoder can't be used by anything other than madVR...

The DirectShow estimator is instant framerate detection on video open.

The Built-in estimator is the fall-back solution when the DirectShow estimator fails. It is always watching the active graph (I assume), looking for frame-rate changes on things like VFR content or DVDs. It's completely broken with the madVR decoder though (which is a problem that madshi will need to deal with eventually...), but with other decoders it will eventually determine the current framerate.

Anyhow, i also have absolutely no issues with ReClocks FPS detection with LAV Splitter.

So it works for you when you uncheck "Use built-in estimator", leaving only "Use DirectShow" checked?

It doesn't for me, with any decoder when LAV Splitter is installed. Manually adding the correct registry entries fixes it though. This has the positive side-effect of LAV Splitter being used by default, even if Haali is installed.

All you need to do is add entries like the following, for every format LAV Splitter can act as a source filter for:
[HKEY_CLASSES_ROOT\Media Type\Extensions\.mkv]
"Source Filter"="{B98D13E7-55DB-4385-A33D-09FD1BA26338}"
If there is no protocol in the file name, the Filter Graph Manager looks in the registry for entries with the key HKEY_CLASSES_ROOT\Media Type\Extensions\.ext\, where .ext is the file extension. If this key exists, the value Source Filter contains the CLSID of the source filter, in string form.

nevcairiel
18th August 2011, 11:16
All you need to do is add entries like the following, for every format LAV Splitter can act as a source filter for:
[HKEY_CLASSES_ROOT\Media Type\Extensions\.mkv]
"Source Filter"="{B98D13E7-55DB-4385-A33D-09FD1BA26338}"

I know how those keys work, and if you use the installer for LAV Splitter, it will also write them for you (the install.bat will however not).
But its not the only way to open files - there is a second option to identify them by a bytemarker at the start of the file, and associate that to a source filter. Why ReClock does not use that, i don't know.

cyberbeing
18th August 2011, 11:24
I've always tested LAV Filters using the .bat files, so I guess that explains it. I'll make sure to use the installer the next time around. I assume ReClock uses only that method to shave a few milliseconds off the time it takes to build a filter graph, but it does seem like it should be falling back to the bytemarker method if it fails.

Pointing people to the LAV Filters installer if they have ReClock troubles, would be a good thing to add to your FAQ in the LAV Filters thread.

nand chan
18th August 2011, 12:22
I know how those keys work, and if you use the installer for LAV Splitter, it will also write them for you (the install.bat will however not).
But its not the only way to open files - there is a second option to identify them by a bytemarker at the start of the file, and associate that to a source filter. Why ReClock does not use that, i don't know.

Any reason the install.bat will not add them?

nlnl
18th August 2011, 13:18
madshi

Thanks for .73!

Could you tell, does embedded in Madvr Mpeg2, H264 decoders support correct inverse telecine transformation for PAL films (1080/576i50--> 1080/576p25)?

And do you have any plans for NTSC (1080/480i59-->1080/480p23) ?

nevcairiel
18th August 2011, 13:21
madVRs internal decoder does not do any form of deinterlacing, IVTC or any other magic to combine fields properly, as far as i can tell it just weaves them together.


Any reason the install.bat will not add them?

The bat file just registers the filter, its in no way suitable for a full blown installation process.
I could as well just remove the bat files, i dont think they really have an advantage over the installer. They are harder to use (need to manually run as admin), have less functionality .. meh.

nlnl
18th August 2011, 13:33
madVRs internal decoder does not do any form of deinterlacing, IVTC or any other magic to combine fields properly, as far as i can tell it just weaves them together.


And for PAL films is just weaves them together equivalent to correct IVTC 50i-->25p ?

nand chan
18th August 2011, 13:35
The bat file just registers the filter, its in no way suitable for a full blown installation process.
I could as well just remove the bat files, i dont think they really have an advantage over the installer. They are harder to use (need to manually run as admin), have less functionality .. meh.

Probably should. Either that, or just add the keys to the .bat file as well (reg add hklm\etc\bla). I've always run the .bat, never figured there was a difference from the installer.

nand chan
18th August 2011, 16:00
In the effort of finding out the difference between upscalers, I took a screenshot of a bunch of them on a 720p Hi10P release (as well as one of a 1080p release) using different upscaler settings.

I was surprised to find out that, well, there really isn't a damn difference because apart from nearest neighbour, they all looked the same to the eye (on this particular image, at least).

In effort to observe the difference beyond the limits of the human eye, I compared both lanczos 3 taps with lanczos 8 taps and lanczos 3 taps with spline 4 taps using a pixel-wise image difference calculation program, which basically subtracts the value in the latter image from the value in the former image, amplifies the change by a factor of 50.0, then normalizes it to 127/127/127 (so that gray = no difference, white = image 2 brighter than image 1, black = image 2 darker than image 1).

Some interesting comparisons have been made, especially between lanczos 3 taps and 8 taps.

An archive of all test images + the difference images can be found here: http://www.mediafire.com/?zcadn71upr1e597

In addition to this, I have (experimentally) separated the positive and negative offset components between lanczos3 and lanczos8, amplified them by 20.0 and brightened / darkened the original image using those images as masks. The resulting image is essentially a composite of lanczos8 as difference of lanczos3, except amplified significantly enough to observe a visible difference: http://img834.imageshack.us/img834/5237/lanczos3v8color.png

The image is interesting because it immediately reveals the ringing: what was originally one line now has one darker line beside it, and one brighter line on the other side (harder to see), which signify very faint ghost line in those places on the lanczos 8 tap image.

Razoola
18th August 2011, 17:21
All is quiet from me while I await my gtx295 being RMA'd. I have to ask the question I've been dying to ask madshi for a while.....

Is the fact you added you own video decoders to madVR a step towards madVR supporting 3D content?

nand chan
18th August 2011, 17:30
All is quiet from me while I await my gtx295 being RMA'd. I have to ask the question I've been dying to ask madshi for a while.....

Is the fact you added you own video decoders to madVR a step towards madVR supporting 3D content?

It's not his own video decoder, it's just a packaged form of libavcodec from the ffmpeg project.

Isn't stereoscopic content just encoded as a very wide or very high regular frame that is then simply split in the middle by the display device? Or is it a separate video stream?

Either way, actually rendering it would depend strongly on the type of stereoscopic device you are intending to use - the simplest option would be rendering each image to a separate display device (equal in size), which would allow you to use polarized or interferential projector setups (or just cross your eyes); the option of shutter glasses would probably be strongly dependent on some proprietary device-specific implementations.

ForceX
18th August 2011, 17:38
I was surprised to find out that, well, there really isn't a damn difference because apart from nearest neighbour, they all looked the same to the eye (on this particular image, at least).
Well of course. Unless you're doing huge upscaling/downscaling (like using 480p source to display in 1080p or vice-versa) the scaler does not create enough new pixels to make a big difference, and you'll never notice those differences unless you pause the video and compare individual frames. Bicubic 60 works more than fine enough for me, Lanczos is just a waste of GPU cycles and I could live without the ringing. Aliasing is more of a problem with anime than ringing, though.

It will be hard to notice differences with clean HD source. Maybe you can try this again with a low-res DVD source and see if existing noise gets amplified or not.

In effort to observe the difference beyond the limits of the human eye...
Now that's just placebo =P

e-t172
18th August 2011, 17:53
And for PAL films is it just weaves them together equivalent to correct IVTC 50i-->25p ?

Yes. Weave is enough to IVTC PAL 50i content back to 25p. To get 24p you'll need to slow down the audio (assuming the broadcaster did not use timestretching, which unfortunately is impossible to tell for sure).

Razoola
18th August 2011, 17:54
It's not his own video decoder, it's just a packaged form of libavcodec from the ffmpeg project.

Isn't stereoscopic content just encoded as a very wide or very high regular frame that is then simply split in the middle by the display device? Or is it a separate video stream?


Yes its just like you say, normally side by side which is why I wonder having the decoders with madvr is a step towards this.

nevcairiel
18th August 2011, 17:59
Isn't stereoscopic content just encoded as a very wide or very high regular frame that is then simply split in the middle by the display device? Or is it a separate video stream?

Both types exist. There are files around which are just encoded as SBS (Side-by-Side, basically giving you a 3840x1080 image). You'll find those if someone rips a 3D BD to MKV.

But there are also the original 3D Blu-rays, which use the MVC codec. Using that, one eye is encoded as normal H264/AVC1, and the other is using the special MVC coding. You can decode the one H264 eye alone just fine (backwards compat), but for the second eye you need a special MVC decoder (the MVC encoded stream is not a complete stream, its dependant on the H264 stream to be decoded).

As of now, the only MVC decoder in DirectShow is CoreMVC (except of course the integrated decoders in TMT/PowerDVD/etc), and thats not officially released yet. Its also quite uncertain how the frames from CoreMVC will be output and send to the renderer - well at least to me, maybe madshi has talked with someone at CoreCodec about that.

Now that i think about it, i'm not sure how they expect to sell CoreMVC, unless they also ship a renderer with it. ;)

nand chan
18th August 2011, 18:22
Both types exist. There are files around which are just encoded as SBS (Side-by-Side, basically giving you a 3840x1080 image). You'll find those if someone rips a 3D BD to MKV.

But there are also the original 3D Blu-rays, which use the MVC codec. Using that, one eye is encoded as normal H264/AVC1, and the other is using the special MVC coding. You can decode the one H264 eye alone just fine (backwards compat), but for the second eye you need a special MVC decoder (the MVC encoded stream is not a complete stream, its dependant on the H264 stream to be decoded).

As of now, the only MVC decoder in DirectShow is CoreMVC (except of course the integrated decoders in TMT/PowerDVD/etc), and thats not officially released yet. Its also quite uncertain how the frames from CoreMVC will be output and send to the renderer - well at least to me, maybe madshi has talked with someone at CoreCodec about that.

Now that i think about it, i'm not sure how they expect to sell CoreMVC, unless they also ship a renderer with it. ;)

Well, you could create a filter based on CoreMVC that generates an SBS image then just implement SBS support in madVR.

Or, heck, you could just display it normally and cross your eyes.

THEAST
18th August 2011, 19:24
Ctrl+Alt+Shift+M
Hmm, I thought that just showed the auto-detected matrix. ;p
Anyway, yeah, the colors are fine when I force the decoding matrix to BT.601.

mzso
18th August 2011, 21:03
Your graphics card doesn't seem to be powerful enough. Try using Bicubic resizers, and maybe increase the "present frames in advance" number.

Then why does it work sometimes. I watched a movie for like 10 minutes without a frame drop that usually stutters. And then a while later it stuttered again. Plus noee also with a 2600xt said it works well for him.
Something's definitely not right though. I just can't figure out what.

nand chan
18th August 2011, 21:33
Then why does it work sometimes. I watched a movie for like 10 minutes without a frame drop that usually stutters. And then a while later it stuttered again. Plus noee also with a 2600xt said it works well for him.
Something's definitely not right though. I just can't figure out what.

I hope you realize scenes are not consistent in bitrate and complexity, right?

Just because it works for half the scenes doesn't mean the other half are broken - it means your setup isn't powerful enough.

Unless of course you want to watch exciting documentaries about still frame art gallery exhibitions.

Like he said, enable all of the performance hacks, set the resizer to something lightweight.

mzso
18th August 2011, 21:50
I hope you realize scenes are not consistent in bitrate and complexity, right?

Just because it works for half the scenes doesn't mean the other half are broken - it means your setup isn't powerful enough.

Unless of course you want to watch exciting documentaries about still frame art gallery exhibitions.

Like he said, enable all of the performance hacks, set the resizer to something lightweight.
But that would affect the decoder, wouldn't it? Anyway I watched the more eventful parts and it was working fine then. Also sometimes just plain switchin from full screen to windowed a couple of times makes the stuttering go away.

nand chan
18th August 2011, 22:10
But that would affect the decoder, wouldn't it? Anyway I watched the more eventful parts and it was working fine then. Also sometimes just plain switchin from full screen to windowed a couple of times makes the stuttering go away.

No, the madVR performance hacks don't touch the decoder - they only apply to the renderer, which is solely on the GPU.

That might be due to varying levels of GPU load due to Aero in the background or something.

mzso
18th August 2011, 22:16
No, the madVR performance hacks don't touch the decoder - they only apply to the renderer, which is solely on the GPU.

That might be due to varying levels of GPU load due to Aero in the background or something.
I meant the complexity/bitrate of the scene.

nand chan
18th August 2011, 22:50
I meant the complexity/bitrate of the scene.

Oh, yeah, but the performance issues might be caused by a bottleneck anywhere being strained. You never know. (I also didn't read your problem fully so forgive me if I made a mistake in judgement, been awake for over 24 hours now)

ajp_anton
19th August 2011, 00:20
Bug:
10-bit video (http://www.multiupload.com/C70Z98HGY6) looks weird with madVR's decoders, but works fine with ffdshow.

nand chan
19th August 2011, 12:02
Bug:
10-bit video (http://www.multiupload.com/C70Z98HGY6) looks weird with madVR's decoders, but works fine with ffdshow.

Works fine using LAV Video as well for the reference.

nand chan
19th August 2011, 16:26
I wrote a small utility to parse an ArgyllCMS .ti3 file, average the white point, properly format it, and output the values so that it can be directly copy/pasted to madVR's yCMS window.

Executable can be found here, requires .NET 2.0 or above: http://www.mediafire.com/?ay5ituooueoit9m
Source code: http://www.mediafire.com/?4ozau7fa66nd402

This will come in handy for easily creating .3dluts from profile data. I recommend using Argyll's Curves + Matrix profile type to generate the .ti3. All code in public domain.

Edit 1: The same program as a command line utility for those who dislike GUIs:

Executable: http://www.mediafire.com/?8uk0u1ay9m18c9k
Source code: http://www.mediafire.com/?hkyg6z85kmnp4hp

Usage: TI3Console.exe <path to .ti3 file>

(If you're going to edit the source code, ignore this version - I'll properly outsource the logic into a library used by both programs soon)

Edit 2: Going to extend it to automatically create a .3dlut as well (by generating a yCMS script like madVR does) if anybody thinks this would be useful.

Edit 3: Started work on it already, I'm thinking of making it automatize ArgyllCMS (in addition to yCMS) so all you need to do is plug in your device and hit OK and it will generate a madVR friendly .3dLUT. Thoughts?

nand chan
19th August 2011, 21:11
One thing that has never worked properly with subtitle rendering resolution being different from the video resolution: 3D rotations. Any sign involving these (like the one THEAST posted) will get incorrectly aligned. The worse thing is that there's really no way to properly fix it either since MPC-HC doesn't have a "render subtitles at video resolution"-option.

Correct rendering of typesetting is the main reason why I keep using external VSFilter, since typesetting is always made with the video resolution (and subtitles being rendered in video resolution) in mind.

Also, another thing in regards to typesetting. The internal renderer, for whatever, doesn't seem to support the \fax and \fay tags properly. At least this is the case in the version I have right now (1.5.3.3514).

For comparison:
Correct external VSFilter rendering (http://i.imgur.com/G59Zz.jpg)
Incorrect internal VSFilter rendering (http://i.imgur.com/iaaey.jpg)

This was fixed,

http://img30.imageshack.us/img30/7683/isrscreen.jpg

^ using ISR

@madshi:

Would it be possible to implement an option like “[ ] delay playback start until subtitle render queue full” or something? Eg. the start of idolmaster 6 which has about a thousand softsubs in the first few seconds plays back horribly unless I pause it right away and wait for a few seconds so the buffer has time to fill. (With buffer size set to 60 to cover the whole animation, any less (eg. 15) starts to work but immediately cuts off because the buffer runs out)

Edit: Nevermind about this, setting the buffer size that high creates occasional stuttering and slowdown either way.

True. I could probably change that. However, it might cost performance, I'm not sure. How important is that? I mean we color correct video to make it look "correct". How can it matter for subtitles whether they're color corrected or not? Sounds weird to me.

Pic related? (http://img803.imageshack.us/img803/3100/cmsa.jpg)

hdboy
20th August 2011, 15:29
with system in sig, I get severe glitches if I check (ON) "use a separate device for presentation". Looks like my TV is having a seizure. It happens at random times and only with playback on second display (my TV). (Took me a while to nail down the problem. Hope this hepls someone)

spoke too soon, I still get occasional glitches at intervals with "use a separate device for presentation" off. By glitches I mean the video jerk back and forth like Max Headroom. To get glitch free playback, I have to use either exclusive mode or disable Aero. The path to true video never did run smooth :)

Xaurus
20th August 2011, 16:59
I am lately having a slight "problem" with what I assume to be banding; for example it's sometimes visible in the faces of people (the skin). Is there something that could be done about this?
My chain is LAV Splitter -> LAV CUVID -> MadVR. I am using Softcubic 70, Spline 4 and Spline 4. Makes no difference if I enable or disable dithering in MadVR.

Any help would be appreciated!

nand chan
20th August 2011, 17:10
I am lately having a slight "problem" with what I assume to be banding; for example it's sometimes visible in the faces of people (the skin). Is there something that could be done about this?
My chain is LAV Splitter -> LAV CUVID -> MadVR. I am using Softcubic 70, Spline 4 and Spline 4. Makes no difference if I enable or disable dithering in MadVR.

Any help would be appreciated!

Are you sure it's not in the source? Do you get it using any other renderers or decoders?

Xaurus
20th August 2011, 18:02
Are you sure it's not in the source? Do you get it using any other renderers or decoders?
I have not yet tried other renderers or decoders (no time) but by briefly comparing the images on my computer LCD and my main plasma, the issue seems to be only on the plasma. Which basically leaves me as a big question mark...

edit: The source is 720p 4:2:0 23.976 material (normal mkv) and I cannot recall having seen this with 1080p material.
I tried briefly to add the deband filter via ffdshow raw video, but it didn't make a difference either (I confirmed that it was in use).

6233638
20th August 2011, 19:17
Not strictly related to madVR, but I'm hoping someone here will have an answer, as it seems related. (people using madVR care about quality)

Has anyone got IVTC working for NTSC DVDs with madVR?

I'm not in an NTSC region, so I haven't had to deal with 29.97Hz films yet, but I have been sent the wrong region DVD and can't get it working right at all.


In an old changelog for madVR, it was said to detect DVDs as 23.97 if DScaler5 IVTC Mod was being used but it still says 29.97 here, the film is full of combing, stuttering movement, and MPC-HC crashes when trying to bring up the DScaler preferences.

I can get rid of the combing with ffdshow's deinterlacing filter, but I still can't get smooth playback.

noee
20th August 2011, 19:30
MPC-HC is crashing with Dscaler props because of DEP, IIRC.

Otherwise, I have a few NTSC DVDs (very old) that were working fine with the latest madVR and dscaler....I'll check again later, fwiw.