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: Movie creation problem



Dear Jan,
Thank you very much for you help. It is very much
appreciated. 

I just wrote my code like what you wrote, but it
thrown an error and I changed it according QA items of
Quicktime site. I hav written the error code here for
you.

When I used nil as later parameters of NewTrackMedia,
it fails and it returns -2050 (MacErrors.h:
badDataRefIndex). I tried ignoring this error message
but it still not working and it fails on
AddVideoSamplesToMedia with the same error message and
in InsertMediaIntoTrack with -2014 (MacErros.h
invalidDuration) error. 

Please help me, I do not have any idea and I could not
solve this problem.

Thanks in advance,
* Roozbeh



--- "Jan E. Schotsman" <email@hidden> wrote:

> 
> On 29-mrt-07, at 21:06, Roozbeh Zabihollahi wrote:
> 
> > I just start working with Quicktime SDK few days
> ago.
> > I am going to write an application to create
> MOV(s)
> > and hint them for streaming. I downloaded several
> > samples from apple website and build them in
> windows.
> > However, all of samples I downloaded, create zero
> size
> > movies.
> 
> I would leave out the handle data reference stuff.
> Your code adds data 
> to a location in memory, not to the file.
> 
> Just create your media like this:
> 
> theMedia = NewTrackMedia (theTrack, VideoMediaType,
> 600, nil, nil);
> 
> This defaults to the file as data reference.
> 
> HTH,
> 
> 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
> 


Roozbeh Zabihollahi
CTO - iPronto Systems
Mobile: +98 912 323 3970
http://www.ipronto.net


 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news
 _______________________________________________
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: Movie creation problem (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.