Log in

View Full Version : AviSource + AutoCrop + avs2yuv crashes


vlada
12th April 2008, 08:39
Hi,

if I open a video using AviSource, then apply AutoCrop filter and want to process it using avs2yuv, then avs2yuv crashes.

If I replace AviSource with FFmpegSource, then everything works. Also there are no problems if I remove the AutoCrop filter.

Could someone please confirm this? Do you have ideas where the problem lies?

IanB
12th April 2008, 14:29
The VFW codec for your file is broken.

Or your file is corrupt and the VFW codec crashes but FFmpeg codec rides over (but may have planted a bomb) the problem.

vlada
13th April 2008, 21:20
Yes, it was probably a bad codec, because on another computer I have no problems. What confused me was, that the .avs script worked flawlesly with VirtualDub, but caused avs2yuv crash.

IanB
14th April 2008, 05:11
...worked flawlesly with VirtualDub...No, it probably just didn't spit anywhere that you noticed. :p

vlada
16th April 2008, 23:43
I did some more testing and I found out that the "bug" (yes I do believe there is a bug somewhere) is very rare. But I managed to reproduce it on 3 different computers. There is a 4th condition to reproduce it - XviD must be the codec which decodes the AVI. If I replace it with ffdshow VfW, then the crash doesn't happen.

So the problem is either in avs2yuv, avisource, autocrop or xvid. Unfortunately avs2yuv+avisource+autocrop is the combination I want to use and since I'm building a program that should work on any computer, I need to make it work even if the people will have XviD installed.

I could use FFmpegSource as default (which is my current workaround), but FFmpegSource indexes AVI files before opening, which takes quite a long time.

squid_80
17th April 2008, 00:01
Autocrop is probably just triggering the crash because it does a quick scan through some frames upon loading. If you remove autocrop, is it possible to process the clip completely from beginning to end?