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

kalston
12th August 2011, 14:02
When using nVidia drivers newer than 260.xx, I get constant presentation glitches (like thousands if I watch a 2h film) if the "use a separate device for presentation" setting is turned off. Turning it on fixes it.

With drivers </= 260.xx, I don't any glitches even when this settting is turned off. Turning it on doesn't hurt either.

And I do feel playback is smoother when I don't get any glitches (but I'm not so sure, 23.976 isn't exactly "smooth" anyway, so maybe it's placebo)

I suppose this is entirely nVidia's fault though, not yours.

Hope this hasn't been posted already, I just noticed this since I upgraded to win 7 64 and I can't use old drivers on this because custom resolutions are completely broken otherwise. On XP I used older drivers (like 258.xx or 260.xx) so I never noticed this.

nevcairiel
12th August 2011, 14:12
If turning the setting on fixes it, all is well, isn't it? =)

kalston
12th August 2011, 15:35
If turning the setting on fixes it, all is well, isn't it? =)

Absolutely!
I'm just curious, as I'm not sure what this setting does etc :p

druneau
12th August 2011, 18:24
I own a 6bit+Dithering TN pannel (AW2310 120hz). Everything with madvr works great.

Is there a "technically" correct setting for the "display bit depth" in the madvr device properties screen?

Should a 6bit+dithering panel be set a 8bit, 7bit or 6bit?

Thanks,

nand chan
12th August 2011, 19:48
If you're not sensitive to flicker, wouldn't temporal dither be better than spatial dithering? If so, I would guess 8 bit and let the panel take care of dithering - unless it bands horribly or flickers, in which case 6 bit I'd guess. I don't think there are any true 7 bit panels around.

@madshi: If using yCMS to generate a .3dlut, does it do YUV->RGB conversion still or RGB->RGB conversion? At what bit-depth are these conversions performed, and is dithering applied before or after?

Ps. Where can I find out more about the structure of .3dlut files (that madVR accepts)? I want to make my own.

cremor
13th August 2011, 13:53
I also own a TN LCD (BenQ XL2410T). With madVR set to 8 bit it shows a bit of banding but this is only visible on color testing patterns. Can't see any flickering from the dithering that the panel does.
With madVR set to 6 bit the flickering from the dithering is horrible, I can't watch a movie with it.

nand chan
13th August 2011, 16:31
I also own a TN LCD (BenQ XL2410T). With madVR set to 8 bit it shows a bit of banding but this is only visible on color testing patterns. Can't see any flickering from the dithering that the panel does.
With madVR set to 6 bit the flickering from the dithering is horrible, I can't watch a movie with it.

Your monitor probably uses different “stable” levels than madVR, so it ends up dithering every single value that madVR passes through.

cyberbeing
13th August 2011, 23:06
@madshi: If using yCMS to generate a .3dlut, does it do YUV->RGB conversion still or RGB->RGB conversion? At what bit-depth are these conversions performed, and is dithering applied before or after?
RGB -> RGB (for madVR)
8bit -> 16bit (for madVR)
Dithering isn't performed by the 3dlut AFAIK

Ps. Where can I find out more about the structure of .3dlut files (that madVR accepts)? I want to make my own.
http://sourceforge.net/projects/thr3dlut/

nand chan
13th August 2011, 23:52
RGB -> RGB (for madVR)
8bit -> 16bit (for madVR)

Huh, but then what happens with 10 bit material?

10 bit YUV 4:2:0 -> 16 bit YUV 4:4:4 -> upscaling -> conversion to RGB 16 bit -> dithering down to 8 bit RGB -> 3dLUT -> conversion to target range -> dithering down to output depth?

And thanks for the link, I'll have a look.

Edit: One thing intrigues me. The script madVR uses for generation says:

Input_Range 16 235
Output_Range 16 235

Wouldn't it be better to use 0-255 as the output range of the 3dLUT when dealing with a 0-255 display? That way, the LUT itself would have a wider dynamic range available for its calculations and would be more exact. Though I suppose the point is moot if you're using 16 bit conversions either way..

Edit 2: Started work on a .NET library to read and create .3dlut files. At the moment, it is fully capable of correctly parsing madVR's 3dlut files, but I haven't fully implemented creation or saving yet.

Regardless, WIP: http://pastebin.com/JYVATYDe

It's a bit hackish because the data can be either bytes, shorts or floats, but other than that it works fine.

cyberbeing
14th August 2011, 02:50
The madVR/3DLUT workflow has been odd, or rather complex, ever since 0.62 when madshi moved to RGB and offloaded various operations to shaders.

