Hi Frederik, That definitely solved my troubles, thanks a lot! Sorry for the crash confusion; PyMedia so far has no polite way of saying 'the data you supplied is corrupt' but grinds python to a halt. Is use the following code now, which is working just swell!
Cheers, Jelle. img = pygame.image.frombuffer(blend.tostring(), blend.size, blend.mode) img = pygame.image.tostring(img, "RGB") bmpFrame= vcodec.VFrame(vcodec.formats.PIX_FMT_RGB24, sizeBlend, (blend.tostring(),None,None)) print 'bmpFrame' yuvFrame= bmpFrame.convert(vcodec.formats.PIX_FMT_YUV420P) print 'yuvFrame' d = e.encode(yuvFrame) print 'encode yuv - frame' video.write(d) print 'write frame to video file' _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig