5

How can I write an MJPEG stream to disk in C#? (AVI, MPEG or OGG)

Asoniq
  • 51
  • 1
  • 2
  • Are you asking how to put an MJPEG stream into a container format (like AVI) using C#? Is your MJPEG stream already in memory? or are you trying to figure out how to read that into memory as well, too? – Pretzel Jan 11 '11 at 14:56

2 Answers2

1

You create a FileStream that will be the file you want to write to and use the MJPEG stream as an input to write to this stream.

Oded
  • 489,969
  • 99
  • 883
  • 1,009
1

A library for reading/decoding MJPEG streams was recently released in C#, maybe it will help. You can find it here: http://channel9.msdn.com/coding4fun/articles/MJPEG-Decoder

Peter
  • 9,643
  • 6
  • 61
  • 108