It looks something like the following with BT.709 input:

madVR:
(1) input = 8bit Y'CbCr, 709 primaries/gamut, 709 gamma, WTW/BTB, D65 White Point
(2) convert -> 32bit float R'G'B', 709 primaries/gamut, 709 gamma, WTW/BTB, D65 White Point
(3) convert -> 32bit float RGB, 709 primaries/gamut, linear light, WTW/BTB, D65 White Point
(4) convert -> 32bit float RGB, Display primaries/gamut, linear light, WTW/BTB, D65 White Point
(5) convert -> 32bit float R'G'B', Display primaries/gamut, pure power 2.2 gamma, WTW/BTB, D65 White Point
3dlut:
(6) input = 8bit float R'G'B', Display primaries/gamut, pure power 2.2 gamma (with trilinear interpolation), WTW/BTB, D65 White Point
(7) convert -> 64bit float RGB, Display primaries/gamut, linear light, 16-235, D65 White Point
(8) convert -> 64bit float RGB, Display primaries/gamut, linear light, 16-235, Display White Point
(9) convert -> 16bit int R'G'B', Display primaries/gamut, Display corrected gamma, 16-235, Display White Point
madVR:
(10) input = 16bit int R'G'B', Display primaries/gamut, Display corrected gamma, 16-235, Display White Point
(11) dither down to 8bit R'G'B', Display primaries/gamut, Display corrected gamma, 16-235, Display White Point

You'll need to use madVR <=0.61 if you want the old behavior of the 3DLUT doing everything (YUV->RGB, Gamut Correction, Gamma Correction, White Point Correction, Levels Expansion) with no shaders. I still like the old way better, for the added flexibility you get with 3DLUT creation.

nand chan
14th August 2011, 02:58
The madVR/3DLUT workflow has been odd, or rather complex, ever since 0.62 when madshi moved to RGB and offloaded various operations to shaders.

It looks something like the following with BT.709 input:

madVR:
(1) input = 8bit Y'CbCr, 709 primaries/gamut, 709 gamma, WTW/BTB, D65 White Point
(2) convert -> 32bit float R'G'B', 709 primaries/gamut, 709 gamma, WTW/BTB, D65 White Point
(3) convert -> 32bit float RGB, 709 primaries/gamut, linear light, WTW/BTB, D65 White Point
(4) convert -> 32bit float RGB, Display primaries/gamut, linear light, WTW/BTB, D65 White Point
(5) convert -> 32bit float R'G'B', Display primaries/gamut, pure power 2.2 gamma, WTW/BTB, D65 White Point
3dlut:
(6) input = 8bit float R'G'B', Display primaries/gamut, pure power 2.2 gamma (with trilinear interpolation), WTW/BTB, D65 White Point
(7) convert -> 64bit float RGB, Display primaries/gamut, linear light, 16-235, D65 White Point
(8) convert -> 64bit float RGB, Display primaries/gamut, linear light, 16-235, Display White Point
(9) convert -> 16bit int R'G'B', Display primaries/gamut, Display corrected gamma, 16-235, Display White Point
madVR:
(10) input = 16bit int R'G'B', Display primaries/gamut, Display corrected gamma, 16-235, Display White Point
(11) dither down to 8bit R'G'B', Display primaries/gamut, Display corrected gamma, 16-235, Display White Point

You'll need to use madVR <=0.61 if you want the old behavior of the 3DLUT doing everything (YUV->RGB, Gamut Correction, Gamma Correction, White Point Correction) with no shaders.

So when do the levels get pulled up to 0-255?

cyberbeing
14th August 2011, 03:06
Either in step (11) or a step (12) I believe.

Homeless
14th August 2011, 07:14
Is it just me, or does directvobsub not work while using madvr as a decoder?

nevcairiel
14th August 2011, 10:50
Is it just me, or does directvobsub not work while using madvr as a decoder?
It does not, it cannot, and it will not.
DirectVobSub needs to go between the decoder and the renderer. In madVRs case, thats no longer possible. If you need DirectVobSub, you need to use another decoder.

Thunderbolt8
14th August 2011, 17:50
time for madSubs then :devil:

nand chan
14th August 2011, 17:58
time for madSubs then :devil:

Just use MPC-HC. The internal subtitle renderer handles pretty much everything.

You shouldn't draw subs onto the video stream itself like DVS does either way, otherwise lol enjoy your blurry subs when upscaling.

