Expression >
Forums Home
>
Expression Studio Forums
>
Expression Encoder
>
Error,Profile type is not valid
Error,Profile type is not valid
- I am implementing c# application to automate the process of adaptive encoding so I create a job by EE3 tool and Load the job in my application to convert my videos.
While loading the job, H.264 and AAC-LC smooth streaming format, It is showing error message "profile type is not valid" but I could able to load the profile VC1, WMA format
Is there any way to Load H.264,AAC-LC Job.
Please any one help on this issue.
Answers
I believe you're getting this problem because you're using the H.264 video profile and assigning it to a media item which is using the WindowsMediaOutputFormat (the default).
Try doing something like the followingbefore you assign the Video and AudioProfile.media.OutputFormat = new MP4OutputFormat();
Cheers
Dean.- Proposed As Answer byDean RoweMSFTFriday, October 30, 2009 7:28 PM
- Marked As Answer byNanthag Tuesday, November 03, 2009 8:39 AM
All Replies
- Do you have the full version of the Encoder installed? H.264/AAC output is not support in the free version. The splash screen should say Expression Encoder 3 + IIS Smooth Streaming. Thanks
jamie
This posting is provided "AS IS" with no warranties, and confers no rights
Thanks for your reply.
I have installed licensed version EE3 and I could able encode the video by tool but I got error when use the same job in my c# application for other videos.
thanks
Nanthag- Could you post the code snippet that calls the job from your C# application and I will try to repro it in-house and let you know. Thanks
J
This posting is provided "AS IS" with no warranties, and confers no rights - This is sample snippet from my application.
MediaItem media = new MediaItem(inputfilePath);
Job profileJob = Job.LoadJob("c:/sstream.xej"); //H.264/AAC smooth streaming Job created by EE3
media.OutputFormat.VideoProfile = profileJob.MediaItems[0].OutputFormat.VideoProfile.Clone(); //Error : profile type is not valid
media.OutputFormat.AudioProfile = profileJob.MediaItems[0].OutputFormat.AudioProfile.Clone();
Job job = new Job();
job.MediaItems.Add(media);
job.OutputDirectory = destFilePath;
job.Encode();
If you want i can post XML Job code.
Thanks
Nantha. I believe you're getting this problem because you're using the H.264 video profile and assigning it to a media item which is using the WindowsMediaOutputFormat (the default).
Try doing something like the followingbefore you assign the Video and AudioProfile.media.OutputFormat = new MP4OutputFormat();
Cheers
Dean.- Proposed As Answer byDean RoweMSFTFriday, October 30, 2009 7:28 PM
- Marked As Answer byNanthag Tuesday, November 03, 2009 8:39 AM
- Thanks, It is working fine.
Thanks
Nanthag

