The movie loader class is used for reading movie streams.
- c4d.bitmaps.MovieLoader
Return type: | MovieLoader |
---|---|
Returns: | The new movie loader |
Open a movie file.
Parameters: | fn (str) – The filename |
---|
Close the movie file.
Return information about the movie:
framecount, fps = ml.GetInfo()
Return type: | tuple of (int, float) |
---|---|
Returns: | Frame and FPS |
Read an image from the movie:
framecount, fps = ml.GetInfo()
for frame in xrange(framecount):
result, image = ml.Read(frame)
#when result is not IMAGERESULT_OK...
#...image is None.
if result!=c4d.IMAGERESULT_OK: break
pass
Parameters: | new_frame_idx (int) – The frame number of the frame to be read. |
---|---|
Return type: | tuple of (IMAGERESULT, BaseBitmap |
Returns: | The image result and the bitmap or None. |