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: Create a movie from a memory pointer



Jan E. Schotsman 写道:


On 20-feb-06, at 19:06, JofeeDong wrote:

    Oh,Thank you very much for your detailed reply!!I will try it.:)


I hope we didn't confuse you.
If you have movie data in RAM in a standard format MovieImportDataRef is the way to go.
If you want to create a new movie you need AddMediaSample or equivalent functionality.
I have used the AddMediaSampleRefence method for video digitizing (creating the movie after writing the raw samples to disk) and for an internet radio receiver (based on code by Andreas Pardeike). In the latter case I kept adding mp3 samples to a wrap around buffer and calling AddMediaSampleRefence and InsertMediaIntotrack. And indeed the thing kept playing. That was fun!


Jan E.

------------------------------------------------------------------------

Thanks,your answer is helpful.

My aim is to create a movie from an input stream.Before,I do not know how to create a movie from a memory,so I create a temp file from the input steam,and create the movie from the temp file,it works. But now I think it is not compact,so I want to create the movie from a memory directly.
That is what I want.


Thank you for your good advice.:>

Jofee Dong



_______________________________________________
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: Create a movie from a memory pointer (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.