(2018-02-05, 07:46 AM)random.next Wrote: >then change the resolution (vertical and/or horizontal) until they align perfectly (for example, 1924x1080, or 1916x1072 etc) - try also 1pixel variation, using YV24Hi random, I have studied and tested your magic script for a several days, you did a great job, thank you.
Use aspectRatio params instead. And angle params for rotation (range -1 to 1 for beginning) . Aspect ratio is width divided to height.
If your over!ay resolution is 1920x800 then both aspectRatio params are equal to 2.4 by default. Set range instead of fixed default value: aspectRatio1=2.3 and aspectRatio2=2.5. Extend range if necessary. After testing leave minimal appropriate range.
I'm going to merge 2 clips with your autooverlay tools, here is my working environment:
win7, avs+ r2728, autooverlay 2.5
video1:1920x1080, with logo
video2:1920x1080, no logo
now I plan to get video2 overlay on video1
but question is, although both clips have the same resolution, but infact, video2 (look like 1924x1084 content resized to 1920x1080) has little more larger picture than video1, it has screwed me for a long days for modifing and testing the avs script round and round, until saw your this post, the aspectratio params was very helpful, finally, I got them align perfectly, thanks for your guidance.
for now, I would like to ask 2 questions for my curiousness happen on trying this fantasy script:
1, how to set the minOverlayArea and minSourceArea properly in my situation(reference for info above)? what's the design purpose of these params?
2, to remove the logo, it seem to overlayrender function can't finish the job alone, still need overlay function assist, right? if so what's the best choice for overlay and mt_merge? overlay need to convert the 2 clips to yv24 internally, but mt_merge no need to do it.