Log in

View Full Version : Sharpen filter creating line on right side of video


d_dave
8th April 2002, 09:29
I'm using Avisynth 1.05. The source is a vob ripped using SmartRipper. Here's my avisynth script:

LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
mpeg2source("D:\steve\01.d2v")
crop(0,5,718,463)
Sharpen(.3)
BicubicResize(432,224,0,.6)

The problem I'm having is w/ the Sharpen filter. Placing the sharpen filter before the resize creates a faint line on the right side of the video. Placing it after the resize creates a very noticable line on the right side of the image. Is there a work-around for using the Avisynth Sharpen filter so that there is NO line made on the resulting video?

I've tested this by playing the .avs file in BSplayer. Without using the Sharpen filter, there is no line.

I've also read the thread entitled "AVISynth blinking line" and was not able to get any ideas as to how to fix this problem. Wondering if i'm using the wrong parameters for Sharpen.

In the meantime I'll be using Virtualdub's sharpen filter though this slows things down a bit.

trbarry
8th April 2002, 13:57
Some filters will do this if their input width is not a multiple of 4 or 8 pixels. Don't know about sharpen.

- Tom

dividee
8th April 2002, 15:47
I tested your script and it doesn't give me that line.

Try Tom's suggestion; if it doesn't work, you could Sharpen before you Crop, so as to crop that garbage line.

d_dave
8th April 2002, 22:48
thanks for the suggestion.

i've taken every factor out of the avisynth script so the resulting script is as follows:

LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
mpeg2source("D:\steve\01.d2v")
Sharpen(.3)

and the garbage line on the right side was still there. but putting the sharpen before the crop did the trick. however it slowed down encoding.

i tried re-installing avisynth but still had the same garbage line problem. im wondering why no-one else is seeing it.

ARDA
9th April 2002, 00:52
I have had that problem many times and could solve it putting sharpen before crop too.This question has been many times in this forum and without a clear explanation of its cause.

d_dave
11th April 2002, 09:20
Ok, now placing the sharpen before the crop is crashing VDub 1.4.9 when using job control. The AVS use to work on another video i was encoding but since then, every subsequent encode using job control + the sharpen before the crop is crashing or erroring out virtualdub.

crop is set to all even values. so thats not it. moving the sharpen after crop works under job control. in the meantime im putting the sharpen before crop and NOT using job control.

i'll do some testing (eg, reinstall virtualdub 1.4.9) and see if this solves my problem.