ADC Home > Reference Library > Technical Q&As > QuickTime > Movie Basics >

Saving changes to modified movies


Q: I'm using the QuickTime APIs to open up an existing QuickTime movie and make various changes to the movie. For example, I use the QTRemoveAtom function to delete atoms in the movie, and I also add sample data to the media in the movie using the AddMediaSample function. After I've made my changes, I make sure to close the movie file using the CloseMovieFile function. However, once I close the movie file my changes are not actually saved to the file. Why aren't my changes being saved?

A: After you have edited the movie, use the UpdateMovieResource function to save your changes. This will update the existing movie. If you would rather keep the existing movie and save your changes to a new movie, create a new movie by calling the AddMovieResource function (a movie file may contain more than one movie resource). You should, of course, then close the movie file by calling the CloseMovieFile function.

[Sep 05 2000]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.