PDA

View Full Version : ImageReader Question


Coon_Dog
1st February 2004, 17:40
I am looking for some help on the ImageReader function. What I have is a directory of images from my camera names IMG###.jpg.

What I am looking for is 1 fps for 3 frames each. Then I can set my encoder to keyframe every 3 seconds for very a very small file. Sending this to family.

Also what would be better, resize to 640*480 in AviSynth or in the encoder?

Any help on this would be appreciated. Thanks.
:confused:

Wilbert
1st February 2004, 18:36
You have to rename them to img000.jpg, img001.jpg, etc.

ImageReader("c:\%03d.jpg", 0, end, 1, false)

end = # images - 1

Also what would be better, resize to 640*480 in AviSynth or in the encoder?
What you prefer. However, if you want the best quality, you should resize them in an image editor.

Coon_Dog
1st February 2004, 18:41
Am I wrong in thinking that would give me 1 frame per file, where I am looking for 3 frames per file?

Jim

stickboy
1st February 2004, 22:34
Originally posted by Wilbert
What you prefer. However, if you want the best quality, you should resize them in an image editor.That's not necessarily true either... a lot of image editors have bilinear and bicubic resizing but not Lanczos.
Originally posted by Coon_Dog:
Am I wrong in thinking that would give me 1 frame per file, where I am looking for 3 frames per file?Why do you want each file to correspond to three frames? You can have one frame per file and scale the frame rate by 1/3.

If you really want to triple the frames, then do what Wilbert said, and then follow it with:SelectEvery(1, 0, 0, 0)