This tutorial will help you joining two or more video clips in one video using media handler pro in your asp.net, c# and vb.net application.
Media Handler Pro support the following ways to join video clips in one video file.
For latest codes and discussion please visit media handler pro discussion forum section
Sample c# code that uses Media Handler Pro component for joining two or more clips and encoding final output in any specified format.
MediaHandler _mhandler = new MediaHandler();
string RootPath = Server.MapPath(Request.ApplicationPath);
_mhandler.FFMPEGPath = HttpContext.Current.Server.MapPath("~\\ffmpeg1371\\ffmpeg.exe");
_mhandler.InputPath = RootPath + "\\contents\\videoclips";
_mhandler.OutputPath = RootPath + "\\contents\\finalvideos";
// Pass two or more video clip names through FileNames property.
_mhandler.FileNames = new string[] { "sample_01.mp4", "sample_02.mp4" };
// Set final output filename through OutputFileName property, it may be without extension.
_mhandler.OutputFileName = "full_video";
// Set final output extension e.g ".avi" will force output in .avi format.
_mhandler.OutputExtension = ".avi";
// Set width and height of final output.
_mhandler.Width = 320;
_mhandler.Height = 240;
// Set all settings that is required for encoding final output. e.g in case of .avi we set TargetFileType.
_mhandler.TargetFileType = "pal-vcd";
// Call join video function to process all settings and create output media.
VideoInfo info = _mhandler.Join_Videos();
Click here for detail about retrieving information from video
Various type of error codes may be returned while joing two or more video clips in one video. here is detail.