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

toki
18th April 2019, 19:36
https://pasteboard.co/IaK4q6j.pngThe above comment, is that for my version? 43' doesn't have Full UHD Color I don't think.

Edit: looking at the picture, and I've noticed it with another movie too, is that it flips in the middle of prensentation. Goes from correct coloring and so on to washed out looking like in the picture.

huhn
19th April 2019, 01:34
you are upscaling 2160 to 2679 why?

Warner306
19th April 2019, 01:36
To simplify things, set the GPU to 8-bits at 60 Hz and don't worry about 12-bits. It won't lower image quality or create banding.

Given the peak brightness of your display, I would convert HDR to SDR with pixel shaders. Set madVR to BT.709 and either 2.20 or 2.40, whichever gives you the better HDR picture. The gamma setting won't impact SDR content.

toki
19th April 2019, 01:59
edit: it's me doing pan & scan - scale to 16x9

now if someone could help me with the gpu spike. It went from like 61% to 97/98% after upgrading to the 4k tv. is that normal?

huhn
19th April 2019, 02:18
that's part of the player. so sorry no help i can do blindly even if i know the player it would be limited.

jbnpaul
19th April 2019, 02:39
edit: it's me doing pan & scan - scale to 16x9

now if someone could help me with the gpu spike. It went from like 61% to 97/98% after upgrading to the 4k tv. is that normal?



Did you move from hd to 4k?
If you were running 4k previously did anything else change? Bit depth, frame rate, hdr etc.


Sent from my iPhone using Tapatalk

toki
19th April 2019, 02:50
Did you move from hd to 4k?
If you were running 4k previously did anything else change? Bit depth, frame rate, hdr etc.


Sent from my iPhone using Tapatalk

I went from a 1080 tv to a 4k tv. The only thing that changed was the nvidia control panel. It started with RGB/Full/30Hz when I first plugged it in. Then I switched it to 60Hz. It will only do ycbcr 4.2.2 Limited at 60Hz. I can't choose anything else at 60Hz. Nothing else changed. I have tried Clear Action on/off, film mode on/off game low latency on/off. I have changed chroma upscaling/checked everything in trade quality for performance and so on. Nothing is really getting the gpu spike down. Also, I did find Full UHD Colors under a different section. It's on now.

toki
19th April 2019, 03:46
ok, screwing around with it some more shows me that if I run mpc-hc with controls still up, not going into full screen, gpu usage is at about 76%, full screen gives me 97/98%. I swear this can't be right for a 1660ti. Everybody said these would be good because of the extra vram, but this has all given me kind of a headache so far.

huhn
19th April 2019, 04:03
edit: it's me doing pan & scan - scale to 16x9

now if someone could help me with the gpu spike. It went from like 61% to 97/98% after upgrading to the 4k tv. is that normal?

then don't do that and it should be fine.

Asmodian
19th April 2019, 11:53
It sounds like you need to change your settings, madVR can bring pretty much any card to 98% usage when upscaling 4K. Both the number of input pixels and number of output pixels matter when scaling so doing 2160 -> 2679 is going to be very hard. Downscaling or especially not scaling at all is much faster. If you are watching 4K going from downscaling to upscaling, when switching to full screen, is going require very different settings.

jkauff
19th April 2019, 12:00
ok, screwing around with it some more shows me that if I run mpc-hc with controls still up, not going into full screen, gpu usage is at about 76%, full screen gives me 97/98%. I swear this can't be right for a 1660ti.
Are you playing UHD movies? These use the HEVC/H.265 codec to highly compress the video, which puts a huge strain on the CPU if you're using software decoding.

The 1660ti has a dedicated video processing chip for encoding/decoding HEVC. Go into your LAV Video settings and choose hardware decoding. From the dropdown list, choose "NVENC". Once you do that, your CPU usage should drop way down.

