Further Investigation results:
I used this constructor SharpAvi.Output.AviWriter writer = new SharpAvi.Output.AviWriter(@"test.avi")
This code creates a file with with a size of 29791448 Bytes.
var videoOutputStream = new MemoryStream();
SharpAvi.Output.AviWriter writer = new SharpAvi.Output.AviWriter(videoOutputStream)
FileStream file = new FileStream("test_fromMemomryStream.avi", FileMode.Create, FileAccess.Write);
This code creates a file with with a size of 29751158 Bytes.
So there is a difference in the filesize. And because of that the second file could not be opened.
I have no clue how to modify this.
I need to use the stream because i want to create a avi file in memory and transfer the bytes only.
thanks in advance