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

jkauff
6th January 2013, 15:17
Yes, it disappears but stays that way even when I move the mouse around. Shouldn't it come back so I can see where I want to seek to?
Yes, it should, and it does for me in MPC and Zoom Player using DXVA2 and madVR, so I don't think that's where the issue is. I'm using Win7 64 Aero, but PowerDVD turns off Aero and the pointer still reappears when the mouse is moved, so I don't think Aero is the issue. Maybe your video driver?

Matching_Mole
6th January 2013, 16:12
IVTC is done on the CPU at the moment. If madVR doesn't report any dropped frames and no presentation glitches then my best guess is that for some reason the timings are screwed up so that instead of having every frame being shown for 2 vsyncs, some are shown for 3 vsyncs and some only for 1. Maybe if you create a debug log, I could confirm that guess.

Is there a reason you can't use simple 1080p24 output? That way the problem would probably go away. You could also try different video decoders and/or splitters, just to make sure it's not related to that.

:thanks:

I made 2 different tests where you will find the attached log:
- the first one at 48hz:
http://www.mediafire.com/?twb7bhva342auqd
- the second one at 47.952hz:
http://www.mediafire.com/?41dndx6bjszhb4o

I have stuttering for this two configurations. Unfortunately, I can't use 1080p24 with my projector (Mitsubishi HC3100). its 1080 mode is interlaced and I try to have 24hz in its 768p mode and it reacted not very well.

I will take time to try with different decoders, splitters and players as you suggest.

oddball
6th January 2013, 18:26
Has anyone been playing with Complex Sharpen 2? I find it a bit agressive and causing ringing/aliasing on detailed images. Has anyone edited the shading code in MPC to see if they can get a nicer and less aggressive shader algorithm? Something that works nice with Jinc 3 tap perhaps?

madshi
6th January 2013, 18:39
I can't get screenshots with Overlay enabled
Screenshots with Print-Screen? Those never work with Overlay. However, using the media player screenshot functionality should work.

Oh yeah, someone asked me a question in my MPC guide thread:

"It it possible to use Floating Point Processing and 10-bit output together, or is it only one or the other? Again, it sounds stupid, and I'd like to go into more detail but I'm not good at wording tech stuff even though my brain can process it pretty well. And which one would be the best in terms of quality? 10-bit would give better colours, I know that, and that's something I'd like to check out, but would the 32-bit processing give an overall better-looking result, even when dithered to 8-bit? I know that's how MadVR works.

I am aware that you need a 10-bit monitor and compatible card for 10-bit output."
madVR always use floating point processing. 10bit output has nothing whatsoever to do with the way the processing is done. So if/when madVR gets 10bit output capability, it will be together with (and not instead of) floating point processing.

10bit output will *not* give better colors. The only thing it will do is lower the dithering noise. You can play with the native bitdepth of the display in the "device" part of the madVR settings dialog. If you set the display to 7bit the dithering noise will be stronger. If you set it to 6bit, it will be stronger again. You should easily see the noise at 6bit. Probably even still at 7bit. The difference between 6bit and 7bit should be more obvious than the difference between 7bit and 8bit. Now just imagine there were 9bit and 10bit options available. If you go from 6bit to 7bit, then to 8bit. The same difference you see there you will also see when going to 9bit and then 10bit. Just the noise level will be lower, but the colors will stay identical.

I made 2 different tests where you will find the attached log:
- the first one at 48hz:
http://www.mediafire.com/?twb7bhva342auqd
- the second one at 47.952hz:
http://www.mediafire.com/?41dndx6bjszhb4o

I have stuttering for this two configurations. Unfortunately, I can't use 1080p24 with my projector (Mitsubishi HC3100). its 1080 mode is interlaced and I try to have 24hz in its 768p mode and it reacted not very well.

I will take time to try with different decoders, splitters and players as you suggest.
Yeah. Here's an extract from the log:

337: (567.95-567.95 568 112529078), 339: (571.16-571.16 571 113196412), 340: (571.96-571.96 572 113363246), 341: (573.96-573.96 574 113780329),
342: (575.97-575.97 576 114197412), 344: (579.18-579.18 579 114864745), 345: (579.98-579.98 580 115031580), 346: (581.99-581.99 582 115448662),
347: (583.99-583.99 584 115865745), 349: (587.19-587.19 587 116533078), 350: (588.39-588.39 588 116783329), 351: (589.99-589.99 590 117116996)
You can see, that the planned vsync numbers for the frames 337 to 351 are:

568, 571, 572, 574, 576, 579, 580, 582, 584, 587, 588, 590

The ideal vsync numbers for smooth playback should be:

568, 570, 572, 574, 576, 578, 580, 582, 584, 586, 588, 590