As far as GPU usage goes, you shouldn't need to do any scaling for 4K UHD movies. With no scaling to do, madVR will not tax your GPU to the degree you're seeing. If you're upscaling 1080p movies with NGU, make sure you're ONLY doubling (not quadrupling then downscaling) and play around with the strength settings. Your GPU should do at least NGU High for luma upscaling with no problem.

toki
19th April 2019, 12:12
well, taking scale to 16x9 drops down gpu from 98% to 76%, but the video still stutters and I really want to be able to watch these movies in full screen.

Also, the CPU barely has any load on it, it's all on the gpu side.

jkauff
19th April 2019, 12:26
Then I think you must be doing unnecessary scaling, either up or down or both. My GTX 1080 doubles 1080p to 4K fullscreen with much lower usage than you're getting--50% on average. I don't have any UHD movies, so I can't give you a comparison there.

toki
19th April 2019, 12:42
I just tested with dsplayer and it has dropped gpu usage massively. I'm only getting 40% tops using it instead of mpc-hc

Edit: I also wanted to add that I haven't completely set up dsplayer again. I just tried to run it with fresh install and it dropped cpu usage by almost half. Will still have to see as I continue to set it up proper.

Edit Edit: it's definitely madVR. As soon as I switched to madvr profile it went right back to 97%

Warner306
19th April 2019, 13:43
Post the settings you are using, either in screenshots or in a list. It's either the driver for the 1660 Ti or something you have checked in the control panel.

Are you at least outputting to the correct resolution?

toki
19th April 2019, 14:59
it's the beta build of madvr doing it. I went from last public build, giving me 59% to last beta build giving me 97/98% I'm just going to start fresh with madVR. Since it's a new tv, just going to try and setup everything fresh and take it step by step.

ryrynz
19th April 2019, 15:10
That'll likely be the new tone-mapping settings which you don't require.

toki
19th April 2019, 15:23
now I have a problem of video stuttering when trying to pass through metadata with passthrough.

Charky
19th April 2019, 15:51
it's the beta build of madvr doing it. I went from last public build, giving me 59% to last beta build giving me 97/98% I'm just going to start fresh with madVR. Since it's a new tv, just going to try and setup everything fresh and take it step by step.
Well if everything's fine with it just use the last public build...

Damien147
19th April 2019, 16:06
Do I still get calibrated picture with hdr to sdr 3dlut or it's just for tone mapping?

huhn
19th April 2019, 16:35
if you use an HDR-SDR 3D LUT it is only used for HDR nothing else is corrected and it replaces madVR tonemapping.

tp4tissue
19th April 2019, 17:05
Do I still get calibrated picture with hdr to sdr 3dlut or it's just for tone mapping?

This is not what you want.

Set your tv its widest gamut SDR mode.

Use that with madvr's dynamic tonemapping.



HDR only specifies the data spec, the actual Dynamic range in both HDR / SDR on the SAME tv is more/less the same.

