Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1898368
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:45:23+00:00 2026-05-17T06:45:23+00:00

How do I view the progress for converting a Movie with the following QTKit

  • 0

How do I view the progress for converting a Movie with the following QTKit code?

NSDictionary *dict = [NSDictionary 
     dictionaryWithObjectsAndKeys:
     [NSNumber numberWithBool:YES], QTMovieExport, 
     [NSNumber numberWithLong:kQTFileType3GPP], 
     QTMovieExportType, nil];

[[movieView movie] writeToFile:@"/tmp/sample.3gp" 
     withAttributes:dict];

i.e. I want to view the progress of the movie conversion such that I can display it in a progress bar.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T06:45:24+00:00Added an answer on May 17, 2026 at 6:45 am

    Taken from this site: http://www.mactech.com/articles/mactech/Vol.21/21.08/Threads/index.html

    If the movie is very large, this method could take quite a while to complete. During that time, the user would be unable to do anything with the application except move windows around. Not very exciting.

    A slightly better solution involves using the movie:shouldContinueOperation:withPhase:atPercent:withAttributes: delegate method. This is a wrapper around QuickTime’s movie progress function, which will be used to display a dialog box showing the progress of the export and to allow the user to cancel the operation.
    Here try this

    - (BOOL)movie:(QTMovie *)movie 
          shouldContinueOperation:(NSString *)op 
          withPhase:(QTMovieOperationPhase)phase 
          atPercent:(NSNumber *)percent 
          withAttributes:(NSDictionary *)attributes
    {
       OSErr err = noErr;
       NSEvent *event;
       double percentDone = [percent doubleValue] * 100.0;
    
       switch (phase) {
          case QTMovieOperationBeginPhase:
             // set up the progress panel
             [progressText setStringValue:op];
             [progressBar setDoubleValue:0];
    
             // show the progress sheet
             [NSApp beginSheet:progressPanel 
                modalForWindow:[movieView window] modalDelegate:nil 
                didEndSelector:nil contextInfo:nil];
             break;
          case QTMovieOperationUpdatePercentPhase:
             // update the percent done
             [progressBar setDoubleValue:percentDone];
             [progressBar display];
             break;
          case QTMovieOperationEndPhase:
             [NSApp endSheet:progressPanel];
             [progressPanel close];
             break;
       }
    
       // cancel (if requested)
       event = [progressPanel 
             nextEventMatchingMask:NSLeftMouseUpMask 
             untilDate:[NSDate distantPast] 
             inMode:NSDefaultRunLoopMode dequeue:YES];
       if (event && NSPointInRect([event locationInWindow], 
                                              [cancelButton frame])) {
          [cancelButton performClick:self];
          err = userCanceledErr;
       }
    
       return (err == noErr);
    }
    

    Hope this helps.

    If you need any help do let me know.
    let me know if this helped a lil.

    PK

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

View this code: function testprecision(){ var isNotNumber = parseFloat('1.3').toPrecision(6); alert(typeof isNotNumber); //=> string }
My view-state to action-state transition does not appear to be happening. In the following
I am using apple's custom table view cell code and modifying the drawRect code
I created a view with a progress bar with an IBOutlet. Whenever I rotate
How do I debug code in the View in asp.net mvc2 application? Edit after
I have the following code, which connects to a web service and returns an
I animate simply object using: $(#progress).animate({width:400},2000) Than i also want to view it's width
When creating websites, I like to let my clients view the work in progress.
Django view points to a function, which can be a problem if you want
When I goto view the property page for my CSharp test application I get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.