Plus, DirectVobSub is so ridiculously slow it's almost a sin to use it.

SamuriHL
14th August 2011, 18:02
Another option is J River MC16. They built their own sub renderer that works with madVR and supports a multitude of different subtitle formats.

Thunderbolt8
14th August 2011, 18:28
for me its the other way round, I need to downscale and directvobsub looks much better than the subs with mpc-renderer

THEAST
14th August 2011, 18:31
Just use MPC-HC. The internal subtitle renderer handles pretty much everything.
That's exactly where the problem is, it handles pretty much everything, not everything, it isn't hard to break it with some advanced dynamic signs which Directvobsub plays flawlessly.
It also doesn't reflect the changes made in subs during video playback unless you restart the player which is a big downside for me who is used to editing subs while watching the video. :p

Plus, DirectVobSub is so ridiculously slow it's almost a sin to use it.
Well, since Directvobusb is multi-threaded now and pretty much everyone has quad-cores these days, I doubt speed would be an issue even when playing heavy softsubbed karaoke with Directvobsub, even at double rendering resolution.

nevcairiel
14th August 2011, 18:37
The code to render the subtitles used in DirectVobSub is exactly the same as the code used to render the subtitles in the MPC-HC internal renderer. The only difference is how its painted onto the video image.

DirectVobSub is also not multi-threaded.

Unless you're using some fork of DirectVobSub, and claiming its the original, of course. :p

Thunderbolt8
14th August 2011, 18:57
unfortunately that doesnt change the fact that the internal renderer looks WAY WORSE for me while downscaling.

http://thumbnails28.imagebam.com/14503/a144ff145020192.jpg (http://www.imagebam.com/image/a144ff145020192) http://thumbnails41.imagebam.com/14503/244e50145020255.jpg (http://www.imagebam.com/image/244e50145020255)

cant do full size screenshots with madvr ofc

Matching_Mole
14th August 2011, 19:34
It also doesn't reflect the changes made in subs during video playback unless you restart the player which is a big downside for me who is used to editing subs while watching the video. :p

Heuu, this is wrong. You can "reload" subtitle to load changes in subtitles file while watching a video in MPC-HC.

Puncakes
14th August 2011, 20:52
unfortunately that doesnt change the fact that the internal renderer looks WAY WORSE for me while downscaling.

Unless you've changed it, the default maximum sub resolution in mpc is 800x600, which means it is probably upscaling the subs. You can change it to your desktop resolution for better results.

Also, THEAST's problem is probably the subpicture buffering which has animations disabled by default. As nevcairiel said, it is the same code. Edit: Subtitle reloading can also be bound to a key for convenience.

Hope that helps.

nand chan
14th August 2011, 23:21
That's exactly where the problem is, it handles pretty much everything, not everything, it isn't hard to break it with some advanced dynamic signs which Directvobsub plays flawlessly.
It also doesn't reflect the changes made in subs during video playback unless you restart the player which is a big downside for me who is used to editing subs while watching the video. :p

Never come across a single anime that doesn't play back flawlessly using the internal renderer tbh. If you really want to use DirectVobSub, you can always use LAV Video as decoding instead of madVR's built in one.


Well, since Directvobusb is multi-threaded now and pretty much everyone has quad-cores these days, I doubt speed would be an issue even when playing heavy softsubbed karaoke with Directvobsub, even at double rendering resolution.

I don't know, the last time I tried using it any sort of animated subs would slow to a crawl, and that's on a Core 2 Quad Q9550 at 4.0 GHz.

cant do full size screenshots with madvr ofc

Works fine here, maybe you're doing something wrong in the first place.

ForceX
15th August 2011, 00:03
That's exactly where the problem is, it handles pretty much everything, not everything, it isn't hard to break it with some advanced dynamic signs which Directvobsub plays flawlessly.
It also doesn't reflect the changes made in subs during video playback unless you restart the player which is a big downside for me who is used to editing subs while watching the video. :p


Well, since Directvobusb is multi-threaded now and pretty much everyone has quad-cores these days, I doubt speed would be an issue even when playing heavy softsubbed karaoke with Directvobsub, even at double rendering resolution.
DirectVobSub, and even MPC's internal renderer is single threaded. There's a forked version which adds multithreading support: http://code.google.com/p/threaded-vsfilter/

However, DirectVobsub doesn't support 10 bit colorspaces, or even NV12. It really needs some work in the colorspace support front, especially since some other players (ZoomPlayer?) rely solely on VSfilter for subtitle rendering.

