Editing Tracks
The Movie Toolbox provides a number of functions that allow your application to perform editing operations on tracks. These functions work with track segments--pieces of a track that are defined by a starting time and duration--and therefore give you a great deal of control over the editing process. These functions are similar to the low-level editing functions for movies that were described earlier in this chapter. However, these functions may copy movie data, if required by the operation.When you edit a track you may change the duration of the movie that contains that track.
The
CopyTrackSettingsfunction lets you copy certain important settings from one track to another.You can use the
InsertTrackSegmentfunction to copy a segment from one track to another. TheInsertTrackEmptySegmentfunction allows you to insert an empty segment into a track.You can use the
InsertMediaIntoTrackfunction to insert a media into a track.Your application can delete a segment from a track by calling the
DeleteTrackSegmentfunction.You can change a segment's duration by calling the
ScaleTrackSegmentfunction. This function stretches or shrinks the segment to accommodate a specified duration.You can use the
GetTrackEditRatefunction to determine the rate of the track edit of a specified track at an indicated time.
Subtopics
- InsertTrackSegment
- InsertEmptyTrackSegment
- InsertMediaIntoTrack
- DeleteTrackSegment
- ScaleTrackSegment
- CopyTrackSettings
- GetTrackEditRate