Movie Length



  • 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



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    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



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    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



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    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.

    Matthias


Log in to reply