Hi,
1.3.5.0 kept segfaulting when I was calling vframe.encode, so I tried
the cvs version and the problem seems to be fixed, but now I can't see
an obvious way to write the frame to disk. examples/make_video.py
gives the error:
Traceback (most recent call last):
File "make_video.py", line 58, in ?
makeVideo( sys.argv[ 1 ], sys.argv[ 2 ], sys.argv[ 3 ] )
File "make_video.py", line 44, in makeVideo
fw.write( d )
TypeError: argument 1 must be string or read-only buffer, not
pymedia.video.vcodec.VFrame
This problem is present in cvs but not 1.3.5.0; d.data is accessible
but the type is 'VCString' and there don't seem to be any methods to
convert it to a python string or save to a file. Any ideas?
Also, could someone possibly give me an example of using the xvid
codec in make_video.py (maybe it has to be loaded as an external
codec?), and appropriate params for vcodec.Encoder?
help(vcodec.Encoder) says "The list of available codecs may be
accessed through vcodec.codecs" but the vcodec module has no attribute
'codecs'. There is no description of what the params actually mean in
the online help, or why they are set at certain values in the example,
eg. why is the frame_rate 2997?
Thanks,
Chris
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users