The cause of the "uneven" vsync numbers are the timestamps which are a result of the timestamps coming from the decoder combined with the IVTC processing. Currently madVR takes these timestamps and calculates the vsync number at which each frame should be shown. In your case that results in non-smooth playback, unfortunately. I guess I could add some sort of "smoothing" algorithm which, after looking at those vsync results, tries to achieve more regular vsync intervals. But then what happens with true VFR (variable framerate) content? I guess I'd first have to write an algorithm to detect whether the decoded (and IVTC'ed) content is VFR or CFR. But this can all become relatively complicated fast.

I do have on my to do list to revisit the whole presentation logic and find more optimal solutions for when the display refresh rate is significantly higher than the movie framerate (as in your case). But it will take some time before I get to that. So for now I'd suggest to try different splitter and decoders to see if any of them make a difference. If not then I don't have a quick solution available right now...

nub234
6th January 2013, 18:51
Can't reproduce that here. A freeze report might help. Reproduce the freeze, then press Ctrl+Alt+Shift+Break maybe 3 times, with 5 seconds in between, then on your desktop should be 3 freeze report text files. Zip them and upload them somewhere for me to look at.

I've uploaded both a debug log as I finally managed to produce one, and I've also produced freeze reports. I noticed that the debug log seemed to log everything, so just incase it helps, the freeze occured once at 1second into playback, and once at end of playback which was also when I closed the player, so should be towards the end of the log. Both times I was frame stepping in mpc-hc.

http://www73.zippyshare.com/v/92141861/file.html

madshi
6th January 2013, 19:01
I've uploaded both a debug log as I finally managed to produce one, and I've also produced freeze reports. I noticed that the debug log seemed to log everything, so just incase it helps, the freeze occured once at 1second into playback, and once at end of playback which was also when I closed the player, so should be towards the end of the log. Both times I was frame stepping in mpc-hc.

http://www73.zippyshare.com/v/92141861/file.html
I'm not sure, do we have a different definition of what "freeze" means? Please describe exactly what you mean. My understanding of a freeze is if the media player stops responding. The menu doesn't work, anymore, you can't press buttons anymore etc. Is that what happened? But usually such a freeze is "forever". Now you're saying there were 2 freezes. That doesn't really match my definition of a freeze. I guess I first need a detailed description of what happened exactly and what your definition of a "freeze" is.

In the debug log I can see that playback is paused about 1.5 seconds after madVR was created. Then about 7.5 seconds later you've pressed Ctrl+RightArrow to execute a frame step.

leeperry
6th January 2013, 19:02
The cause of the "uneven" vsync numbers are the timestamps
Indeed, and that's what's Reclock's for as it makes 24p@48.000Hz dead smooth on the HC3100.

Matching_Mole
6th January 2013, 19:11
Yeah. Here's an extract from the log:

337: (567.95-567.95 568 112529078), 339: (571.16-571.16 571 113196412), 340: (571.96-571.96 572 113363246), 341: (573.96-573.96 574 113780329),
342: (575.97-575.97 576 114197412), 344: (579.18-579.18 579 114864745), 345: (579.98-579.98 580 115031580), 346: (581.99-581.99 582 115448662),
347: (583.99-583.99 584 115865745), 349: (587.19-587.19 587 116533078), 350: (588.39-588.39 588 116783329), 351: (589.99-589.99 590 117116996)
You can see, that the planned vsync numbers for the frames 337 to 351 are:

568, 571, 572, 574, 576, 579, 580, 582, 584, 587, 588, 590

The ideal vsync numbers for smooth playback should be:

568, 570, 572, 574, 576, 578, 580, 582, 584, 586, 588, 590

The cause of the "uneven" vsync numbers are the timestamps which are a result of the timestamps coming from the decoder combined with the IVTC processing. Currently madVR takes these timestamps and calculates the vsync number at which each frame should be shown. In your case that results in non-smooth playback, unfortunately. I guess I could add some sort of "smoothing" algorithm which, after looking at those vsync results, tries to achieve more regular vsync intervals. But then what happens with true VFR (variable framerate) content? I guess I'd first have to write an algorithm to detect whether the decoded (and IVTC'ed) content is VFR or CFR. But this can all become relatively complicated fast.

I do have on my to do list to revisit the whole presentation logic and find more optimal solutions for when the display refresh rate is significantly higher than the movie framerate (as in your case). But it will take some time before I get to that. So for now I'd suggest to try different splitter and decoders to see if any of them make a difference. If not then I don't have a quick solution available right now...

Thanks for your answer, many things are more clear now!

