Jump to content

CarlHusic

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About CarlHusic

CarlHusic's Achievements

0

Reputation

  1. I've downloaded the Quicktime SDK for windows programming, and I've been trying to slog through the Apple Developer Connection Reference Library but I'm having trouble finding what I want ... What I need to to is grab frame samples (and eventually audio but one step at a time). I'm at the point where I've opened a movie file, have the Movie, and have executed getMoviePict() to obtain a PicHandle. How do I go about writing this out to a file (what I have in mind is a BMP file)? I've been going over the online documentation but so far the answer fails to jump out at me. Keep in mind I am progamming in C on a Windows XP box. roughly what I have so far ... if ((err = InitializeQTML(0)) == noErr) { if ((err = EnterMovies()) == noErr) { strcpy (fpath, fn_str); c2pstr(fpath); if ((err = FSMakeFSSpec(0, 0L, fpath, &sfFile)) == noErr) { if ((err = OpenMovieFile (&sfFile, &theFile, fsRdPerm)) == noErr) { if ((err = NewMovieFromFile(&theMovie, theFile, NULL, NULL, newMovieActive, NULL)) == noErr) { PicHandle thePic; int t; TimeValue mTime; for (t = 0; t < 6000; t += 600) { thePic = GetMoviePict(theMovie, mTime); [color="#8B0000"]// SO WHAT GOES HERE TO SAVE AN IMAGE?[/color] } err = CloseMovieFile(theFile); } } } ExitMovies(); } TerminateQTML(); } Also, any links to forums or other resources specifically about this kind of subject would be appreciated. Thanks
×
×
  • Create New...