Jagged edges when resizing

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
Hagaren Viper
Joined: Fri Aug 19, 2005 11:51 pm
Status: Just wanna play Persona 4Ever
Location: I dont wanna edit
Contact:
Org Profile

Jagged edges when resizing

Post by Hagaren Viper » Sun Jan 04, 2009 9:27 pm

Image

Image

Ok, ok, I could have made those pics smaller, but...

So, here's the problem. I have this footage, it's shiny, it's de-interlaced, it's pretty useable, right? But in the AMV I am doing at the moment, I need to resize and rotate the footage, like in that second picture. That's where things get tricky.

It seems like when I do that, the outlines of everything become noticeably jagged. I've tried different things, but haven't come to a solution at all. I'm not even sure if this something that can be scripted, or if it's more of a problem with my program itself (Sony Vegas 6).

So, any ideas? I really don't want to have to go a different route with my AMV because of this.

Code: Select all

avisource("Casca07.avi")
ConvertToYV12()
Awarpsharp(12)
Fastlinedarken(strength=40,thinning=0) 

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Re: Jagged edges when resizing

Post by Scintilla » Mon Jan 05, 2009 12:50 am

If you don't have jagged edges when viewing the video normally, then it's not AVISynth's fault and it must be a quirk of Vegas.

Premiere Pro (1.0, as it's the only version I've ever used) has two ways to scale, move, and rotate footage: first there are the scale, position, and rotation properties that come standard on every clip; then there is the Transform video effect.
This is a much more powerful effect that can do lots of other cool stuff, but the reason I mention it here is because it applies motion blur that you don't get with the other method (I think this is the only way to get motion blur in Premiere Pro), and it may also affect scaling (I don't remember offhand).

You might want to see if Vegas has something similar.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
Phantasmagoriat
Joined: Mon Feb 06, 2006 11:26 pm
Status: ☁SteamPunked≈☂
Contact:
Org Profile

Re: Jagged edges when resizing

Post by Phantasmagoriat » Mon Jan 05, 2009 10:35 am

Aliasing issues usually come up when an image is scaled to much smaller than the original resolution. The first time I noticed this was when I had some HD footage that I exported as SD-- It didn't look pretty :| I think the same idea applies here, except that you are shrinking the image within your video so the only way to keep the resolution of the image the same is to export the effect at a much higher resolution, then resize it later with avisynth.
PLAY FREEDOOM!! | Phan Picks! | THE424SHOW | YouTube | "Painkiller" | Vanilla MIDI's
"Effort to Understand; Effort to be Understood; to See through Different Eyes."

User avatar
Hagaren Viper
Joined: Fri Aug 19, 2005 11:51 pm
Status: Just wanna play Persona 4Ever
Location: I dont wanna edit
Contact:
Org Profile

Re: Jagged edges when resizing

Post by Hagaren Viper » Mon Jan 05, 2009 3:08 pm

Phantasmagoriat wrote:Aliasing issues usually come up when an image is scaled to much smaller than the original resolution. The first time I noticed this was when I had some HD footage that I exported as SD-- It didn't look pretty :| I think the same idea applies here, except that you are shrinking the image within your video so the only way to keep the resolution of the image the same is to export the effect at a much higher resolution, then resize it later with avisynth.
Bingo, this seems to have worked! Though it'll make a big filesize at the AR I'm working at (840x480>Something in the 1000s), it looks like that fixed the problem. Thank you very much!

(Imagine my surprise when both Scintilla and Phantasmagoriat responded to my thread, heh.)

User avatar
Phantasmagoriat
Joined: Mon Feb 06, 2006 11:26 pm
Status: ☁SteamPunked≈☂
Contact:
Org Profile

Re: Jagged edges when resizing

Post by Phantasmagoriat » Mon Jan 05, 2009 8:48 pm

Yeah, it will produce a big file at first, but after you resize it with avisynth, you can simply delete the high res effect, then use the resized copy for your video.
PLAY FREEDOOM!! | Phan Picks! | THE424SHOW | YouTube | "Painkiller" | Vanilla MIDI's
"Effort to Understand; Effort to be Understood; to See through Different Eyes."

Locked

Return to “AviSynth Help”