I am trying to merge two videos with one another, below is a sample code i am trying to make it work
FileStream fs = new FileStream(@"C:\Users\test\Downloads\m.mp4", FileMode.Append);
//m1,m2,m3 are video mp4 files on my disk
var bytes = System.IO.File.ReadAllBytes(@"C:\Users\test\Downloads\m1.mp4");
fs.Write(bytes,0 ,bytes.Length);
fs.Close();
FileStream fs1 = new FileStream(@"C:\Users\test\Downloads\m.mp4", FileMode.Append);
//m1,m2 are video mp4 files on my disk
var bytes1 = System.IO.File.ReadAllBytes(@"C:\Users\test\Downloads\m2.mp4");
fs1.Write(bytes1,0 ,bytes1.Length);
fs1.Close();
Now what happens is that the new video has the size of the two videos combined but only shows the first video and has the duration of only the first video. How can i fix that?