View Full Version : Strange behaveour since using 2.05(?)
matrix
26th August 2002, 00:35
Something weird happens since I installed avisynth 2.05
If I open a script in VDub, everything is OK, but if I don't close it, and try to open another one, it gives me an error. (Unrecognized exeption)
If I do close VD and open it again, it loads without problem the script that previously rejected. The funny thing is media player plays it ok.
This only happens since I installed the new version.
The script, well it's too long (and probbably not needed), but here's (http://forum.doom9.org/showthread.php?s=&threadid=29359&perpage=20&pagenumber=5) a link to another script of mine, that causes the same behaveour.
Well, is not like it doesn't work. It does,...with hickups. Still I can do my thing, but I thought I let you know.
I don't think I do something wrong, something different then before.
Anybody else experienced simmilar problems?
Defiler
26th August 2002, 14:50
This works fine for me in 2.05. (With my own scripts.)
Try removing filters line by line until it starts working, perhaps?
WarpEnterprises
26th August 2002, 22:24
There were 3 known problems:
- mp3 sound
- segmented source + dropped frames
- matrox mjpeg codec
Have you tried to use an AVI with none of the features above?
matrix
26th August 2002, 23:37
@Defiler
The only filters I use, are the internal ones. And I can't do it without them.
@WarpEnterprises
My avi's don't have any of those features.
It's weird because even media player gives me same errors sometimes. I know, in my initial post I said it plays them ok. Sometimes though, I get the same error from media player too.
Well, once I removed the dll from sys32, and replace it with an older one, it works.
But as I said it earlier, I can still do what I'm trying to. The problem arose when I wanted to do a job list in VDub. Other than that, it's ok.
sh0dan
28th August 2002, 08:48
@WE: What's the mp3 sound bug?
WarpEnterprises
1st September 2002, 14:07
I meant not BUG, only problem (maybe i didn't read all carefully), the one you talked about at the beginning of the ACM implementation, but as I now read matrix compared 2.04 and 2.05 where of course I know no problem about mp3.
matrix
5th October 2002, 02:06
Why do I get this message:
"AviSource:Could not decompress frame0("C:\Movie\Av.Scripts\2chap.avs,line 14)" when I use either 2.5 or 2.6 versions.
Same script works fine with 2.3
Here's the script:
x1=480
y1=480
x2=80
y2=80
hgap1=160
hgap2=240
vgap1=150
vgap2=20
vgap3=150
dur=720
tf1=0
tf2=0
bvid=AviSource("C:\Movie\menu.avi").AddBorders(24,28,24,16).BilinearResize(x1,y1).Subtitle("Chapters 4-6",40,440,0,720,"Johnny Fever",16,$BDB76B).Subtitle("Play Movie",354,440,0,720,"Johnny Fever",16,$BDB76B)
tvid1=AVISource("C:\Movie\sDisk2\t2.avi").BilinearResize(x2,y2).Trim(tf1,tf1+dur)
tvid2=AVISource("C:\Movie\sDisk2\t3.avi").BilinearResize(x2,y2).Trim(tf2,tf2+dur)
h1=hgap1
h2=hgap1+x2
v1=vgap1
v2=vgap1+y2
v3=vgap1+y2+vgap2
v4=vgap1+y2+vgap2+y2
part1=bvid.Crop(0,0,x1,v1)
part2=StackHorizontal(bvid.Crop(0,v1,h1,y2),tvid1,bvid.Crop(h2,v1,hgap2,y2))
part3=bvid.Crop(0,v2,x1,vgap2)
part4=StackHorizontal(bvid.Crop(0,v3,h1,y2),tvid2,bvid.Crop(h2,v3,hgap2,y2))
part5=bvid.Crop(0,v4,x1,vgap3)
mvid= StackVertical(part1,part2,part3,part4,part5)
return mvid
I allways get this error with this kind of scripts.
I used this script because it is short and I thought someone might try it with teir own avi files to see if it works there.
On my system, nothing above 2.4 works. I mean a script like the above one. Something simple of this sort:
LoadPlugin("C:\Movie\AVISYN~1\Plugins\UnFilter.dll")
LoadPlugin("C:\PROGRA~1\DVD2SVCD\MPEG2Dec\mpeg2dec.dll")
mpeg2source("C:\DOCUME~1\IOAN\MYDOCU~1\BLADEI~1\DVD2AV~1.D2V")
Unfilter(40,40)
BicubicResize(480,480,0,0.6),... works just fine.
So, I hope to find out if it's something with my system, or just something wrong with my scripts, mabe something the new versions do not recognize, or have problems with?
Any thoughts on this?
Thanks
sh0dan
6th October 2002, 15:01
For some reason Avisynth can't decompress frame 0 of your AVI file.
What codec, and what's the source of your AVI?
How does frame 0 look like in Vdub?
dvd2svcd
6th October 2002, 15:07
I got the same problem, but only when I'm using TMPGEnc (Couldn't decompress frame 0) and even if I use Trim(80000,90000) it fails. The source is a dvd2avi project file. It should be fairly easy to test. Just use DVD2SVCD + TMPGEnc 2.58 + Avisynth 2.06 and set DVD2SVCD to use CQ in the TMPGEnc Encoder Tab.
Edit:
1)
Another way to test this is:
Make an AVS file like this:
LoadPlugin("C:\PROGRA~1\DVD2SVCD\MPEG2Dec\MPEG2D~1.DLL")
mpeg2source("C:\PROGRA~1\DVD2SVCD\Movie\OC11\DVD2AV~1.D2V")
BicubicResize(480,432,0.0,0.6)
AddBorders(0,72,0,72)
Trim(10000,84062)
Save it as SOMETHING.AVS
2)
Now make a new AVS file like this;
Video=AVISource("SOMETHING.AVS")
v1=Video.Trim(14394,14443)
v2=Video.Trim(16179,16228)
UnalignedSplice(v1,v2)
Save that as SOMETHING_TRIM.AVS
3)
Now, load SOMETHING_TRIM.AVS into TMPGEnc 2.58, go to Options/Environmental Setting and hit OK
4)
See a picture? Well, if I repeat 3) then every other time I get the Error and all other times I get a proper picture. Weird isn't it. ReadAVS.dll is disabled. It feels like an unintilized Variable somewhere (spoken as a developer)
sh0dan
6th October 2002, 15:23
Strange - I've compressed hundreds of videos with 2.06 and TMPGEnc without any problems, and I haven't seen this problem (I haven't been using DVD2SVCD.
edit: I'll try what you suggest, and see if I can reproduce it!
dvd2svcd
6th October 2002, 15:37
A little more info: If I do this instead:
LoadPlugin("C:\PROGRA~1\DVD2SVCD\MPEG2Dec\MPEG2D~1.DLL")
mpeg2source("C:\PROGRA~1\DVD2SVCD\Movie\OC11\DVD2AV~1.D2V")
BicubicResize(480,432,0.0,0.6)
AddBorders(0,72,0,72)
Video=Trim(10000,84062)
v1=Video.Trim(14394,14443)
v2=Video.Trim(16179,16228)
UnalignedSplice(v1,v2)
As you can see it is just a comprise of the two above scripts, well this works perfectly, even stranger, huh?
matrix
6th October 2002, 20:43
@ sh0dan
My Avi's are extracted using VDub from a d2v file generated by dvd2avi.
I just opened a script in VDub, and it did open it as it should. And frame 0 is the first frame of the clip. And it looks good. But the same script won't open in WMPlayer. It gives me the above mentioned error.
As I said before, same scripts, same setting, nothing changed, work nice with an erlier version of avisynth. 2.03 that is. It's a version that I know had a lot of bugfixes, and it works good on my system.
The only problem with that is I have to use SetMemoryMax(), and of course missing all the new features of the latest release.
EDIT
Now I don't know if this is important. But here's a list with all video codecs installed on my system:
Huffyuv lossless codec [HFYU]
iccvid.dll
Indeo video 5.10
ir32_32.dll
ir41_32.ax
iyuv_32.dll
msh261
msh263
msrle32.dll
msvidc32.dll
msyuv.dll
tsbyuv.dll
VFAPI Reader Codec v1.01
wotef
16th October 2002, 14:06
if anyone's still interested, i also got this unable to decompress frame 0 in virtualdub with avisynth 2.06 (october shodan release), when trying to run an old script that used to work prior to 2.05
and i think the reason is due the enumeration of clip, where you now (it seems) need to be careful about distinct clips - whereas before (i think) clip iterations used to just keep getting re-stated in memory? maybe i am completely wrong
but this is what i was doing, i had 3 avs files
alpha.avs:
clip=avisource("capture.avi")
clip1=clip.trim(268,20818)
clip2=clip.trim(26293,41318)
clip3=clip.trim(46793,57543)
clip4=clip.trim(63018,81082)
clip5=clip1+clip2+clip3+clip4
return clip5
beta.avs
clip=avisource("capture1.avi")
clip1=clip.trim(216,20766)
clip2=clip.trim(26241,41266)
clip3=clip.trim(46741,57491)
clip4=clip.trim(62966,81030)
clip5=clip1+clip2+clip3+clip4
return clip5
charlie.avs
clip1=avisource("alpha.avs")
clip2=avisource("beta.avs")
clip3=clip1.layer(clip2,"fast")
return clip3
when i try to open charlie.avs, vdub gives me the unable to decompress frame zero message
so i rewrite charlie.avs like this, and it works! weird, eh?
clip=avisource("capture.avi")
clip1=clip.trim(268,20818)
clip2=clip.trim(26293,41318)
clip3=clip.trim(46793,57543)
clip4=clip.trim(63018,81082)
clip5=clip1+clip2+clip3+clip4
clip6=avisource("capture1.avi")
clip7=clip6.trim(216,20766)
clip8=clip6.trim(26241,41266)
clip9=clip6.trim(46741,57491)
clip10=clip6.trim(62966,81030)
clip11=clip7+clip8+clip9+clip10
clip12=clip5.layer(clip11,"fast")
return clip12
Wilbert
16th October 2002, 14:39
You can't open avs files with AviSource. Try this:
alpha.avs:
clip=avisource("capture.avi")
clip1=clip.trim(268,20818)
clip2=clip.trim(26293,41318)
clip3=clip.trim(46793,57543)
clip4=clip.trim(63018,81082)
clip5=clip1+clip2+clip3+clip4
return clip5
beta.avs
clip=avisource("capture1.avi")
clip1=clip.trim(216,20766)
clip2=clip.trim(26241,41266)
clip3=clip.trim(46741,57491)
clip4=clip.trim(62966,81030)
clip5=clip1+clip2+clip3+clip4
return clip5
charlie.avs
clip1=import("alpha.avs")
clip2=import("beta.avs")
clip3=clip1.layer(clip2,"fast")
return clip3
and open charlie.avs in VDub. Does that work?
dvd2svcd
16th October 2002, 14:41
Originally posted by Wilbert
You can't open avs files with AviSource.When did that change? I have been using that in all the older versions of AviSynth.
wotef
16th October 2002, 15:05
ah, wilbert, yours works! i also was unaware avs can no longer be opened with avisource, that must be it
Wilbert
16th October 2002, 15:10
Oops :D I never have known that you could open avs-files with AviSource (and you still can). Sorry forget what I said ...
wotef
16th October 2002, 15:48
but your way worked, too, i'm confused now :stupid:
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.