ImageWriter
(clip, string "file", int "begin", int "end", string
"format")
ImageWriter
(presente in forma limitata nella v2.51, con funzionalità
complete nella v2.52) scrive su HD ogni frame di un clip in forma di immagini
File è il path + filename delle immagini salvate con default in "c:\". Format è il formato dell'immagine(vedere più sotto per i tipi supportati). Le immagini hanno filenames del tipo: [path]000000.[format], [path]000001.[format], etc.
I valori possibili per ''format'' sono:
*bmp, dds, ebmp*, jpg/jpe/jpeg, pal, pcx,
*png, pbm/pgm/ppm, raw, sgi/bw/rgb/rgba, tga, tif/tiff
begin ed end costituiscono il framerange che sarà scritto. Il default di entrambi è 0 (dove end=0 significa nessun limite superiore).
*Il colorspace di input DEVE essere RGB24 per tutti i formati eccezion
fatta per "ebmp," che supporta tutti i colorspaces (RGB32, RGB24, YUY2, YV12).
I files "ebmp" scritti con input RGB sono files BMP standard; quelli prodotti
da formati YUV probabilmente possono essere letti solo dal filtro di AviSynthImageReader/ImageSource
.
# Export the entire clip in the current native AviSynth format ImageWriter("D:\backup-stills\myvideo") # Write frame 5 to "C:\000000.PNG" ImageWriter("", 5, 5, "png") # note: prior to v2.56 the output filename would be "000005.PNG" # Write frames 100 to the end to "C:\000000.JPEG", "C:\000001.JPEG", etc. and display progress info ImageWriter(start = 100, type = "jpeg", info = true)
$Date: 2004/09/29 21:58:56 $