Expression > Forums Home > Expression Studio Forums > Expression Encoder > Error,Profile type is not valid
Ask a questionAsk a question
 

AnswerError,Profile type is not valid

  • Wednesday, October 28, 2009 7:59 AMNanthag Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

  • Friday, October 30, 2009 7:28 PMDean RoweMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code

    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 following

    media.OutputFormat = new MP4OutputFormat();
    
    before you assign the Video and AudioProfile.
    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

  • Wednesday, October 28, 2009 8:34 AMJamie Lang -MSFTMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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
  • Wednesday, October 28, 2009 9:04 AMNanthag Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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
  • Wednesday, October 28, 2009 9:19 PMJamie Lang -MSFTMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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
  • Thursday, October 29, 2009 9:16 AMNanthag Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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.
  • Friday, October 30, 2009 7:28 PMDean RoweMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code

    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 following

    media.OutputFormat = new MP4OutputFormat();
    
    before you assign the Video and AudioProfile.
    Cheers
    Dean.
    • Proposed As Answer byDean RoweMSFTFriday, October 30, 2009 7:28 PM
    • Marked As Answer byNanthag Tuesday, November 03, 2009 8:39 AM
    •  
  • Tuesday, November 03, 2009 8:41 AMNanthag Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks, It is working fine.

    Thanks
    Nanthag