Log in

View Full Version : AviSource: Could not decompress frame 0


chriszxl
29th June 2008, 16:15
Why Avisynth tell me this message in some standard avi(xvid or divx with cbr mp3).
message:
AviSource: Could not decompress frame 0 (c:\source.avs,line 1)
-------
script:
------
avisource("E:\input.avi",audio=false)

Add test video clips and avisynth script,
Direct Download link:
http://www.fileden.com/files/2007/8/18/1358135/Music/Test_AVS.7z

chriszxl
29th June 2008, 20:04
I did more test...get this message in some source only have video stream..
I try to convert a short video clip,use xvid coder by vdub.
I found will be problem with the clip have b-frame...
ANYONE can help? thanks

jeffy
29th June 2008, 20:08
What version of AviSynth? Could you please post the screenshot from GSpot?
Is the file playable?

IanB
29th June 2008, 22:58
Likely the video data in the AVI is not packed. VFW only support packed mpeg4 (Xvid, DivX, etc) type of data. There is an AVI repair program, (cannot remember the name) to repack such files. Or use DirectShowSource().

chriszxl
30th June 2008, 04:36
last version 2.58r2...and I also test 2.57...
I found whr is the problem....
bcos vfw via ffdshow.ax with xvidcore.dll(means ffdshow VFW configure: Format Xvid / Decoder Xvid,ffdshow default setting)
If vfw via ffdshow.ax with libavcodec.dll
or xvid.ax with xvidcore.dll
all no problem
Who can explain?

IanB
30th June 2008, 05:44
ffdshow.ax with xvidcore.dll relationship bug

The code in Avisynth here is pretty simple :-
int keyframe = pvideo->NearestKeyFrame(0); // Find the nearest keyframe to frame 0
...
LRESULT error = DecompressFrame(keyframe, false, ptr); // Decompress that frame
if (error != ICERR_OK || (!frame))
env->ThrowError("AviSource: Could not decompress frame 0");
and DecompressFrame is a wrapper for
ICDecompressEx(hic, flags, pbiSrc, srcbuffer, 0, 0, vi.width, vi.height, &biDst, buf, 0, 0, vi.width, vi.height);So how it stuffs that up is a good question.

chriszxl
1st July 2008, 04:33
I had to say I really dont quite understand....

you mean this is definitely a ffdshow's bug?

IanB
1st July 2008, 06:58
@chriszxl,

It could be, but at this point I am only guessing. The information I provided is to give a leg up for someone who knows enough to pursue the issue. Report the problem to the FFDShow people, reference this thread.

sidewinder711
1st July 2008, 11:16
I had the same problem with non-packed bitstreams. Without re-encoding the "packed bitstream" can be changed with MPEG4Modifier (http://moitah.net/). Thanks to Selur for recommending it.

chriszxl
18th July 2008, 12:55
I had the same problem with non-packed bitstreams. Without re-encoding the "packed bitstream" can be changed with MPEG4Modifier (http://moitah.net/). Thanks to Selur for recommending it.

I'v tried...no use for me....the same video source whice one I post...you can dl and try...
:p

sidewinder711
18th July 2008, 13:50
hmm... I have no problems opening your file from #1, neither directly with VD nor with the script despite the fact that GSpot is telling me that the provided file isn't "bitstream packed".