[Vnc2swf-users] edit.py swf->mpg retunrs error.
Status: Alpha
Brought to you by:
euske
From: <gui...@gm...> - 2006-06-15 10:33:43
|
When trying to convert the swf capture into mpeg, i found this error: "TypeError: argument 1 must be string or read-only buffer, not pymedia.video.vcodec.VFrame" here's the unified diff output that solves the problem: guifre@siddhartha:~/Desktop/pyvnc2swf-0.8.2$ diff -u output.py output.py.or= ig --- output.py 2006-06-15 11:23:51.000000000 +0200 +++ output.py.orig 2006-06-15 11:23:23.000000000 +0200 @@ -755,7 +755,7 @@ (strFrame, None, None)) yuvFrame =3D bmpFrame.convert(vcodec.formats.PIX_FMT_YUV420P) encFrame =3D self.encoder.encode(yuvFrame) - self.out_file.write(encFrame.data) + self.out_file.write(encFrame) MovieOutputStream.next_frame(self) return I checked out the source from CVS and saw the same problem. Guifr=E9. |