Merging or splitting video clips
Merging clips
Clips can be merged through the playlist feature: specify a playlist, then invoke StartReencoding.
E.g.:
videograbber.Playlist (pl_Clear, '')
videograbber.Playlist (pl_Add, 'vg000004.avi')
videograbber.Playlist (pl_Add, 'vg000002.avi')
videograbber.Reencoding_SourceVideoClip = 'PLAYLIST'
videograbber.Reencoding_NewVideoClip = 'mynewclip.avi'
videograbber.StartReencoding()
Depending on the kind of clip reencoded, a start/stop time can also be specified:
VideoGrabber.Playlist (pl_Clear, "");
VideoGrabber.Playlist (pl_Add, "vg000004.avi");
VideoGrabber.Playlist (pl_SpecifyPositions, "vg000004.avi");
VideoGrabber.OpenPlayerAtTimePositions (50000000, 120000000, true, true);
VideoGrabber.Playlist (pl_Add, "vg000002.avi");
VideoGrabber.Playlist (pl_SpecifyPositions, "vg000002.avi");
VideoGrabber.OpenPlayerAtTimePositions (50000000, 120000000, true, true);
VideoGrabber.Reencoding_SourceVideoClip = "PLAYLIST";
VideoGrabber.Reencoding_NewVideoClip = "mynewclip.avi";
VideoGrabber.StartReencoding();
See the Reencoding chapter for the reencoding parameters (reencoding method, etc.).
Splitting clips
To split a clip, use the Reencoding feature with a start time and/or a stop time (or a start frame and/or a stop frame).