Log in

View Full Version : create a video file from individual images


FXsan
21st June 2005, 11:15
Hi,
I have a collection of yuv images, and need to create a file to work on it.

I didn't find a possibility in Avisynth to do the equivalent of

For i = 0 to 4500
clipin=AVISource(clipin, "c:\img"+i".yuv")

(2nd step wil be UYVY2 4:2:2 interlaced conversion to YV12 for further processing)


any idea ?
Thanks

Wilbert
21st June 2005, 12:54
I have a collection of yuv images
... yuv movies. You can import them with the plugin RawSource. But you can't open 4500 of them, so i'm not sure how to do this.

stickboy
21st June 2005, 18:07
Why can't they be YUV images?

Anyway, to the original question: look at the ImageSource function.

FXsan
21st June 2005, 20:23
The problem is that Imagesource don't manage yuv images.

It is one yuv file per image. Maybe I can just concatenate them in a .yuv movie file as there seems to be only raw images in yuv files (no container bits to add)

Thanks anyway

stickboy
22nd June 2005, 04:22
ImageSource can load a sequence of numbered images.

Wilbert
22nd June 2005, 09:23
I'm pretty sure ImageSource can't load yuv images. I guess it shouldn't be difficult to adjust RawSource such that it can load a range of yuv images.

stickboy
22nd June 2005, 09:47
I'm pretty sure ImageSource can't load yuv images.Hm?

From the docs:
*The input colorspace must be RGB24 for all formats except "ebmp," which supports all colorspaces (RGB32, RGB24, YUY2, YV12). The "ebmp" files written with RGB input are standard BMP files; those produced from YUV formats can probably only be read by AviSynth's ImageReader.Now, maybe FXsan's images may not be of the right file format, or maybe the bytes aren't packed just so, or who knows what, but ImageSource nee ImageReader has some notion of handling YUV image data.

Wilbert
22nd June 2005, 10:58
Now, maybe FXsan's images may not be of the right file format, or maybe the bytes aren't packed just so, or who knows what, but ImageSource nee ImageReader has some notion of handling YUV image data.
What i meant was "(...) can't load raw YUV images". The problem is not whether FXsan's are in the right format, but the problem is they don't have a header, and ebmp pics have.

If you think i'm wrong just try to open one of those pics (you can find a link to one of those in the RawSource docs in the AviSynth docs) as a ebmp. If i'm wrong i will send you a beer :)