Log in

View Full Version : Save Image Sequence with AviSynth?


Danux
18th February 2006, 04:22
Hi there,
In VirtualDub I can save an image seqeunce in one of three output formats (BMP, TGA, JPG). Can I do the same with AviSynth?
I only recently started reading about colourspace, and from what I understand, it is better to stay in YUV colourspace, then to have a conversion to RGB somewhere in the software process. In the past, using VirtualDub and saving targa sequences, this has not been an issue, because the image sequences were being processed by The GIMP (v2.2.10), which TMK, only works in RGB24. Want to take a kick at some tests with ImageMagick, though, and it is capable of working with .yuv files.
Was wondering, if I capture in YUV format (with, say , the Helix or YV12 codec) under Virtualdub, does this capture without the colourspace conversion that happens with HuffmanYUV captures? If it goes down without RGB conversion, can I then use AviSynth to pull the YV12 frames individually in sequence?

Wilbert
18th February 2006, 13:32
Was wondering, if I capture in YUV format (with, say , the Helix or YV12 codec) under Virtualdub, does this capture without the colourspace conversion that happens with HuffmanYUV captures?
If you capture (analog) anything other (XXX) than YUY2, there will be a YUY2->XXX conversion.

Btw, you can use ImageWriter to write images to your harddisk.

Want to take a kick at some tests with ImageMagick, though, and it is capable of working with .yuv files.
What kind of yuv files?

Danux
18th February 2006, 18:06
If you capture (analog) anything other (XXX) than YUY2, there will be a YUY2->XXX conversion.
Btw, you can use ImageWriter to write images to your harddisk.
What kind of yuv files?

Thanks for the response, I'll check out ImageWriter.
You know, I hadn't really considered what kind of YUV files I would be making into an image sequence. Colourspace is a new(ish) concept to me, and I guess I had assumed that ImageMagick would use whatever YUV format I had chosen. Have been doing a bit more Googling, haven't found a definitive answer yet, but it looks like ImageMagick's YUV format of choice is 4:1:1, which according to
http://www.animemusicvideos.org/guides/avtech/colorspace.html
is DV format.
So if I understand correctly, with my bt878b card, I'll have to capture with YUY2 (probably uncompressed), then use image manipulation software capable of working in YUY2 space, otherwise I'll encounter a YUV->RGB->YUV conversion somewhere in the process. If I capture with YV12, then the conversion is happening as I capture.
It seems I can't avoid RGB conversion if I want to extract the frame sequence... maybe I won't concern myself with colourspace just yet.