How to add several segments of the same file in Video Edit SDK .Net

Related products
Video Edit SDK .Net

1. Specify each segment start and stop time to add.

VFVEFileSegment[] segments = new[] { new VFVEFileSegment(0, 5000), new VFVEFileSegment(3000, 10000) };

2. Create video source that include specified segments.

 VFVEVideoSource videoFile = new VFVEVideoSource(
                                videoFileName,
                                segments,
                                VFVideoEditStretchMode.Letterbox,
                                0,
                                1.0);

3. Add file to timeline.

VideoEdit1.Input_AddVideoFile(videoFile, 0);
Same idea can be used to add audio file parts, with VFVEAudioSource and Input_AddAudioFile used.
Please contact support to get help with this tutorial. Visit our GitHub page to get more code samples.
VisioForge © 2006 - 2021