Meowth
15th August 2011, 01:13
Works fine here, maybe you're doing something wrong in the first place.

It doesn't work for me either. Maybe because my screen is only 1680x1050, which is dumb regardless.

nand chan
15th August 2011, 01:40
When using madVR in fullscreen mode on a 1920×1200 monitor using MPC-HC's internal subtitle renderer, bitmap font subtitles appear exactly 60 pixels too high (equivalent the amount of black padding at the top). When using windowed mode, the problem disappears. This happens as well if you set the maximum subtitle resolution to “1920×1080” instead of “Desktop”.

It's as if those subtitles get rendered top-bound instead of center-bound. It does not happen with any other subtitles, even ones with custom fonts - just the bitmaps.

Is this an issue with madVR or MPC-HC? It also happens using the EVR presenter.

Example: http://riff.imgur.com/

It doesn't work for me either. Maybe because my screen is only 1680x1050, which is dumb regardless.

How are you taking screenshots? Alt + PrintScreen when in fullscreen mode?

cyberbeing
15th August 2011, 04:47
Is this an issue with madVR or MPC-HC? It also happens using the EVR presenter.

It happens with VMR9 as well, and it doesn't happen with VSFilter with any renderer, so it's a MPC-HC subtitle filter bug.

Never come across a single anime that doesn't play back flawlessly using the internal renderer tbh.
See how easy that was ;)

nand chan
15th August 2011, 06:31
It happens with VMR9 as well, and it doesn't happen with VSFilter with any renderer, so it's a MPC-HC subtitle filter bug.


See how easy that was ;)

Yeah but the VSfilter renderer also ruins the image quality so that's sort of like comparing a bucket of shit with a bucket of piss (except the bucket of piss is a really minor detail that only a tiny percentage of people would even notice, eg. those with 8:5 monitors, and furthermore won't bother anybody who watches in windowed mode so I personally don't care about it either way)

Really, there's no reason to render subs onto the image itself before post processing.

But let me correct that quote. “Never come across a single anime that doesn't play back flawlessly using the internal renderer for me”

Satisfied now?

cyberbeing
15th August 2011, 08:35
I'm just messing with you nand chan, no reason to get so serious. :eek:

Really, there's no reason to render subs onto the image itself before post processing.
When using a 3DLUT with madVR there is at least one good reason, since MPC-HC subtitles don't get color corrected by madVR.
Typesetting like your Bakemonogatari screen and anything else which was color matched to a video would get messed up to varying degrees.

Other VSFilter advantages include:
VSFilter is a bit faster.
VSFilter-Threaded fork is orders of magnitude faster.
VSFilter has less flickering with pre-buffering and heavy subs.
VSFilter doesn't cause latency issues with the madVR Render Queue.
VSFilter doesn't depend on the video renderer or media player for subtitles to be rendered and positioned correctly.

MPC-HC's advantages include:
Can be used with madVR internal decoder.
Can render subtitles at display resolution after resize.
Can lower the resolution that subtitles render to gain extra performance at lower quality

VSFilter and the MPC-HC ISubRender interface both have their pros and cons. Which someone prefers is just a matter of their needs and personal preference.

Superb
15th August 2011, 08:57
When using madVR in fullscreen mode on a 1920×1200 monitor using MPC-HC's internal subtitle renderer, bitmap font subtitles appear exactly 60 pixels too high (equivalent the amount of black padding at the top). When using windowed mode, the problem disappears. This happens as well if you set the maximum subtitle resolution to “1920×1080” instead of “Desktop”.

It's as if those subtitles get rendered top-bound instead of center-bound. It does not happen with any other subtitles, even ones with custom fonts - just the bitmaps.

Is this an issue with madVR or MPC-HC? It also happens using the EVR presenter.Did you try the "Position subtitles relative to the video frame" checkbox under Options -> Default Style? It has 3 states. Default state is checked. Try them all.

THEAST
15th August 2011, 12:07
LOL, seems I dragged the discussion to off topic, sorry.

I had also heard that MPC-HC's internal subtitle renderer and Directvobsub are the same code but I'm pretty sure they don't behave the same, a very good example is this:

Directvobsub (Nice!):
http://i3.imgkeep.com/i/00051/6iq3sk6m4bpu.jpg

MPC-HC at windowed mode (Not aligned properly):
http://i3.imgkeep.com/i/00051/kbasdukm38iq.jpg

