locked
how to change size of SimpleVC1VideoProfile? RRS feed

  • Question

  • I try following code:

           mItem = new MediaItem(textBox_FileName.Text);
          
    SimpleVC1VideoProfile vProfile = new SimpleVC1VideoProfile();
          
    System.Drawing.Size vSize;           
           vSize
    .Height =100;
           vSize
    .Width = 200;
           vProfile
    .Size = vSize;
           mItem
    .OutputFormat.VideoProfile = vProfile;
           mItem
    .VideoResizeMode = VideoResizeMode.Letterbox; //or Stretch
           using
    (Job job = new Job())
          
    {
                job
    .MediaItems.Add(mItem);
                job
    .OutputDirectory = "c:\\";
                job
    .Encode();
          
    }

    however, the output file is not 200x100, (it is 176x100). How can I make this change?

    • Moved by Mike Feng Saturday, February 23, 2013 11:10 AM
    Monday, February 11, 2013 2:39 AM

Answers

All replies