Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/03/2005 at 09:42, xxxxxxxx wrote:
User Information: Cinema 4D Version: 9.100 Platform: Windows ; Language(s) : C++ ;
--------- Hi Forum,
I know I can query a certain frame of a movie file using BaseBitmap, but if I want to query all frames sequentially, how can I find out which frames to ask for. There is no way to determine the movie length, is there? Any ideas?
Best Timm Dapper
On 19/03/2005 at 09:18, xxxxxxxx wrote:
I am not sure but I would iterate the frames in BaseBitmap::Init(). Look at code example below. The iterator i is the movielength in frames then.
AutoAlloc<BaseBitmap> bm; Bool ismovie = FALSE; LONG i = 0; { bm->Init(fn, i, &ismovie;); i++; } while(ismovie); GePrint(LongToString(i)); //i is length of movie
hope this helps,
Matthias
On 21/03/2005 at 06:01, xxxxxxxx wrote:
Hi Matthias,
thanks for your idea. I did not actually test it, because I tried something similar (iterating until Init returns somthing != IMAGE_OK) and it did not work.
Meanwhile I found out a better way to do it, though:
Bool GeGetMovieInfo(const Filename& fn, LONG* frames, Real* fps)
Thanks! Timm
On 21/03/2005 at 08:25, xxxxxxxx wrote:
Good to know that there is this GeGetMovieInfo function. Some functions are to deep buried in the docs.