MPC-HC in full screen @ 1680x1050 (The only thing that is actually rendererd here is the small dot I have drawn a red circle around! ):
http://i3.imgkeep.com/i/00051/bc2w84ihyuaw.jpg

Funny thing is, the same sign renders similar to the way it renders on my machine in windowed mode, if the monitor res is 1920x1080, but the blurred parts in the sign disappear (provided by a friend, the text is different cause I edited my version):

http://sadpanda.us/images/607063-X9UFMW1.png

The sign code is the following, if anyone's interested:

Dialogue: 0,0:09:49.87,0:09:52.10,Typesetting,,0000,0000,0000,,{\bord0.2\be1\frz328.526\fnSoulEater\fs26\org(465,95)\pos(461,127)\frx22\fry46\clip(m 451 89 l 427 110 386 81 404 57 519 137 507 153 439 116 462 98 488 104 451 137 517 89)\c&H656151&\3c&H656151&}Map of the zoo
Dialogue: 0,0:09:49.87,0:09:52.10,Typesetting,,0000,0000,0000,,{\alpha99\t(0,589,\alphaFF)}{\bord0.2\be1\frz328.526\fnSoulEater\c&H584E40&\fs26\org(465,95)\pos(461,127)\frx22\fry46\clip(m 451 89 l 427 110 439 116 462 98 488 104 451 137 517 89)}Map of the zoo

I even tried PotPlayer's internal subtitle renderer, that also renders the subs in the exact same way that MPC-HC's subtitle renderer does, on my machine.

As for Directvobsub, I'm using the xhmikosr's build v2.40.3300 (which he updated to v2.40.3644 a few days ago) and I'm pretty sure it's multi-threaded. On the famous AIR OP with softsubbed karaoke, with Directvobsub set to double rendering resolution, my CPU load is 10-15% before the subs appear but jumps to 55-65% as they appear and since I have a quad-core, the load increase caused by the subs is obviously more than one core reaching 100% and another one reaching soemthing above 50% load. I never managed to play this file properly before I started using xhmikosr's Directvobsub builds.

madshi
15th August 2011, 14:15
On the famous AIR OP with softsubbed karaoke
Sample?

Daiz
15th August 2011, 15:41
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)

ajp_anton
15th August 2011, 17:45
Bug: ?
When exiting fullscreen exclusive mode, the last frame that was shown before going into fullscreen is shown for a very short time. Can you somehow get rid of this? Or just make it black or something.

mark0077
15th August 2011, 19:39
For those using "use D3D11 for presentation", can anyone please go into fullscreen exclusive and pause / unpause the video and report if the present queue drops to "0-1", "1-2" or similar low values after being unpaused.

This happens me in my setup, Windows 7 64bit, mpc-hc, madVR 0.73, Nvidia GTX295.

nevcairiel
15th August 2011, 20:03
For those using "use D3D11 for presentation", can anyone please go into fullscreen exclusive and pause / unpause the video and report if the present queue drops to "0-1", "1-2" or similar low values after being unpaused.

This happens me in my setup, Windows 7 64bit, mpc-hc, madVR 0.73, Nvidia GTX295.

It drops to 0 while being paused (both present and render do), but it goes back to its usual values after unpause.

nand chan
15th August 2011, 21:52
I'm just messing with you nand chan, no reason to get so serious. :eek:

My bad, 4chan has conditioned me.

When using a 3DLUT with madVR there is at least one good reason, since MPC-HC subtitles don't get color corrected by madVR.
Typesetting like your Bakemonogatari screen and anything else which was color matched to a video would get messed up to varying degrees.
It doesn't match the source material in the first place, also this seems more like a fault with the madVR renderer than the ISR - madVR should be capable of color correcting it.

Other VSFilter advantages include:
VSFilter is a bit faster.
Not here but I'll just pass it off as “I had an older version”
VSFilter-Threaded fork is orders of magnitude faster.
Interesting, but when properly prebuffering using the ISR I don't notice any impact on rendering times either way.
VSFilter has less flickering with pre-buffering and heavy subs.
Never experienced any flickering with the ISR. Demo?
VSFilter doesn't cause latency issues with the madVR Render Queue.
Wouldn't that be an issue with madVR?
VSFilter doesn't depend on the video renderer or media player for subtitles to be rendered and positioned correctly.
It comes at a cost though, ie. loss of quality.

MPC-HC's advantages include:
Can be used with madVR internal decoder.
Negligible because the internal decoder isn't all that special, as long as you have another libav decoder capable of 10-bit P010 output.
Can render subtitles at display resolution after resize.
This is, for me, honestly the real reason why ISR is so much better than VSFilter in my opinion - upscaled subs look like ass.
Can lower the resolution that subtitles render to gain extra performance at lower quality
People do this?

