How to save a MJPEG Stream to disk (C# .NET)?
问题 I have an application that read the stream from a camera (MJPEG) and show it on the form in real time (in a picture box). This is working. This stream reading start when the user click on the button "Start". What I want to do is that when the user click on a button "Stop", the stream between the button "Start" and "Stop" would be save on disk as a .mpg. Right now, it write something on the disk, but I can't open it in Windows Media Player. Here is the code to write the stream private void