title: how to convert video in multiple bitrate using asp.net
body: <p>I want to play one video in different bitrates. Like i uploaded one video in 1080P resolution i want play that video in 720P, 480P, 360P, 240P, 144P etc.
  I want this solution in asp.net using C#.</p>
  
  <p>Like youtube provide the facility to watch video in different resolutions.</p>
  
  <p>Please help me regarding this.</p>
  
  <p>I tried the following code but not working:</p>
  
  <pre><code>using Softpae.Media;
  namespace ConsoleTest
  {
  class Program
  {
      static void Main(string[] args)
      {
          Job2Convert myJob = new Job2Convert();
          MediaServer ms = new MediaServer();
          myJob.pszSrcFile = "E:\\EhabVideoLibrary\\videos\\sinbad.mkv";
          myJob.pszDstFile = "E:\\EhabVideoLibrary\\videos\\sinbad.mp4";
  
          myJob.pszDstFormat = "mp4";
          myJob.pszAudioCodec = "aac";
  
          myJob.nAudioChannels = 2;
          myJob.nAudioBitrate = -1;
          myJob.nAudioRate = -1;
  
          myJob.pszVideoCodec = "h264";
  
          myJob.nVideoBitrate = -1;
          myJob.nVideoFrameRate = -1;
          myJob.nVideoFrameWidth = -1;
          myJob.nVideoFrameHeight = -1;   
  
          bool ret = ms.ConvertFile(myJob);            
      }
  }
  </code></pre>
  
  <p>}</p>