Answered by:
how to change size of SimpleVC1VideoProfile?

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
-
http://msdn.microsoft.com/en-us/library/microsoft.expression.encoder.profiles.simplevc1videoprofile(v=expression.30).aspx
Mark Answered, if it solves your question and Vote if you found it helpful.
Rohit Arora- Proposed as answer by Ed Price - MSFTMicrosoft employee Sunday, February 24, 2013 3:26 AM
- Marked as answer by Carey FrischMVP, Editor Wednesday, February 27, 2013 6:45 AM
Tuesday, February 12, 2013 10:49 AM -
you might need to set the aspect ratio as well
Mark Answered, if it solves your question and Vote if you found it helpful.
Rohit Arora- Proposed as answer by Ed Price - MSFTMicrosoft employee Sunday, February 24, 2013 3:25 AM
- Marked as answer by Carey FrischMVP, Editor Wednesday, February 27, 2013 6:45 AM
Tuesday, February 12, 2013 10:51 AM
All replies
-
Hi David,
Welcome to the MSDN Forum.
What is SimpleVC1VideoProfile?
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.Tuesday, February 12, 2013 9:54 AM -
http://msdn.microsoft.com/en-us/library/microsoft.expression.encoder.profiles.simplevc1videoprofile(v=expression.30).aspx
Mark Answered, if it solves your question and Vote if you found it helpful.
Rohit Arora- Proposed as answer by Ed Price - MSFTMicrosoft employee Sunday, February 24, 2013 3:26 AM
- Marked as answer by Carey FrischMVP, Editor Wednesday, February 27, 2013 6:45 AM
Tuesday, February 12, 2013 10:49 AM -
you might need to set the aspect ratio as well
Mark Answered, if it solves your question and Vote if you found it helpful.
Rohit Arora- Proposed as answer by Ed Price - MSFTMicrosoft employee Sunday, February 24, 2013 3:25 AM
- Marked as answer by Carey FrischMVP, Editor Wednesday, February 27, 2013 6:45 AM
Tuesday, February 12, 2013 10:51 AM