But just for my understanding, the IVTC corrected frame rate is 23.976fps, right? I try to use the exact double framerate to achieve smooth playback and it work perfectly on progressive 23.976 framerate. Here you said that I should have no stuttering if I were able to have 24hz refresh rate. Why the double framerate is an issue for the IVTC Film Mode currently?

Anyway, thank you very much again for your help and for the IVTC film mode which is already the greater option for the watch "live" telecine Blu-ray (and DVD) even if it seems that it can be improved again.

Matching_Mole
6th January 2013, 19:12
Indeed, and that's what's Reclock's for as it makes 24p@48.000Hz dead smooth on the HC3100.

Thanks for the tip, I will try also.

nub234
6th January 2013, 19:12
I'm not sure, do we have a different definition of what "freeze" means? Please describe exactly what you mean. My understanding of a freeze is if the media player stops responding. The menu doesn't work, anymore, you can't press buttons anymore etc. Is that what happened? But usually such a freeze is "forever". Now you're saying there were 2 freezes. That doesn't really match my definition of a freeze. I guess I first need a detailed description of what happened exactly and what your definition of a "freeze" is.

In the debug log I can see that playback is paused about 1.5 seconds after madVR was created. Then about 7.5 seconds later you've pressed Ctrl+RightArrow to execute a frame step.

The player does indeed stop responding, and Windows 8 Displays a not responding window with End Task, but it then starts responding again and has skipped playback. I'll grab a screenie of exactly how it appears in a sec.

The exact steps I took to get the freeze are:

Start playback -> Pause -> Hit Frame Step a few times to try and get to a particular frame -> Freeze Occurs.

It occurs more often when holding down Frame Step to navigate over a longer period of time say a second or so, and like I mentioned in an earlier post this only happens with 0.85.2 onwards.

The screenshot: http://i.imgur.com/ytrOq.jpg

Niyawa
6th January 2013, 19:26
Screenshots with Print-Screen? Those never work with Overlay. However, using the media player screenshot functionality should work.
Yup, I actually realized that after I made my post and tried again using MPC-HC. I was using Sniping Tool because I wanted to get a particular part of the video, I thought it was going to be more easier than saving the whole screenshot, and then editing it... you know the drill.

Also the brightness thing was just a little issue with my own screen brightness, someone put it in 90 to 95 and I just realized after taking a look at it. Sorry if I got you worried for a second. Regarding the shaking effect I was talking about, I can still easily reproduce it, but I can't make a screenshot out of it unfortunately. I made some other observations and what happens seems to be that when DXVA2 and Overlay are active, and this issue triggers, the frames ahead (or maybe previously) keep showing on the screen in an infinite loop... It's like you have 24 frames, playing the video, 5-6 frames keep stuck in the present frame that is currently being seen causing a shaking effect since it's in a loop... It's hard to explain because I really don't know how. I'll probably end getting an actual camera and make a video of it since screenshots or recording can't show you how to reproduce it.

And again, it might be related to my Intel, since some friends of mine tried but never got anything and they have other GPUs.

madVR always use floating point processing. 10bit output has nothing whatsoever to do with the way the processing is done. So if/when madVR gets 10bit output capability, it will be together with (and not instead of) floating point processing.

10bit output will *not* give better colors. The only thing it will do is lower the dithering noise. You can play with the native bitdepth of the display in the "device" part of the madVR settings dialog. If you set the display to 7bit the dithering noise will be stronger. If you set it to 6bit, it will be stronger again. You should easily see the noise at 6bit. Probably even still at 7bit. The difference between 6bit and 7bit should be more obvious than the difference between 7bit and 8bit. Now just imagine there were 9bit and 10bit options available. If you go from 6bit to 7bit, then to 8bit. The same difference you see there you will also see when going to 9bit and then 10bit. Just the noise level will be lower, but the colors will stay identical.
I see, thanks for the explanation. I was really at loss because until today I haven't found anything giving a more detailed information on how that works. I mostly heard about FPP in audio but not video. Mind if I just copy-paste that? I really don't know how to put it in a better way in my guide, again thanks.

Thunderbolt8
6th January 2013, 19:39
There isn't really much information madVR can use for guessing at the moment, so the guess will be often wrong. It shouldn't matter too much, though, if your PC is fast enough. I guess you're GPU can't handle this content with the "double" framerate deinterlacing produced by DXVA2? Or do you have madVR set to forced film mode? There's also a switch in the madVR settings which allows you to fine tune whether madVR enabled/disables deinterlacing if it isn't sure what to do. Maybe you have that set the "wrong" way? Although there isn't really a wrong way there. But it might work better for you the other way, I don't know...the settings for that are the default ones. whats working best now for me is just turning off deinterlacing by definition and activating it manually for the rare cases in which it seems needed.

