title: C# - Encode ASF with a custom data stream
body: <p>I'm trying to create an ASF file and instead of using sound or video data I want to create a stream made of custom packets with binary data.</p>
  
  <p>Can someone provide a code example of a couple of things : 
  1) setting up a profile.
  2) configuring a custom stream
  3) inserting custom packets into the stream.</p>
  
  <p>Much appreciated.
  Thanks!</p>
  
  <p>Thanks
  Roey</p>