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

Related products
Video Edit SDK .Net

Sample code

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

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

2. Create a video source that includes specified segments.

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

3. Add file to timeline.

VideoEdit1.Input_AddVideoFile(videoFile, 0);
The 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.
abstract 2abstract 1abstract 3
logo
VisioForge © 2006 - 2021