ikarad
6th January 2013, 21:16
:thanks:

I made 2 different tests where you will find the attached log:
- the first one at 48hz:
http://www.mediafire.com/?twb7bhva342auqd
- the second one at 47.952hz:
http://www.mediafire.com/?41dndx6bjszhb4o

I have stuttering for this two configurations. Unfortunately, I can't use 1080p24 with my projector (Mitsubishi HC3100). its 1080 mode is interlaced and I try to have 24hz in its 768p mode and it reacted not very well.

I will take time to try with different decoders, splitters and players as you suggest.

Have you tested with TIVTC or decomb avisynth filter and see if there is the same problem than with madvr?

Matching_Mole
6th January 2013, 21:23
Have you tested with TIVTC or decomb avisynth filter and see if there is the same problem than with madvr?

Long before IVTC was available I tried TVITC and I never succeed to have something usable. Surely, I never understood correctly how this filter works.

glc650
6th January 2013, 21:43
Hi,

Whats the minimum recommended Radeon for Jinc 3 AR scaling for 720p60, 1080p60 and 1080i60 (deinterlaced by madVR) playback at 1080p60?

Thanks,

->g.

cyberbeing
6th January 2013, 23:12
I've always had issues similar to Matching_Mole with certain transport streams (the type which only IVTC to 24fps smoothly using DScalerMod 'IVTC = Always Enable'). When using LAV Filters + madVR (forced Film mode), playback is only smooth during commercials where madVR detects 2:2 cadence, while during the show itself where 3:2 cadence is detected, all panning scenes stutter immensely, with frames feeling like they are being displayed out of order. The odd part is it seems 'normal' if I step frame by frame or hold CTRL + right arrow in MPC-HC.

madshi, here a few logs @ 96hz & 120hz:

TS #1 (~30 seconds 2:2 commercial -> ~36 seconds 3:2 show) (http://www.mediafire.com/?eota10nfqfyzss9)

TS #2 (~25 seconds 3:2) (http://www.mediafire.com/?86df8m8fz3mj33a)

TS #3 (seek -> ~35 seconds 3:2) (http://www.mediafire.com/?2y68wgdtv9vllhn)


Was IVTC functionality similar to DScalerMod something which you ever see yourself implementing, or was your current IVTC algorithm already supposed to handle such cases? I haven't been following the madVR Deinterlacing & IVTC discussions much, so probably already answered this at some point.

turbojet
7th January 2013, 06:48
I've already explained it in detail in one of my earlier posts.

Maybe I missed something this is what I've read: http://forum.doom9.org/showthread.php?p=1606398#post1606398

You found 3 parties at fault, not sure which should fix, couldn't reproduce it: http://forum.doom9.org/showthread.php?p=1606518#post1606518

You found it interesting later versions of mpc-be reproduced it but weren't sure why: http://forum.doom9.org/showthread.php?p=1606688#post1606688

Few days later I asked if you could let me know if it's mpc-be's responsibility to fix: http://forum.doom9.org/showthread.php?p=1606747#post1606747
That was all on the subject. Thinking you had missed it, I asked again a week or so later.

Must be some bottleneck in DXVA, I would guess. But I can't really say for sure. I don't think it's madVR's fault...

I think you are correct, 2 html5 videos don't play well at the same time either.

madshi
7th January 2013, 08:39
Indeed, and that's what's Reclock's for as it makes 24p@48.000Hz dead smooth on the HC3100.
Reclock doesn't improve screwed up timestamps.

But just for my understanding, the IVTC corrected frame rate is 23.976fps, right? I try to use the exact double framerate to achieve smooth playback and it work perfectly on progressive 23.976 framerate. Here you said that I should have no stuttering if I were able to have 24hz refresh rate. Why the double framerate is an issue for the IVTC Film Mode currently?
Yes, IVTC output is "roughly" 23.976p. However, timestamps seem to have a lot of jitter in them. That might depend on the splitter/decoder, but it could also be a "fault" of the IVTC algorithm. When using 23.976Hz display mode, the jitter in the timestamps doesn't matter so much because madVR is clever enough to avoid frame drops if the number of decoded frames is roughly identical to the display refresh rate - even if the timestamps aren't optimal. However, with 48Hz display mode, there are twice as many vsyncs as there are decoded frames, so there timestamp jitter can result in somewhat odd vsync presentation patterns.

Anyway, thank you very much again for your help and for the IVTC film mode which is already the greater option for the watch "live" telecine Blu-ray (and DVD) even if it seems that it can be improved again.
FWIW, the IVTC algorithm itself doesn't need improvement for this, but maybe the timestamp handling could be improved.