I still think the ISR objectively outperforms DVS simply based on the fact that it doesn't ruin the image quality, any other drawback is pretty much just bugs that need to be fixed.

Maybe once all of the mess with bitmap repositioning and color correction gets properly fixed, the ISR will finally deprecate DVS completely.

cyberbeing
16th August 2011, 02:49
also this seems more like a fault with the madVR renderer than the ISR - madVR should be capable of color correcting it.
madshi would need to comment on how feasible this is.

Not here but I'll just pass it off as “I had an older version”

Interesting, but when properly prebuffering using the ISR I don't notice any impact on rendering times either way.

Never experienced any flickering with the ISR. Demo?

Flickering occurs when your computer is not fast enough to render subtitles in real-time with pre-buffering disabled and/or you are buffering less sub-frames then are being rendered in a frame.
VSFilter has the same problem, but it's about 4x worse with the ISR.

How old your VSFilter build is shouldn't matter, it just depends on how fast your computer is. The faster it is, the less you'll notice subtitle bottlenecks on slow karaoke and typesetting.

Wouldn't that be an issue with madVR?
It's not, madVR has no control in how long the MPC-HC ISR takes to pass along subtitles to render.

Negligible because the internal decoder isn't all that special, as long as you have another libav decoder capable of 10-bit P010 output.
The point was the ISR can be used with decoders outputting 10bit formats (since subs can be passed to the video renderer in 8bit), while VSFilter won't accept 10bit formats.

It comes at a cost though, ie. loss of quality.
This is, for me, honestly the real reason why ISR is so much better than VSFilter in my opinion - upscaled subs look like ass.
I still think the ISR objectively outperforms DVS simply based on the fact that it doesn't ruin the image quality
I'm of the opposite opinion, I usually can't stand high-res subs on low-res video, since they stand out too much and steal the focus from the much blurrier video. As long as a thick easily readable font is used (fansubber 101), scaling is usually a non-issue. Not to mention that typesetting designed to blend into the video will often look totally out-of-place when rendered at higher resolution combined with the ISR's occasional positioning issue.


People do this?
Using the ISR (texture size of 1280x720) is my last resort after MPlayer2, when something is too slow to render at 1920x1080 with VSFilter on my slower computer.

nand chan
16th August 2011, 02:53
How old your VSFilter build is shouldn't matter, it just depends on how fast your computer is.
Incorrect. The older versions of VSfilter perform abysmally regardless of how fast your computer is. My computer is *not* the bottleneck here - yet the old DVS still made the video stutter on some files.

It's not, madVR has no control in how long the MPC-HC ISR takes to pass along subtitles to render.
And how does VSfilter change that, exactly?

The point was the ISR can be used with decoders outputting 10bit formats (since subs can be passed to the video renderer in 8bit), while VSFilter won't accept 10bit formats.

Well, yes.

cyberbeing
16th August 2011, 03:17
Incorrect. The older versions of VSfilter perform abysmally regardless of how fast your computer is. My computer is *not* the bottleneck here - yet the old DVS still made the video stutter on some files.
How old are you talking about? VSFilter hasn't had any significant performance or feature changes since 2008.

And how does VSfilter change that, exactly?
The problem just doesn't exist when VSFilter is rendering the subs.

When madVR needs to render the subs with the ISR, subtitle frames getting delivered at late or at un-even intervals can cause issues like dropped/delayed frames if VSync gets missed, since madVR has less time to do the last steps prior to presenting. Any issues VSFilter has are hidden from madVR, as long as frames are delivered slightly faster than realtime to the Decode queue. For more significant yet brief slowdowns, VSFilter also has the advantage since the Decode queue can drop to around 3/8 before causing significant issues, while the Render queue which the ISR interfaces with can begin causing issues as soon as it drops to 6/8. VSFilter is just more resilient to slowdowns in general compared to the ISR.

Meowth
16th August 2011, 03:51
How are you taking screenshots? Alt + PrintScreen when in fullscreen mode?

Using the built in command F5. Results in GetDIB failed, hr = 80004005 when using madVR using full screen or not. It works when I switch it to Haali though.

When using fullscreen alt + printscreen doesn't take a screenshot of what is currently displayed, only the frame that was showing as it entered full screen. And even then it stretches is up/down and shortens it length wise.
http://i.imgur.com/o8Q2I.jpg

