Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Movie Length

    SDK Help
    0
    4
    331
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post