How to stitch two or more video files with .NET

media services logo v3

Looking for Media Services v2 documentation?

Stitch two or more video files

The following example illustrates how you can generate a preset to stitch two or more video files. The most common scenario is when you want to add a header or a trailer to the main video.


Video files edited together should share properties (video resolution, frame rate, audio track count, etc.). You should take care not to mix videos of different frame rates, or with different number of audio tracks.


Clone or download the Media Services .NET samples.


Find the code that shows how to stitch video files in EncodingWithMESCustomStitchTwoAssets folder.