// videos is a List<string> containing a list of every single copied video's path. // dir is the current directory returned by Directory.GetCurrentDirectory() // outputVideoSelect.FileName is a user specified output file using Splicer; using Splicer.Timeline; using Splicer.Renderer; using (ITimeline timeline = new DefaultTimeline()) { IGroup group = timeline.AddVideoGroup(32, 720, 576); for (int v = 1; v < videos.ToArray().Length; v++) { group.AddTrack().AddVideo(videos[v]); } using (AviFileRenderer renderer = new AviFileRenderer(timeline, $"{dir}\\output.mp4")) { renderer.Render(); } } File.Move($"{dir}\\output.mp4", $"{outputVideoSelect.FileName}");
An exception of type 'System.Runtime.InteropServices.COMException' occurred in DirectShowLib-2005.dll but was not handled in user code The filename, directory name, or volume label syntax is incorrect.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)