PDA

View Full Version : How to save YV12 file?


chr2000
8th January 2009, 07:13
Maybe a naive problem.
rawsouce can import yuv file, but how to export yuv file? anyone help me?

neuron2
8th January 2009, 07:23
ImageWriter()

Wilbert
8th January 2009, 19:51
ImageWriter doesn't write raw YV12. Try ImmaWrite() or the commandline utility avs2yuv.

IanB
9th January 2009, 01:12
@Wilbert, Not true!ColorBars(pixel_type="YV12")

ImageWriter("Fred.")Writes "Fred.000000.ebmp", etc as Avisynth YV12 extended BMP files. Granted they are not that useful except to reimport via ImageSource().

chr2000
9th January 2009, 05:41
@Wilbert, Not true!ColorBars(pixel_type="YV12")

ImageWriter("Fred.")Writes "Fred.000000.ebmp", etc as Avisynth YV12 extended BMP files. Granted they are not that useful except to reimport via ImageSource().

thanks.
but it results in a sequence of images, not one raw YUV file.

chr2000
9th January 2009, 07:08
ImageWriter doesn't write raw YV12. Try ImmaWrite() or the commandline utility avs2yuv.

ImmaWrite (http://www.geocities.com/wilbertdijkhof/immaavs_v141.zip) works. thank you very much.

Loadplugin("rawsource.dll")
LoadPlugin("immaavs.dll")
rawsource("e:\1080p\blue_sky.yuv", 1920,1080, "i420")
bilinearresize(352,288)
ImmaWrite("cb_yv12", type="raw", animation=true,magick_home = "C:\\WINNT\\system32")