Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Inefficient file I/O



Title: Re: Inefficient file I/O
Thanks for your response. It seems more straight forward to write my custom data handler. Can you show me what needs to be done to get QuickTime to use my data handler? Currently I am using CreateMovieStorage() and it returns the default data handler.
 
Steve


From: quicktime-api-bounces+sli=email@hidden on behalf of Jan E. Schotsman
Sent: Thu 2/23/2006 5:43 PM
To: email@hidden
Subject: Re: Inefficient file I/O


On 23-feb-06, at 21:05, Steve Li wrote:

> I am trying to use QuickTime for Windows SDK to write uncompressed
> video to a QuickTime movie. I have the video compressor set to "None".
> The video frame size is 720x480. By looking at the performance
> counter, I notice QuickTime is writing 64k bytes of data in each I/O
> operation. And the number of writes/sec is over 300. I am wondering is
> there a way to optimize the performance? Maybe a custom data handler?
> But I am not sure where to start.

In your DataHWrite64 function you could try to combine several write
request into one write.
You would still have to get QuickTime to use your data handler instead
of the standard one.
A simpler way is to write the movie samples to the disk yourself and
construct the movie from the data file using AddMediaSampleReferences.
If you want a single file it gets a little harder.

Jan E.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden

References: 
 >Re: Inefficient file I/O (From: "Jan E. Schotsman" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.