Damien147
19th April 2019, 18:09
A bit confused.I have a BT.709 display and I am like this (https://imgur.com/a/I1Gwzpu).
Is it suggested to create a gamma 2.2 BT.2020 3dlut(removing hdr to sdr 3dlut obviously) and put it in the calibration tab leaving madvr to do the tone mapping or am I doing the same thing?

Alexkral
19th April 2019, 18:18
Here's a very interesting conversation about 3DLUTs in madVR.

https://www.avsforum.com/forum/139-display-calibration/1471169-madvr-argyllcms-156.html#post55172290

toki
19th April 2019, 19:16
this is being so finicky. I got it to 59%, I tinkered around checking different movies, that's all, just checking different movies, then I stop it for a second and when I go to check it again it's back up to 90%. I didn't even do anything with it.

Edit: I checked task manager and it's bringing up like 4 instances of madvrcontrolpanel. I click all but one and it goes back down in gpu usage.

tp4tissue
19th April 2019, 20:26
A bit confused.I have a BT.709 display and I am like this (https://imgur.com/a/I1Gwzpu).
Is it suggested to create a gamma 2.2 BT.2020 3dlut(removing hdr to sdr 3dlut obviously) and put it in the calibration tab leaving madvr to do the tone mapping or am I doing the same thing?


NO,

Put tv in its Widest gamut mode, @ whatever brightness you like, or the highest.

Then, run dispcal 3d lut for SDR, Source DCI-P3, 2.2gamma, relative, 98% black output offset. absolute colorimetric w/ white point scaling

Leave black point correction alone unless using plasma/oled/CRT.


Put that into the dci-p3 slot in madvr calibrations, under the SDR section.

In HDR section, set to use pixel shader for dynamic, And it will just use that lut after tonemapping..


It is recommended you watch hdr tonemapped movies in near pitch black conditions, room around 5-10cd. Because the relative lut makes it very dark.

If you use rec 1886 lut which is absolute tone, it will brighten black detail for a bright room, However it won't look very HDR-y because the contrast seems gone.


I also don't recommend using 100% black output offset, because it's just a little too much crush. I've compared dark images extensively against my CRT, 98% brings out just the right amount of detail, without eating into the contrast.

tp4tissue
19th April 2019, 20:27
this is being so finicky. I got it to 59%, I tinkered around checking different movies, that's all, just checking different movies, then I stop it for a second and when I go to check it again it's back up to 90%. I didn't even do anything with it.

Edit: I checked task manager and it's bringing up like 4 instances of madvrcontrolpanel. I click all but one and it goes back down in gpu usage.

It shouldn't change that much unless your gpu was clocking up and down.

What is your entire movie chain detailed hardware spec and software .

Asmodian
19th April 2019, 20:34
this is being so finicky. I got it to 59%, I tinkered around checking different movies, that's all, just checking different movies, then I stop it for a second and when I go to check it again it's back up to 90%. I didn't even do anything with it.

Edit: I checked task manager and it's bringing up like 4 instances of madvrcontrolpanel. I click all but one and it goes back down in gpu usage.

You should check madVR's OSD to see what is different when you see lower/higher GPU usage. You do have your "Power management mode" set to adaptive in the Nvidia Control Panel?

Also, "madvrcontrolpanel"? Do you mean "mad* home cinema control"? I only ever see one of those, what is bringing them up?

huhn
19th April 2019, 20:35
A bit confused.I have a BT.709 display and I am like this (https://imgur.com/a/I1Gwzpu).
Is it suggested to create a gamma 2.2 BT.2020 3dlut(removing hdr to sdr 3dlut obviously) and put it in the calibration tab leaving madvr to do the tone mapping or am I doing the same thing?

that setup is fine if you don't want to use madVR tonemapping but displaycals and if your device is BT 709.

tp4tissue
19th April 2019, 20:55
Here's a very interesting conversation about 3DLUTs in madVR.

https://www.avsforum.com/forum/139-display-calibration/1471169-madvr-argyllcms-156.html#post55172290

HAHAHA, reading it now, FLo FLo (fhoech) unleashed Fury upon incompetant user iSeries

Damien147
19th April 2019, 21:02
that setup is fine if you don't want to use madVR tonemapping but displaycals and if your device is BT 709.

The whole point is to have calibrated sdr,hdr + what's needed for hdr to be displayed on bt.709 display.To conclude shall I stay with how I am or gamma 2.2 bt.2020 in calibration tab is better for me?

toki
19th April 2019, 21:03
You should check madVR's OSD to see what is different when you see lower/higher GPU usage. You do have your "Power management mode" set to adaptive in the Nvidia Control Panel?

Also, "madvrcontrolpanel"? Do you mean "mad* home cinema control"? I only ever see one of those, what is bringing them up?

It was home cinema control. I'm not sure what was bringing them up. I have madVR preferred in mpc-hc. Another thing that is bothering now is the HDR and calibration. It looks cloudy to me and I really want to calibrate it, but 1: I'm not exactly sure how and 2: I'm worried that it's going to ruin the tone mapping. I would really just like madVR takeover and do it. If anyone could guide me on how to calibrate HDR, that would be great. I've been reading not to mess with brightness/contrast/backlight, but it really needs it.

huhn
19th April 2019, 21:12
The whole point is to have calibrated sdr,hdr + what's needed for hdr to be displayed on bt.709 display.To conclude shall I stay with how I am or gamma 2.2 bt.2020 in calibration tab is better for me?

it just depends if you want madVR tone mapping or not.
madVR tonemapping is nearly for sure better but cost a lot of performance.

if you are using madVR tone mapping things get more complicated.
@tp4tissue
can you stop things like this please...

Alexkral
19th April 2019, 21:50
It was home cinema control. I'm not sure what was bringing them up. I have madVR preferred in mpc-hc. Another thing that is bothering now is the HDR and calibration. It looks cloudy to me and I really want to calibrate it, but 1: I'm not exactly sure how and 2: I'm worried that it's going to ruin the tone mapping. I would really just like madVR takeover and do it. If anyone could guide me on how to calibrate HDR, that would be great. I've been reading not to mess with brightness/contrast/backlight, but it really needs it.

https://forum.doom9.org/showthread.php?p=1865828#post1865828

Damien147
19th April 2019, 21:59
it just depends if you want madVR tone mapping or not.
madVR tonemapping is nearly for sure better but cost a lot of performance.

if you are using madVR tone mapping things get more complicated.
@tp4tissue
can you stop things like this please...

I don't have a particular preference.Are both solutions giving the same result with difference in tone mapping quality or are there more benefits with madvr tone mapping(and the gamma 2.2 bt.2020 in calibration tab)?
I am looking for what to do to achieve calibrated picture to conclude + what's needed for hdr to be displayed on a bt.709 display.

toki
19th April 2019, 22:02
https://forum.doom9.org/showthread.php?p=1865828#post1865828thnak you very much

huhn
19th April 2019, 22:17
I don't have a particular preference.Are both solutions giving the same result with difference in tone mapping quality or are there more benefits with madvr tone mapping(and the gamma 2.2 bt.2020 in calibration tab)?
I am looking for what to do to achieve calibrated picture to conclude + what's needed for hdr to be displayed on a bt.709 display.

both give you a calibrated image but the results will be different there isn't a clear spec for HDR-> SDR conversation.

Damien147
19th April 2019, 22:26
Ok,then I am staying with how I am I guess.Thank you and all.

Alexkral
19th April 2019, 23:35
Still I think there's a reasonable doubt about possible clipping when the source profile of the 3DLUT is BT.2020. This is from madshi 11-24-2017:

Gamut:

madVR doesn't convert the gamut, unless the 3DLUT (SDR or HDR, doesn't matter) expects a different gamut than the source provides. E.g. if your 3DLUT is BT.2020 and the video is also BT.2020 then madVR doesn't do any gamut processing. However, if your 3DLUT was made for BT.709 videos, but the video is BT.2020, then madVR will convert gamut from BT.2020 to BT.709. Basically madVR makes sure that the 3DLUT receives the pixels in the format it expects.

Pixel shader math is done in ICtCp and when the result is converted to RGB, some colors may fall out of gamut. When madVR converts the gamut, it maps those colors back in gamut, but in this case it could simply clip them, or let the 3DLUT clip them, which would make them look oversaturated.

I guess it maps them back in gamut anyway, but maybe using a source DCI-P3 3DLUT is safer.

huhn
20th April 2019, 00:12
very easy to test but i don't see a reason to do gamut mapping twice.

Alexkral
20th April 2019, 00:43
Well I think it's not that easy when you don't know the MaxCLL that madVR is using, clipping could be happening for whatever other reason.

grendelrt
20th April 2019, 03:15
So I noticed that when I have FSE enabled on Windows 10, I am getting a mismatched composition rate to display rate, 60hz instead of 24hz. Should composition rate even be showing in FSE? If I turn off FSE I get 24hz/24hz. Any inherit disadvantages to leaving FSE off? I do use MadVR for SDR and HDR tonemapping.

huhn
20th April 2019, 03:45
the FSE used in win 10 isn't exclusive anymore it should be there but that how FSE now works. FSE avoids bugs like sending 10 bit to the GPU driver when the GPU has to send 8 bit where it will produce banding (powered by nvidia).
there is a way to get a more "FSE" FSE on win 10 but you should be fine with WFS which can easily get a composition rate mismatch too.

Well I think it's not that easy when you don't know the MaxCLL that madVR is using, clipping could be happening for whatever other reason.

HDR-SDR 3D LUT are created for this. this may matter for tone mapping which isn't used here.

grendelrt
20th April 2019, 03:58
the FSE used in win 10 isn't exclusive anymore it should be there but that how FSE now works. FSE avoids bugs like sending 10 bit to the GPU driver when the GPU has to send 8 bit where it will produce banding (powered by nvidia).
there is a way to get a more "FSE" FSE on win 10 but you should be fine with WFS which can easily get a composition rate mismatch too.



HDR-SDR 3D LUT are created for this. this may matter for tone mapping which isn't used here.
Thanks for the reply, sorry I may be misunderstanding this part, are you saying it can be an issue when dithering from 10bit source to 8bit output?

huhn
20th April 2019, 04:17
the GPU driver doesn't dither in this case it does in FSE.

it's not a good idea to send the GPU 10 bit (madVR 10 bit output) when the GPU send 8 it to the display anyway.

a 10 or 8 bit source have nothing to do with that and shouldn't affect your choice if you send 10 bit to the display or not it's way more complicated this topic but in short you are fine with 8 bit anyway.

grendelrt
20th April 2019, 04:20
the GPU driver doesn't dither in this case it does in FSE.

it's not a good idea to send the GPU 10 bit (madVR 10 bit output) when the GPU send 8 it to the display anyway.

a 10 or 8 bit source have nothing to do with that and shouldn't affect your choice if you send 10 bit to the display or not it's way more complicated this topic but in short you are fine with 8 bit anyway.

I am currently sending 8bit to display due to the 12bit bug with JVC projectors, whenever that gets fixed (hopefully) I might go back to 12bit output.

huhn
20th April 2019, 04:22
then make sure you are not outputting 10 bit with madVR ever.

Cowboydude99
20th April 2019, 04:46
Hi. What am I doing wrong here!? :)

if (srcWidth == 1920) "1080p"
else if (srcWidth == 720) "720p"
else if (fps > 30) and (srcWidth == 2160) "4K60"
else "4K"


It seems that if the screen size is 2160, it always plays the "4K" profile. If I remove the 2160 on line 3, then it works normally...

huhn
20th April 2019, 05:24
why don't you take a more well known working solution?
you should either start from the top or the bottom not in the middle of something.

else if (srcWidth == 720) "720p"
that will not trigger on a 720p movie and using "==" means it's only true if it is the same value.

same for 2160 which file has a screen width of 2160? 1920, 1280, 3840 are common.

just take the example from madshi here and change it to your needs.
if (srcWidth <= 1050) and (srcHeight <= 768) and (deintFps < 31) "SD 24fps"
else if (srcWidth <= 1050) and (srcHeight <= 768) "SD 60fps"
else if (deintFps < 31) "HD 24fps"
else

Asmodian
20th April 2019, 06:19
if (srcWidth == 1920) "1080p"
else if (srcWidth == 720) "720p"
else if (fps > 30) and (srcWidth == 2160) "4K60"
else "4K"

I suggest:

if (srcHeight <= 720) "720p"
else if (srcHeight <= 1080) "1080p"
else if (fps < 31) and (srcHeight <= 2160) "4K"
else "4K60"

And as huhn mentioned, you should start at the smallest or largest resolution. I prefer starting at the smallest.