I have found a half-assed workaround which is hitting Control, then Alt, then down arrow which pulls up a menu and puts it in full screen window mode temporarily instead of exclusive. Only then can I get a non-distorted one.
http://i.imgur.com/N4IZX.jpg

I still can't get 1080p screenshots with this method because of my monitor size which is what I want so I am forced to switch to Haali renderer or something else. So unless there is something else I don't know about I find it rather annoying.

nand chan
16th August 2011, 04:09
How old are you talking about? VSFilter hasn't had any significant performance or feature changes since 2008.

Stable CCCP circa 2010. I was having /significant/ trouble playing back some scenes for example the ED of Madoka episode 3 using Chihiro soft subs, as soon as subtitles kicked in video slowed to a crawl. I had the subpicture prebuffering enabled. With the ISR, this problem disappeared entirely.


When madVR needs to render the subs with the ISR, subtitle frames getting delivered at late or at un-even intervals can cause issues like dropped/delayed frames if VSync gets missed, since madVR has less time to do the last steps prior to presenting. Any issues VSFilter has are hidden from madVR, as long as frames are delivered slightly faster than realtime to the Decode queue.

ISR is also capable of presenting subtitle frames in advance though. True, if I disable the subtitle frame, decoding takes up to 16 ms, but with it enabled, decoding takes around 1.5ms for 1080p Hi10P material.

VSFilter is just more resilient to slowdowns in general compared to the ISR.

I see. Can't you just increase the render queue size in ISR?

Using the built in command F5. Results in GetDIB failed, hr = 80004005 when using madVR using full screen or not. It works when I switch it to Haali though.

When using fullscreen alt + printscreen doesn't take a screenshot of what is currently displayed, only the frame that was showing as it entered full screen. And even then it stretches is up/down and shortens it length wise.
http://i.imgur.com/o8Q2I.jpg

I have found a half-assed workaround which is hitting Control, then Alt, then down arrow which pulls up a menu and puts it in full screen window mode temporarily instead of exclusive. Only then can I get a non-distorted one.
http://i.imgur.com/N4IZX.jpg

I still can't get 1080p screenshots with this method because of my monitor size which is what I want so I am forced to switch to Haali renderer or something else. So unless there is something else I don't know about I find it rather annoying.

Is there any reason you need to use the fullscreen exclusive mode? Just disable it if you want to take a lot of screenshots. You don't need exclusive mode unless you're on XP or have Aero disabled either way.

cyberbeing
16th August 2011, 07:21
Stable CCCP circa 2010. I was having /significant/ trouble playing back some scenes for example the ED of Madoka episode 3 using Chihiro soft subs, as soon as subtitles kicked in video slowed to a crawl. I had the subpicture prebuffering enabled. With the ISR, this problem disappeared entirely.
Since ED karaoke was hard-subbed, I have no way of testing that.

ISR is also capable of presenting subtitle frames in advance though. True, if I disable the subtitle frame, decoding takes up to 16 ms, but with it enabled, decoding takes around 1.5ms for 1080p Hi10P material.

I see. Can't you just increase the render queue size in ISR?


I have the exact opposite experience as you, so I don't know what to say. Especially when rendering subs w/ Desktop texture size, the ISR is significantly slower than VSFilter. In the past I've also seen high CPU load increases using pre-buffering with the ISR set to Desktop texture size. On an older dual-core computer, that is a problem. On a faster computer, less so.

Increasing the buffer doesn't always fix the flickering unfortunately, since the pre-buffering implementation is flawed. Unless your computer is fast enough to render all subtitles without pre-buffering, while leaving some head-room, the pre-buffer has the chance of causing flickering issues. Pre-buffering can sometimes give a speed boost, but other times I need to disable it, since the increased CPU load can become a problem.

What it really comes down to, is with an older dual-core CPU you can't reliably take advantage of using the ISR with Desktop texture size and pre-buffering. Even a Core i7 will choke on complex enough subs with the ISR or VSFilter. MPlayer2 and now the threaded VSFilter fork become your only options in some cases.

misha0209
16th August 2011, 07:47
Hi,

do not know if someone reported this (probably has, but i do not have time to red through the thread). i am using the latest madvr, with the latest MPC HC and ffdshow. if i watch a video with ordered chapters (anime, where the OP and ED are separate files from the original episode - mkv) when the treansition from the main video to op or ed should be made MPC HC crashes. this only happens if i use madvr, that's why i'm posting here :P

