Related products: Video Edit SDK .Net

How to add several segments of the same in 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.

bool ok = VideoEdit1.Input_AddVideoFile(
                                videoFile,
                                0);

Same idea can be used to add audio file parts, with VFVEAudioSource and Input_AddAudioFile used.

VisioForge © 2006-2019

  • GitHub-Mark-64px
  • Twitter Социальные Иконка
  • VisioForge Facebook page
  • YouTube channel