The player does indeed stop responding, and Windows 8 Displays a not responding window with End Task, but it then starts responding again and has skipped playback. I'll grab a screenie of exactly how it appears in a sec.

The exact steps I took to get the freeze are:

Start playback -> Pause -> Hit Frame Step a few times to try and get to a particular frame -> Freeze Occurs.
Ok, please try different splitters, decoders and different video files. Maybe this problem only occurs with a certain combination of video files, splitters and/or decoders. If you find that it only occurs with some video files but not with others, please upload a sample of a video file where it occurs most often. Thanks.

Regarding the shaking effect I was talking about, I can still easily reproduce it, but I can't make a screenshot out of it unfortunately. I made some other observations and what happens seems to be that when DXVA2 and Overlay are active, and this issue triggers, the frames ahead (or maybe previously) keep showing on the screen in an infinite loop... It's like you have 24 frames, playing the video, 5-6 frames keep stuck in the present frame that is currently being seen causing a shaking effect since it's in a loop... It's hard to explain because I really don't know how. I'll probably end getting an actual camera and make a video of it since screenshots or recording can't show you how to reproduce it.

And again, it might be related to my Intel, since some friends of mine tried but never got anything and they have other GPUs.
Well, I'm not sure but it could be a bug in your GPU drivers. Or it could be a bug in madVR. It's hard for me to say for sure. I'd need to have hardware similar to yours so I could test it myself.

Mind if I just copy-paste that? I really don't know how to put it in a better way in my guide, again thanks.
I don't mind at all. Feel free to use any explanation or comment I make for your guide.

Whats the minimum recommended Radeon for Jinc 3 AR scaling for 720p60, 1080p60 and 1080i60 (deinterlaced by madVR) playback at 1080p60?
Jinc3 for both chroma and luma? I think the 7850 should be able to do that. Maybe also the 7770, but I'm not sure. This is all a moving target, though. One of the recent builds just noticeably improved Jinc3 chroma upscaling performance. Maybe I'll find more ways to improve performance in the future, or maybe not. Maybe I'll make the anti-ringing filter even higher quality in the future, on the cost of some performance, or maybe not. So there's a chance performance could get either faster or slower in the future. Also there could be more/other algorithms coming to madVR in the future, too.

I've always had issues similar to Matching_Mole with certain transport streams (the type which only IVTC to 24fps smoothly using DScalerMod 'IVTC = Always Enable'). When using LAV Filters + madVR (forced Film mode), playback is only smooth during commercials where madVR detects 2:2 cadence, while during the show itself where 3:2 cadence is detected, all panning scenes stutter immensely, with frames feeling like they are being displayed out of order. The odd part is it seems 'normal' if I step frame by frame or hold CTRL + right arrow in MPC-HC.
It's not really odd. Probably only the timestamps are sub-optimal.

madshi, here a few logs @ 96hz & 120hz:

TS #2 (~25 seconds 3:2) (http://www.mediafire.com/?86df8m8fz3mj33a)
Same issue as Matching_Mole: timestamps aren't good. You tried different splitters/decoders? No difference?

Was IVTC functionality similar to DScalerMod something which you ever see yourself implementing, or was your current IVTC algorithm already supposed to handle such cases?
madVR's IVTC algorithm is way *WAY* better than DScalerMod. However, I've only ever really tested IVTC playback with 24p output. I guess timestamp handling might need improvement. But if you think about it, timestamp handling is like 0.1% of what an IVTC algorithm does.

I asked if you could let me know if it's mpc-be's responsibility to fix

[...]

You found 3 parties at fault, not sure which should fix, couldn't reproduce it
There is your answer. "Not sure which should fix" rather is "Probably all 3 parties should fix", though. Just one fix in one of the parties is needed to fix the issue.

dansrfe
7th January 2013, 08:52
What exactly does Reclock do?

nevcairiel
7th January 2013, 09:14
Yes, IVTC output is "roughly" 23.976p. However, timestamps seem to have a lot of jitter in them. That might depend on the splitter/decoder, but it could also be a "fault" of the IVTC algorithm. When using 23.976Hz display mode, the jitter in the timestamps doesn't matter so much because madVR is clever enough to avoid frame drops if the number of decoded frames is roughly identical to the display refresh rate - even if the timestamps aren't optimal.