i also have a question. how well does madvr perform on synchronization of video framerate to monitor framerate? to my eyes EVR Sync is a bit better then EVR CP. does madvr outperform EVR Sync? a small graph like in the case of the 2 EVR renders would be greatly appreciated!

THEAST
16th August 2011, 08:52
Sample?
The file can be found in pretty much every "How to play anime with DXVA" guide out there, you can find the file here (http://www.filesonic.com/file/11998573/Lia_-_Tori_no_Uta_long_version.mkv), borrowed from this guide (http://imouto.my/watching-h264-videos-using-dxva/comment-page-142/). Though I wonder when people are gonna understand that the subs are the cause of the problem in that video, not the video itself, and DXVA isn't exactly gonna help in rendering the subs.

BTW, can you please have a look at the issue I reported at the top of the page 461? :thanks:

Thunderbolt8
16th August 2011, 09:14
might be better to refer to post numbers, as people have different options how many posts per side they like to have. in my case for example, this thread only has 232 pages so far.

nand chan
16th August 2011, 10:33
Since ED karaoke was hard-subbed, I have no way of testing that.

I was using the coalgirls release for reference.

I have the exact opposite experience as you, so I don't know what to say. Especially when rendering subs w/ Desktop texture size, the ISR is significantly slower than VSFilter. In the past I've also seen high CPU load increases using pre-buffering with the ISR set to Desktop texture size. On an older dual-core computer, that is a problem. On a faster computer, less so.

Increasing the buffer doesn't always fix the flickering unfortunately, since the pre-buffering implementation is flawed. Unless your computer is fast enough to render all subtitles without pre-buffering, while leaving some head-room, the pre-buffer has the chance of causing flickering issues. Pre-buffering can sometimes give a speed boost, but other times I need to disable it, since the increased CPU load can become a problem.

What it really comes down to, is with an older dual-core CPU you can't reliably take advantage of using the ISR with Desktop texture size and pre-buffering. Even a Core i7 will choke on complex enough subs with the ISR or VSFilter. MPlayer2 and now the threaded VSFilter fork become your only options in some cases.

It sounds like we need to push for MPC-HC to add multi-threading to the ISR and the world will be perfect. Example of complex enough subs? I want something to benchmark with because basically anything will render fine performance-wise for me atm using libav + ISR.

(The horrendous video slowdown I mentioned earlier was while using an older build of ffdshow to CPU decode + upscale to 1080p (again using the CPU) and also had some fullscreen CPU filters enabled - this plus VSFilter running on the CPU. It was at that point in time that I realized I could not continue using my set up the way it was and decided to delete fucking everything + research modern playback solutions)

Ps. Oh god that Tori no Uta long version test file.. I've literally played it back hundreds of times by now testing various configurations. >.<

Some stats: ~25% average CPU load during playback before subtitles, averaged out over 4 cores (each are at about 25% themselves)
~40% average CPU load during playback with subtitles using the ISR. Interestingly enough, the load increased to about 50% on 3 cores (the 4th stayed at ~20% ish) - so it averages out to about 40%.

Playback with subs fluctuates between about 35% and 45%, depending on keyframes etc. There was a short spike on the very first subtitle where CPU jumped to 50% as the ISR pre-buffered a total of 16 sub-pictures. (Seems like it doesn't buffer before that) Also, the madVR OSD didn't report a change in rendering times. Not even a slight one. Was at exactly 2.3 ms before and during subtitles.

Neither core exceeded 50% load during playback, so that's not even close to saturation and proper multi-threading could improve this further.

Tests were on a Q9550 (stock 2.8 GHz) currently downclocked to about 3.4 GHz, nominally at about 4.0 GHz.

madshi
16th August 2011, 10:37
One thing that has never worked properly with subtitle rendering resolution being different from the video resolution: 3D rotations.
Can I have a video sample with such a 3D rotation, too, which doesn't look right with the internal MPC-HC subtitle renderer?

THEAST
16th August 2011, 15:59
might be better to refer to post numbers, as people have different options how many posts per side they like to have. in my case for example, this thread only has 232 pages so far.

Post #9201! :)

Some stats: ~25% average CPU load during playback before subtitles, averaged out over 4 cores (each are at about 25% themselves)
~40% average CPU load during playback with subtitles using the ISR. Interestingly enough, the load increased to about 50% on 3 cores (the 4th stayed at ~20% ish) - so it averages out to about 40%.
Try with Directvobsub and double rendering resolution, that'll put all your CPU cores to use. ;)