Log in

View Full Version : I have never used the image reader before


Die*wrek*show
3rd February 2007, 06:57
Hello, I am trying to load a series of five .bmp files(i also have them as .jpegs in case it's needed) into jasc animation shop 3 to make an animated avatar. I tried frameserving them using virtual dub but it was not working well, I could not figure out a way to use the crop function without using a filter. Plus it crashed a few times. The problem is that the usable portion of the image is not centered, so it needs custom cropping(i.e. the kind that crop() does. The fps should be around 6 or 7. The desired size is 64 x 64 for the avatar. The .bmp images are 320 x 200.

I tried loading this script and it will not play in media player classic.

ImageSource("D:\0.bmp", end = 5, 6)
Crop(76, 0, -44, -56)
BicubicResize(64,64)

thank you in advance

IanB
3rd February 2007, 09:40
ImageSource("D:\%d.bmp", end = 5, 6)Will read "D:\0.bmp", "D:\1.bmp", "D:\2.bmp", "D:\3.bmp", "D:\4.bmp" and "D:\5.bmp" at 6 fps.

See how to use sprintf syntax (http://www.cplusplus.com/ref/cstdio/sprintf.html).

Try GaussResize instead of Bicubic for such a small image.

Die*wrek*show
4th February 2007, 00:26
Hello Ian,
Your help is definitely appreciated. After trying what you suggested, I still could not get the clip to load in media player classic. So tried repeating a single frame x number of times. That worked fine, which led me to believe the fps value was what was screwing things up. I could not get it to change the fps away from 24 on a repeated single frame, but it played. Trying to read sequential frames with imagesource did not work at all.

Soooo, then I tried saving a huffyuv avi inside virtual dub and using avisource to open it and that worked fine, even when I changed the fps. In order to get the gaussresize filter, i upgraded to avisynth 2.56(i was using 2.55). After upgrading I noticed the problem with imagesource was gone, and it mostly works fine now but is picky about fps.

my final script:

ImageSource("D:\%0d.bmp", end=4, fps=8)
Crop(78,1,-46,-57)
AddBorders(0,3,0,1)
GaussResize(64,64,p=100)

my finished avatar (http://img516.imageshack.us/my.php?image=duke3dsd2.gif)

Without the gauss filter it would have been ALOT blurrier, thanks.

IanB
4th February 2007, 10:24
Could I beg an honest answer.

Why did you only upgrade to 2.5.6a instead of 2.5.7?

Die*wrek*show
5th February 2007, 00:54
I was only trying to get the filter, I did not realize the problems I was having was due to an older version of the program being installed until AFTER I upgraded.

When I googled, searched this forum for the filter I noticed it was included with 2.56 so I just upgraded to that without investigating further(I didn't know there was a 2.57 out yet).