Any Hard-Telecined content i've seen has pretty clean 29.97 fps timestamps.
Its the Soft-Telecined content which has really odd timestamps (its designed to fit 29.97 fps timestamps after the telecine flags are applied, so ignoring those flags, the timestamps aren't exactly 24 fps compatible)

bugmen0t
7th January 2013, 09:19
That doesn't really make much sense, but then, rendering times aren't always the most reliable measurements. Just check whether playback is smooth with no dropped frames.

No frame drops or any other problems. Only rendering times going down to about one third. Maybe madVR is recognizing the doubled and tripled frames as one each, computing rendering times divided by 2 and 3 and therefore 2.5 on average. That would fit the given timings.

bugmen0t
7th January 2013, 09:26
What exactly does Reclock do?
ReClock is an audio renderer which continuously resamples the audio to slow down or speed up the played video to match the display rate as much as possible and keep audio and video in sync without dropping or repeating frames.

G_M_C
7th January 2013, 09:37
[...]
It's not recommended for upscaling because it introduces more problems than it solves for most video content. For downscaling, especially when using rather large downscaling factors, it can help to produce more faithful results, but it also introduces quite a lot of additional ringing, so only use it in combination with the anti-ringing filter, and also use a 2-tap algorithm, only. E.g. Catmull-Rom is recommended for that specific purpose.
[...]

Thx madshi for answering my question.

Downscaling doesnt happen much in real world usage, up-scaling happens much more. And i like the Jinc scaler. So I've decided to switch of linear light scaling all together atm.

e-t172
7th January 2013, 10:01
Yes, IVTC output is "roughly" 23.976p. However, timestamps seem to have a lot of jitter in them. That might depend on the splitter/decoder, but it could also be a "fault" of the IVTC algorithm. When using 23.976Hz display mode, the jitter in the timestamps doesn't matter so much because madVR is clever enough to avoid frame drops if the number of decoded frames is roughly identical to the display refresh rate - even if the timestamps aren't optimal. However, with 48Hz display mode, there are twice as many vsyncs as there are decoded frames, so there timestamp jitter can result in somewhat odd vsync presentation patterns.

Oh. That may be why I've given up on madVR IVTC because of jerky playback, since I have a 48 Hz screen.

madshi
7th January 2013, 10:30
Yeah, guess I should put on my to do list to find a quick (eventually dirty) fix for IVTC timestamps.

CiNcH
7th January 2013, 10:43
Hey guys,

I am still playing around with Intel HD graphics and A/V timings. I once thought that with my Ivy Bridge CPU and Z77 chipset, HDMI Audio is somehow inserted via the onboard Realtek audio controller (which is driven by a different quartz). Because if I disable the 'HD Audio Controller' within the BIOS, both, 'Intel Display-Audio' and 'Realtek High Definition Audio', disappear from within the device manager. But if I just disable 'Realtek High Definition Audio' from within the device manager, HDMI Audio still works. So there has to be a controller within the CPU.

So I had a look at the madVR OSD statistics when using HDMI Audio with the Realtek disabled. I used DirectSound renderer and its clock as graph reference. madVR displays a clock deviation jittering around 0%. So I guess that the video and audio part are perfectly in sync. madVR still believes though that it has to drop a frame every 4.2 minutes. How is this calculated? Guess not from the clock deviation but rather from the display/composition rate discrepancy which is still 23.972 vs. 23976 Hz. And a frame indeed gets dropped every ~4 minutes according to the statistics. Is it really necessary? At 23.972 Hz, frame rate is just a bit lower but according to the clock deviation as is the audio speed. So everything should be in perfect sync, no?

cyberbeing
7th January 2013, 10:43
FWIW, the IVTC algorithm itself doesn't need improvement for this, but maybe the timestamp handling could be improved.
...
It's not really odd. Probably only the timestamps are sub-optimal.
...
Same issue as Matching_Mole: timestamps aren't good. You tried different splitters/decoders? No difference?
...
madVR's IVTC algorithm is way *WAY* better than DScalerMod. However, I've only ever really tested IVTC playback with 24p output. I guess timestamp handling might need improvement. But if you think about it, timestamp handling is like 0.1% of what an IVTC algorithm does.

The same madVR IVTC + Decimation stutter occurs when using any splitter/decoder combination with these videos.

When using DScalerMod IVTC, I've noticed I can make it stutter similar to madVR IVTC if I enable its 3:2 Playback Smoothing option, which I assume is timestamp smoothing, and obviously harmful for the samples I provided logs for.

madshi
7th January 2013, 10:52
So I had a look at the madVR OSD statistics when using HDMI Audio with the Realtek disabled. I used DirectSound renderer and its clock as graph reference. madVR displays a clock deviation jittering around 0%. So I guess that the video and audio part are perfectly in sync. madVR still believes though that it has to drop a frame every 4.2 minutes. How is this calculated? Guess not from the clock deviation but rather from the display/composition rate discrepancy which is still 23.972 vs. 23976 Hz. And a frame indeed gets dropped every ~4 minutes according to the statistics. Is it really necessary? At 23.972 Hz, frame rate is just a bit lower but according to the clock deviation as is the audio speed. So everything should be in perfect sync, no?
Well, the 4.2 minutes is just an estimate. This whole calculation is just there to give you a hint. It is not used *at all* during video rendering. Video rendering drops frames only when the calculated vsync timings require a frame drop to keep audio and video in sync. So the ultimate proof whether you get perfectly smooth playback is not the 4.2 minute estimate, but the number of actually dropped frames. Unfortunately I'm (currently) not counting the frame repeats yet, so even if you have zero actual frame drops reported in the OSD, playback could still be non-smooth if there are a frame repeats.

The 4.2 minutes estimate is based on comparing the measured refresh rate, corrected by the measured audio clock deviation, to the needed refresh rate. E.g. if the audio clock deviation is exactly 0% and the measured refresh rate is 23.972, then your GPU draws frames a bit too slowly. Since audio clock deviation is 0%, audio is played at a speed that requires video to be drawn at exactly 24/1.001. Since your measured refresh rate is slower, audio and video sync will get lost over time if madVR doesn't drop video frames once in a while. That's where the 4.2 minutes estimate comes from.

The same madVR IVTC + Decimation stutter occurs when using any splitter/decoder combination with these videos.

When using DScalerMod IVTC, I've noticed I can make it stutter similar to madVR IVTC if I enable its 3:2 Playback Smoothing option, which I assume is timestamp smoothing, and obviously harmful for the samples I provided logs for.
Could I have a sample which demonstrate this stuttering, please? It will be a couple of weeks before I find the time to look at this, though.

cyberbeing
7th January 2013, 11:38
Could I have a sample which demonstrate this stuttering, please? It will be a couple of weeks before I find the time to look at this, though.

PM sent which contains a download link for all three samples (trimmed with TSMuxer around panning scenes).

DragonQ
7th January 2013, 12:22
ReClock is an audio renderer which continuously resamples the audio to slow down or speed up the played video to match the display rate as much as possible and keep audio and video in sync without dropping or repeating frames.
The new MediaPortal Audio Renderer does this too, although I'm not sure why they decided to reinvent the wheel for this. MadVR support would've been a much better thing to work on, IMO.

pei
7th January 2013, 13:01
Does it work if i disable it and use what?

leeperry
7th January 2013, 13:43
Reclock doesn't improve screwed up timestamps.
Oops, my bad! I guess I'm mixing with AC3Filter that has a "smooth timestamps" option IIRC.

I guess he was talking about realtime IVTC'ed content (in mVR?) when I'm talking about 23.976/24/25fps files that were dead smooth with Reclock in 48Hz on the HC3100 IME, whatever natively progressive or offline IVTC'ed in Avisynth.

But if mVR can only smooth timestamps for realtime IVTC'ed stuff when running in 24Hz, I guess that's yet another good reason to give up on 48Hz....too bad the mouse cursor is so sluggish in 24Hz.

Matching_Mole
7th January 2013, 19:23
Yeah, guess I should put on my to do list to find a quick (eventually dirty) fix for IVTC timestamps.

Great news! If you need any specific samples from telecined blu-ray in addition of the sample of cyberbeing, I will be happy to provide them. Unfortunately I have several examples :D

I guess he was talking about realtime IVTC'ed content (in mVR?) when I'm talking about 23.976/24/25fps files that were dead smooth with Reclock in 48Hz on the HC3100 IME, whatever natively progressive or offline IVTC'ed in Avisynth

Yes, I have the stuttering issue only with IVTC'ed content. Otherwise I have a perfect smooth playback for any progressive video, and without Reclock Speed adaptation feature.

leeperry
7th January 2013, 20:10
Yes, I have the stuttering issue only with IVTC'ed content.
Well, Reclock has no idea whatsoever that mVR is messing with the frame rate so yeah, it's all gonna end up in stutter-land :p

I presume that LAV can't IVTC? I often play 29.97@59.94 1080i with LAV using CUVID, and Reclock sees 59.94 sees as expected.

aufkrawall
7th January 2013, 20:24
Which GPU, OS, decoder, splitter? Aero on/off?

GTX 670, Win 7 x64, LAV video & splitter, Aero on, MPC HC.

nub234
7th January 2013, 22:28
Ok, please try different splitters, decoders and different video files. Maybe this problem only occurs with a certain combination of video files, splitters and/or decoders. If you find that it only occurs with some video files but not with others, please upload a sample of a video file where it occurs most often. Thanks.

I'm using LAV Splitters/Decoders in PotPlayer and MPC's default splitters and decoders in MPC; both give the same freeze. I also performed a clean PotPlayer install, that is to say it was using its internal decoders/splitters, when selecting madVR the freeze occurred again.

The freeze actually occurs with all files equally, whether AVC1, XVID or WMV but if you still want a sample of a file let me know and I'll upload one.

pei
7th January 2013, 23:09
Then you ]jkauff said
[QUOTE]
Yes, it should, and it does for me in MPC and Zoom Player using DXVA2 and madVR, so I don't think that's where the issue is. I'm using Win7 64 Aero, but PowerDVD turns off Aero and the pointer still reappears when the mouse is moved, so I don't think Aero is the issue. Maybe your video driver?
Yesterday 06:44

