31.10.2020, 23:41
Quote:]So far so good, this I can reproduce.
Step 1: Launch "Hybrid".
Step 2: Load " input.m2v" you provided me with.
Step 3: Crop/Resize -> Input PAR 8:9 -> Force Input PAR type: generic, Convert output to PAR "Square Pixel (1:1) - it shows proper 720x540.
Quote:step 4: Activate "Picture Crop" - crop right side to 6 px.same here
- "Picture Resize" with Auto adjust - "height" shows 720x546
Quote:So, I need to crop extra 6 pixels (that's incorrect, correct value is 4px) from top/bottom to get 540That assumption is only correct if:
a. input and output PAR
and
b. input and output width is the same
or
these two compensate each other.
Quote:Crop: bottom - 4px, top- 2px. Picture Resize shows 720x538 (instead of 540).Yes, and 538 is correct.
What Hybrid calculates is:
crop resolution: 714x474
target width: 720 -> resizeMult = 720/714 = 1.0084033613445378151260504201681
target par: 1:1 -> parMult = 9/8
resized height = cropHeight*resizeMult*parMult = 474*1.0084033613445378151260504201681*9/8 = 537.73109243697478991596638655462 = 538
-> Hybrid is correct here.
Quote:Crop: bottom - 2px, top- 2px. Picture Resize shows correct 720x540.crop resolution: 714x476
target width: 720 -> resizeMult = 720/716 = 1.0055865921787709497206703910615
target par: 1:1 -> parMult = 9/8
resized height = cropHeight*resizeMult*parMult = 476*1.0055865921787709497206703910615*9/8 = 538.49162011173184357541899441341 = 539 which gets rounded to 540 since mod2 is configured (and required due to the color space).
-> Hybrid is correct here.
=> The problem is that you did not think about the resizeMult and parMult that are part of the calculation, since resize should be always done after cropping in Hybrid.

In Hybrid currently the processing order always is:
1. crop
2. resize
3. letterbox
(Now that I think about it, there is another bug: this order is not enforced when using Avisynth or Vapoursynth)
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.