View Full Version : AVISynth blinking line
kblood
5th March 2002, 17:00
I get a blinking line in the bottom of the image (about 15 pixels from the bottom of the image) when frameserving to VirtualDub with Avisynth 1.05...
Has anybody had anything similar? I prefer using Avisynth filters for resizing, cropping, etc because it is very noticeably faster than VirtualDub...
HEEEELP! :)
Guest
5th March 2002, 17:08
Please post your Avisynth script that invokes the problem. We don't read minds here. :)
kblood
5th March 2002, 17:19
Sorry for that. I will get a hold of it as soon as I can, but currently I am not in my computer.
Strange thing is it happens only sometimes, not everytime I open the .avs from VirtualDub, so the script should be fine, since it CAN produce acceptable output. My problem is that I have to start the encoding, then watch carefully if I see the line appearing, if I see it, stop the encoding, reboot, try again (and again, and again...).
The script, however, I can say it has several lines that first crop the black borders, then (bilinear) resizes the image, then a slight sharpen. All done opening a .d2v source.
But I will get back with the script anyway.
Thanks for the quick reply! I expected this problem to be some sort of known-issue, I didn't mean to sound stupid or childish :)
Guest
5th March 2002, 18:14
You didn't sound stupid or childish and I regret if my post implied that. But you should always post as much information as you can about a problem.
I have never heard of a problem like this. However, I can try to duplicate it when you post your script.
kblood
5th March 2002, 18:26
You are the nicest, most polite, most sensible poster I have ever seen. Honestly, I wasn't even slightly offended by anything you said.
I will post here my script as soon as I can. Meanwhile, I have got a hold on a (supposed to be) Avisynth 1.0b7 so I will try with that.
Thanks again!
Guest
5th March 2002, 23:19
Thanks, kblood. If you look at some of my other threads, you'll see that I do lapse occasionally. But I do try my best. I'll be watching for your script file.
kblood
6th March 2002, 17:31
Here is my .avs script:
LoadPlugin("C:\Program Files\DVDRip\avisynth\MPEG2DEC.dll")
mpeg2source("D:\FFANT\ffmovie.d2v")
Crop(3,14,709,548)
BilinearResize(592,336)
Sharpen(0.3)
I also tried with this one:
LoadPlugin("C:\Program Files\DVDRip\avisynth\MPEG2DEC.dll")
mpeg2source("D:\FFANT\ffmovie.d2v")
Crop(3,14,709,548)
BicubicResize(592,336)
And got same results. Every few scenes, a line would appear, just for one scene, in which the colors were "off" (kind of displaced or something). The blinking refers to the fact that if you watch the resulting encode, it "blinks" (as in : "appears and disappears").
I will do some tests with the newer beta I got, and see if it works. I hope some day we will see some sort of unified development in Avisynth... :)
Guest
6th March 2002, 19:01
Does it happen with just:
LoadPlugin("C:\Program Files\DVDRip\avisynth\MPEG2DEC.dll")
mpeg2source("D:\FFANT\ffmovie.d2v")
If so, perhaps it is in the stream.
If not, add the filters one by one. What happens?
mc4_idea
6th March 2002, 19:41
Is your capture from VHS?
TactX
6th March 2002, 23:06
Originally posted by mc4_idea
Is your capture from VHS?
Look at his script. He is using the mpeg2dec plugin which means that his source is mpeg2.
VHS is *normally* not captured as mpeg-2, is it ?
@ kblood
Your problem is really strange but I am pretty sure that it is your source, or better said it is not Avisynth since the filter you use are not known to cause problems.
ARDA
7th March 2002, 00:01
May be this can help you:
Crop(clip,left,top,width,height)
YUY2 format only stores color information for every two pixels horizontally, so if you're processing in YUY2 mode, left and width must be even.
Your clip shows odd values for left and witdh.
Your script Crop(3,14,709,548)
Try Crop(2,14,708,548)
Arda
TactX
7th March 2002, 00:21
@ ARDA
Yes YUY2 does store chroma only for every two pixels horizontally, but the "Crop" function does ignore odd horizontally values.
Crop(3,14,709,548)
would actually do
Crop(3,14,710,548)
So this should not be the problem...
ARDA
7th March 2002, 00:45
@TactX
Thanks for your explanation about horizontal odd values,I didn't know at all;and I couldn't find any document about that.Maybe you can point me something to read about.
@kblood
Becareful with new beta versions of avisynth, the Sharpen function has now two,paramenters;horizontal,and vertical;but that's not the questions I've had problems applying it after crop.
I suppose it must be something with crop values too.
Arda
kblood
7th March 2002, 09:21
Thanks everybody for your suggestions. I will try them as soon as I can.
I have to (carefully chosen word follows) doubt the problem is in the source. I don't know if this will serve as proof to that, but using VFAPI on the .d2v file and opening the resulting .avi in VirtualDub didn't show that problem. And Avisynth would sometimes not show it either (after a couple of reboots and reinstalling it sometimes also helped).
Nevertheless, I will try setting those even crop parameters, and also adding the filters one by one.
What I've been wondering is if there is any known "unfriendliness" between Avisynth and a certain combination of OS/Hardware.
Detailed description of what I was trying to do:
Final Fantasy DVD (PAL) to AVI
VOBs were copied with SmartRipper 2.41
Windows 2000 Pro
Athlon 1Ghz Socket A (Thunderbird)
128 MB SDRAM
Winfast GeForce2MX 64Mb
BTW: Audio ripped in both English and Spanish, Lame --alt-preset 105 (MP3-ABR), and then multiplexed with Nandub, and watched with BSPlayer. It's cool to switch the audio just as easy as with a DVD! :)
TactX
7th March 2002, 13:48
@ ARDA
Unfortunately you can't read this anywhere, I just tried it out someday. That is why I'm working on an Avisynth FAQ !
You can help me here (http://www.rilanparty.com:8080/vbb/showthread.php?s=&threadid=19008) :)
@ kblood
Your idea of an unfriendly HW/SW combination is good, that's what I was thinking about, too.
And another thing you could try is adding
ConvertToRGB
at the end of your script. I had problems with some scripts where I needed...
ConvertToRGB
ConvertToYUY2
... to get the script working with correct YUY2 output (Only doing ConvertToYUY2 should have been enough for this, but for some reason it was NOT)
kblood
18th March 2002, 10:42
I installed the beta 7 I have found, and changed the values of the cropping to even numbers.
The ConvertToRGB and ConvertToYUY2 wasn't needed, luckily, so I still have the performance improvement I wanted.
Thanks everybody, your tips were greatly appreciated (and should make their way into the FAQ!)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.