Now I say:
Video is AMD Radeon 6310 latest available drivers

Peuj
7th January 2013, 23:10
The batch file should do the trick. Make sure the "settings.bin" file in the madVR folder is deleted, too.

Hi madshi,

Thanks, I've found the "settings.bin" file in C:\Users\Peuj\AppData\Local\VirtualStore\Program Files (x86)\LAV Filters\x86\madVR

I've looked in the bat file and the way it's written, the "settings.bin" file cannot found.

pei
7th January 2013, 23:13
That's weird. On my PC the mouse cursor disappears if you don't move it for a while. Then as soon as you move the mouse, the cursor comes back. Not sure why that doesn't work for you. Might have to do with the GPU/drivers. Does that not happen if you disable DXVA2?

Switching it to NONE also doesn't let the mouse cursor appear.

SamuriHL
7th January 2013, 23:13
Hi madshi,

Thanks, I've found the "settings.bin" file in C:\Users\Peuj\AppData\Local\VirtualStore\Program Files (x86)\LAV Filters\x86\madVR

I've looked in the bat file and the way it's written, the "settings.bin" file cannot found.



@echo off
echo.
echo.
title restore madVR default settings...
cd /d "%~dp0"
start /min reg delete HKEY_CURRENT_USER\Software\madshi\madVR /f
if exist "settings.bin" (
if exist "settings.bak" (del settings.bak >NUL)
rename settings.bin settings.bak >NUL)
echo settings were reset to default
echo.
pause >NUL


