View Full Version : frame flickering when using AVISource


qyqgpower
20th August 2005, 04:51
some avi files opened with AVISource will flicker during fade in and out, it seems displaying some previous frames. opening these files in Virtualdub won't encounter the problem so I don't think it is related to VFW decoder.

have any ideas?

Mug Funky
20th August 2005, 06:19
that could be a bunch of things. what's the codec on the avi files you're using? it could be a b-frame ordering thing.

or it could be an artefact in the original file, or it could be you're applying IVTC but using the wrong frame order, or it could be something else. we need more information than just "avisource isn't behaving itself"... though it helps to know that opening in virtualdub doesn't exhibit this behaviour.

perhaps it's the decompressor being used? avisynth requests YV12 by default, where virtualdub requests rgb by default. there could be a difference in the output of your decoder for those two colourspaces.

qyqgpower
20th August 2005, 08:49
this is a sample using virtualdub(direct stream copy)
http://www2.ranobe.com/test/src/up2021.rar.html

this is a sample using AVISource (just AVISource("file") and no any other parameters)
http://www2.ranobe.com/test/src/up2022.rar.html

the decompressor is ffdshow's VFW.

I have no idea about this problem and it is really annoying :(

Mug Funky
20th August 2005, 11:24
and what codec is the source file in? that might have something to do with it too.

qyqgpower
20th August 2005, 14:26
you can download the first sample to see the codec(xvid indeed) since it is direct stream copy. and also try to use AVISource to open this file.

btw using DirectShowSource to open these files won't encounter the problem but I don't think it is a good choice to use DirectShowSource to edit video.

Guest
20th August 2005, 15:10
Please provide a *source* file without audio. The audio in that clip is stopping me from doing anything.

qyqgpower
20th August 2005, 15:28
ok
http://www.ranobe.com/up/src/up52140.rar

no audio

and thank you for the help

Guest
20th August 2005, 17:18
I made a simple script:

avisource("test.avi")

...and served it into VirtualDub. It played just fine. I encoded it to XviD and the resulting file was fine too.

What version of Avisynth are you using? I'm using 2.5.5.

Leak
20th August 2005, 18:33
Please provide a *source* file without audio. The audio in that clip is stopping me from doing anything.
Wouldn't using "audio=false" in the AviSource call have fixed that? *wonders*

np: Richard Devine - Pulsion Mirror (Komfort.Labor Presents Native Lab)

qyqgpower
21st August 2005, 02:38
I'm using 2.5.5 too. and have you watched the second clip? can you assume some possible reasons?

Guest
21st August 2005, 04:41
@Leak

I tried KillAudio() but it didn't kill it. :(

The only thing I can think of is to reinstall Avisynth.

Yes, the second clip is buggered. But I can't reproduce that.

Leak
21st August 2005, 09:56
@Leak

I tried KillAudio() but it didn't kill it. :(
I guess the problem was that you don't have a codec to decode the audio, so AviSource throws an exception and you don't even get to the KillAudio() part.

AviSource("foo.avi",audio=false) AFAIK doesn't even try to decode the audio, so it'll probably work (crosses fingers).

np: Richard Devine - Lens Align (Lipswitch)