Log in

View Full Version : Logo Skewed


SacredCultivator
3rd May 2013, 01:44
Hello,

Not too sure if anyone happens to know how to fix this.

My AVS Script is as follows:
LoadPlugin("C:\Program Files (x86)\meGUI\tools\ffms\ffms2.dll")
Load_Stdcall_Plugin("C:\Program Files (x86)\meGUI\tools\yadif\yadif.dll")

VIDEO=DGDecode_mpeg2source("D:\Downloads\Need Encoding\[Diadem Subs]\T-ara's Freedom Tour In Europe\VTS_01_CHAPTER_01_1.d2v", info=3)
IMAGE=ImageSource("D:\Keepers\Subbing\FanSub Logo's\logosmaller.bmp")
Overlay(VIDEO, IMAGE, mask=IMAGE, opacity=0.9, x=666, y=10)
ColorMatrix(hints=true, threads=0)

Crop(2,2,-4,-0,align=true)
Spline36Resize(720,480)
global MeGUI_darx = 16
global MeGUI_dary = 9
#assumefps(23.976)
assumefps(29.97)


---
I've attached 2 pictures, original {How it should look like) and skewed (How it looks when you set the Dar, so it gets stretched)

And this is due to it being a DVD source and instead of having it set to 854x480 (animorphic) manually, I have it automatically do it, and in doing so the dimensions throw off the logo. Not sure if anyone happens to know how to possibly fix it.
{Not sure if this helps but for the rest of the subs, for DVD"s that I have set to widescreen (854x480) I have the Y Scale % at 121, so not sure if maybe the logo may need that as well.

I dislike using logo's, but for this particular fansub group they opt for it. NOt an issue for non-DVD stuff though.

Thanks.

moron2
3rd May 2013, 15:25
Yes, the logo needs to be scaled as well.

TheSkiller
3rd May 2013, 15:50
Well, of course it gets strechted if you do it that way.

You draw your logo which was, as is seems, created for computer displaying with square pixels onto a video which uses non-square pixels. That doesn't match, no good.

There are 2 ways to fix it:

1) apply the logo after resizing
2) pre-stretch the logo so that it matches the non-square pixels of your DVD source

For 2) you would reduce the width of the logo to 82.5% of it's original width.

Edit: Also, if you ask me, it looks quite ugly if you put the logo THAT close to the borders, leave some space. ;)

SacredCultivator
3rd May 2013, 15:55
@TheSkiller: THanks for the tips, but for Option 1, would it simply be like this;
VIDEO=DGDecode_mpeg2source("D:\Downloads\Need Encoding\[Diadem Subs]\T-ara's Freedom Tour In Europe\VTS_01_CHAPTER_01_1.d2v", info=3)
Crop(2,2,-4,-0,align=true)
Spline36Resize(720,480)
global MeGUI_darx = 16
global MeGUI_dary = 9
IMAGE=ImageSource("D:\Keepers\Subbing\FanSub Logo's\logosmaller.bmp")
Overlay(VIDEO, IMAGE, mask=IMAGE, opacity=0.9, x=666, y=10)
ColorMatrix(hints=true, threads=0)

THanks again. And yup can leave some spacing for future stuff. ^^

TheSkiller
3rd May 2013, 16:38
No, that doesn't change anything.

You're not resizing before applying the logo if you leave the resizing up to MeGUI which would do it's stuff after AviSynth (sorry, but isn't that obvious?).

You're resizing twice anyway, once in AviSynth and a second time in MeGUI. That doesn't make sense.


This would work (you need to adjust the logo's x-coordinates though):


Crop(2,2,-4,-0,align=true)
Spline36Resize(854,480)

IMAGE=ImageSource("D:\Keepers\Subbing\FanSub Logo's\logosmaller.bmp")
Overlay(VIDEO, IMAGE, mask=IMAGE, opacity=0.9, x=666, y=10)

SacredCultivator
3rd May 2013, 17:02
Oooo wait... so I guess I've been doing things wrong for quite some time now.

As for the Resize I'd always leave it at "720x480" and then set the aspect ratio to either 16:9 / 4:3 to let it handle it to either 854x480 or 720x540 ><

So I don't need to use the below at all right?
global MeGUI_darx = 16 (4)
global MeGUI_dary = 9 (3)
{ ( ) => For non-widescreen }
I'd just set the Resize to the actual Resolution that I want? {Man now I feel like a huge noob, despite doing this for so long.}