I fixed it by adding a line that should make sure that you're in the directory that the batch file is in when it executes.

pei
7th January 2013, 23:24
I really wanna use hardware decoding used by madVR, but this mouse cursor thing is kind of a deal breaker.

manni500
8th January 2013, 02:01
Madshi Video Renderer under PotPlayer 64-bit
--------------------------------------------

I have searched the forum - as well as Google - but could not find this issue addressed so I permit myself to post the query here.
Today, I changed from PotPlayer 32-bit to 64-bit sind I learned that madVR should work with that. However, I now can no longer configure the filter. When I go to Filters(in PotPlayer), the madshi no longer shows up as it did under the 32-bit version. What am I doing wrong? I reregistered the newest version of madVR, but to no avail.
Any help is much appreciated; thanks in advance

DragonQ
8th January 2013, 02:08
MadVR is 32-bit only so that'll be the problem...

manni500
8th January 2013, 02:16
Thanks for the prompt response !
But over at the download page it says that MadVR works well with Windows 8 64-bit. See for yourself : http://www.videohelp.com/tools/madVR

Afterthought:
let me add also that the filter is there; it shows under 'Preferences, Video' and there is an obvious difference to the built-in filter when Madshi is used. So the filter must be working with PotPlayer x64. But what is missing is the possibility to configure it

ryrynz
8th January 2013, 02:22
That's not the same thing though. 64-bit players have to use 64-bit renderers.

DragonQ
8th January 2013, 02:27
Windows 8 64-bit is an operating system. Nowhere does it say it works with 64-bit media players.

manni500
8th January 2013, 02:30
yes, you are right ryrynz, I realize that I misunderstood here. Yet I want to repeat that the filter is operational under Potplayer x64, if not configureable

huhn
8th January 2013, 12:56
the madvr filter is not operational in pot player 64 an backup video renderer is loaded. just use potplayer 32 bit on ur 64 bit system it isn't slower at all.

manni500
8th January 2013, 13:45
So you are saying the change I see when switching to the "Madshi Video Renderer" in the DPP video section is not coming from madVR but from some other built-in filter.
In any case, I have taken your advise and gone back to DPP x86 (although I don't quite understand: if there is no need for or improvement by a x64 version, why build it?)

huhn
8th January 2013, 14:27
pot 64 uses video renderer when madvr is selected (maybe know as old renderer in mpc hc?) but u can simple see in the filter that madvr is not used and it can't be used because it is 32 bit only.

a 64 bit player can handle "a lot" more then 2gb ram for avisynth scripts and things like that but normal user will never touch the 2 gb mark.

and 64 bit is faster when velues higher then 32 bit are used and trust me 32 bit is pretty big....

but that is another topic.