title: Easiest well-known video compression codec that can be coded from scratch
body: <p>I'm searching for a video format that would be compatible both with most media website like flickr and with Windows Phone 8.</p>
  
  <p>WP8 support: MP3, WMA, WMA, 3GP, 3G2, AMR, 3GP, 3G2, MP4, M4A, MPR, AAC, 3GP, 3G2, MP4, M4A, AAC, 3GP, 3G2, MP4, M4A, AAC</p>
  
  <p>I've read several documentation about media encoding on Windows Phone to find that nothing can turn images into video. Most WP apps are using online Azure services to encode medias, because of CPU concerns, I guess.</p>
  
  <p>I'm currently developing an application where I need to convert frames to video "on the fly". Saving it as an AVI would be the simplest - though space consuming - way to achieve it. But I fear it won't be compatible on both side.</p>
  
  <p>To summarize, what I'm doing is capturing video with <code>VideoSink</code>, receiving frames with <code>OnSample</code>, and re-encoding it. I'm just searching the simplest codec to encode it. Or "coder", since I won't decode it.</p>
  
  <p>Are there some codecs, either lossless or non-lossless, that can easily be adapted into C# without any C++ or native DLL?</p>