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.

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

2. Create a video source that includes specified segments.

VideoSource videoFile = new VideoSource(
                                videoFileName,
                                segments,
                                VideoEditStretchMode.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 AudioSource 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 - 2022